Google Maps 1.0.3 and AdsManager problems

16 views
Skip to first unread message

Viktor

unread,
Feb 8, 2009, 8:15:05 AM2/8/09
to Google API Libraries for GWT
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


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?



Many thanks, Viktor.

Eric Ayers

unread,
Feb 8, 2009, 3:05:43 PM2/8/09
to gwt-google-apis
;
Hi Viktor,

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/

Viktor

unread,
Feb 9, 2009, 4:44:25 AM2/9/09
to Google API Libraries for GWT
Thanks for your help, Eric.

The workaround with setting the channel number worked.
However, I still have problems with ads display.

I must stress the following once again - I can see ads when
I use "google" as publisher ID. As soon as I change it to
my real publisher ID, ads disappear.

I am looking the same area in both cases, so it is not about
the coverage.

I also don't think that the problem is with content indexing.
In first case, I can see ads even when in hosted mode and on
local server not accessible to google bots.


The only thing that comes to my mind is that ads for maps
are not available to publishers who are not resident in
countries that have ads coverage. It doesn't make too
much sense since I could develop web applications for US
market although my payment address is in Croatia.
I couldn't find any information regarding this so this could
be completely wrong assumption.

Eric Ayers

unread,
Feb 9, 2009, 6:42:22 AM2/9/09
to gwt-goo...@googlegroups.com
Hi Viktor,

I cannot really give you a good answer about your speculations. The
Google-Maps-Api group might provide some answers if you search it. I
did see some unanswered threads that looked similar, but didn't
include the experiment of swapping out "google" as the publisher id,
so it might be worth a post.

-Eric.
Reply all
Reply to author
Forward
0 new messages