Thanks for your feedback, I too struggled with the AdsManager a bit
when testing the feature.
2009/2/8 Viktor <viktor...@gmail.com>:
>
> Hi.
>
> I have two problems with dispaying ads:
>
>
> 1. AdsManager.AdsManagerOptions.setChannel takes int as a parameter
> while my channel IDs are out of int range
I think we can solve this by adding an overload for setChannel that
takes a double argument. You can work around it yourself by
subclassing AdsManagerOptions (I didn't compile this):
class MyAdsManagerOptions extends AdsManagerOptions {
final native MyAdsManagerOptions setChannel(double channelIn) /*-{
this.channel = channelIn;
return this;
}-*/;
}
Let me know if this works for you. If double doesn't work, you could
try String, but the docs say it should be a Number which map to a Java
int or double.
> 2. If I just forget about setting the channel and if I proceed with
>
> AdsManager adsManager = AdsManager.newInstance(map, publisherID,
> adsManagerOptions);
>
> everything is fine while publisherID is "google", i.e. I can zoom in
> to London for example and
> see small clickable ad markers on my map, I can open their info boxes
> and I can click on ads.
>
> If I change publisherID to "pub-1234567890123456" (being my correct
> id) I can see no ad markers.
> I have also tried with ca-pub-* and just 1234567890123456, with no
> success.
>
> What could be the problem here?
> Are there any special requirements for publishers who want to use
> AdSense for maps?
My understanding is that coverage is not universal for the AdsManager
yet. You're going to get results only in major urban areas, and those
are going to be best covered in the Americas last I heard. Check the
Maps API pages and groups for updates on that.
Using the plain pub-XXX ID worked correctly for me. I had to zoom way
in, however.
The other issue could have to do with your page. If your page is not
indexed by the google bot, or contains only AJAX and no plain HTML
content, it may determine that your content isn't relevant to the ads
it has to display.
http://www.google.com/support/webmasters/bin/answer.py?hl=en&answer=81766
You may need to plan on support accessibilty or perform some search
engine optimization to seed some content for the google crawler so the
Ads server can match up ads with your page.
--
Eric Z. Ayers - GWT Team - Atlanta, GA USA
http://code.google.com/webtoolkit/