Welcome to WebmasterWorld Guest from 18.206.194.210

Forum Moderators: martinibuster

Message Too Old, No Replies

Adsense for Search on Google Maps

Code help please

     
9:18 pm on Jul 7, 2009 (gmt 0)

New User

10+ Year Member

joined:Oct 4, 2008
posts: 11
votes: 0


Could some one provide me with the correct code for using Adsense for Search in the Google bar of maps?

I used the code on this page but it doesn't work. [code.google.com...]

The code is listed as:

var mapOptions = {
googleBarOptions : {
style : "new",
showOnLoad:true,
adsOptions : {
client: "partner-google-maps-api",
channel: "AdSense for Search channel",
adsafe: "low",
language: "en"
}
}
}

Do I use my Adsense for search id including "partner-pub-"?
Do I use the name of my channel or the channel id?

I have used my full Adsense for search id obtained from the "My Account" page and I used the channel id.
However, queries are not registering so i suspect the clicks aren't either.

3:43 pm on July 8, 2009 (gmt 0)

Full Member

10+ Year Member

joined:Sept 14, 2005
posts:272
votes: 0


Are you putting your publisher ID in the GAdsManager class?

Instructions are at Advertising on your Map
[code.google.com...]

4:15 pm on July 8, 2009 (gmt 0)

New User

10+ Year Member

joined:Oct 4, 2008
posts: 11
votes: 0


Thanks for the reply.

I am using both Adense for Search and Adsense for Content.

GAdsManager is for "Adsense for Content". Its the ads on the bottom right.

The "Adsense for Content" is working and registering impressions and clicks.

The code i use for that is.
var publisher_id = "ca-pub-publisherid";
var adsManagerOptions = { maxAdsOnMap : 5,
style: 'adunit',
channel: 'channel id' };
adsManager = new GAdsManager(map, publisher_id, adsManagerOptions);
adsManager.enable();

I'm trying to get the search queries and clicks from the bottom left of the map to show in my reports.