shramov/leaflet-plugins — pull request #84 by robertharm (2013-09-22 14:20:12+00:00)
Title: basic Google adsense support

I added support for Google Adsense in my WordPress plugin on www.mapsmarker.com. The code below is simplified as I use a slightly different one as within my WordPress plugin all parameters can be easily configured via a settings page (see http://www.mapsmarker.com/2013/02/04/pro-preview-google-adsense-for-maps-integration/ for screenshots).

Please not that you need a publisherID, otherwise the ads wont be displayed

There is also one know issue with this code: ads are not clickable when markers are loaded via geojson - see this page for an example: http://pro.mapsmarker.com/?p=40 - I couldnt find a fix for this yet, so any help here would really be appreciated! (some info of what could be the reason here: http://wpquestions.com/question/showChronoLoggedIn/id/8652)