Closed fertandil87 closed 11 years ago
:+1: for adding it. The main issue is it is an very huge workload... Currently, the bundle have no business classes in order to manage OAuth2 authentication. I have planned to merge the WidopGoogleAnalyticsBundle in this one in order to get these business classes here. When it will be done, it should be pretty easy to integrate the adSense service.
Anyway, for now, it is really at the end of my TODO list. Sorry guy.
Anyway, would you like to get adSense in a server to server context or something different?
but, in the api documentation say that the only thing to add to the code is:
var adUnitDiv = document.createElement('div');
// Note: replace the publisher ID noted here with your own // publisher ID. var adUnitOptions = { format: google.maps.adsense.AdFormat.HALF_BANNER, position: google.maps.ControlPosition.TOP_CENTER, publisherId: 'ca-google-maps_apidocs', map: map, visible: true }; var adUnit = new google.maps.adsense.AdUnit(adUnitDiv, adUnitOptions);
link: https://developers.google.com/maps/documentation/javascript/examples/ads-adunit
but if it isn't possible, is there any callback function actually? I couldn't find it
Thanks
Ah sorry, I didn't really understand your issue. You would like to get adSense support but in javascript. Currently, it is possible to do it. A map wraps an event manager which allows you to attach any events to it. According to your link, it seems the adSense is initialized through an event, so, you can attach your own event to the map. See this documentation for more details. If you need more informations do not hesitate to ask :)
@fertandil87 Can it be closed?
ping @fertandil87
yes sure :)
2013/7/29 Eric GELOEN notifications@github.com
ping @fertandil87 https://github.com/fertandil87
— Reply to this email directly or view it on GitHubhttps://github.com/egeloen/IvoryGoogleMapBundle/issues/77#issuecomment-21724332 .
is it posible?
Thanks