Dan
vendredi 2 novembre 2007 à 09:30
As-tu activé GAdsManager ?
Il faut impérativement utiliser la méthode enable() pour qu'elles s'affichent

CITATION
class GAdsManager
A GAdsManager object fetches AdSense ads and displays them on a specified map. Ads show up as GMarkers and can be clicked on to bring up the ad within the marker's info window. The GAdsManager selects AdSense ads based on the current viewport and the surrounding textual content on the page. Note that when adding a GAdsManager to a map, you must also specifically enable it using the enable() method.
Constructor Description
GAdsManager(map, publisherId, adsManagerOptions?) Creates a new GAdsManager object that requests AdSense ads from Google's servers. The map parameter identifies the map on which this GAdsManager should display ads. The publisherId parameter specifies the developer's AdSense account. The adsManagerOptions parameter is a GAdsManagerOptions object literal. (Since 2.85)
Methods Return Value Description
enable() none Enables fetching of ads. Ads are not fetched by default. (Since 2.85)
disable() none Disables fetching of ads. (Since 2.85)
class GAdsManagerOptions
This class stores optional arguments to the GAdsManager constructor. It has no constructor, but is instantiated as an object literal.
Properties Type Description
maxAdsOnMap Number The maximum number of ads to show on the map at any time. The default value is 3. (Since 2.85)
channel String The AdSense channel used for fetching ads. Channels are an optional feature that AdSense publishers can use to track ad revenue from multiple sources. (Since 2.85)
minZoomLevel Number The minimum zoom level at which to show ads. The default value is 6. (Since 2.85)