Forum Moderators: martinibuster

Message Too Old, No Replies

Adsense for Search on Google Maps

Code help please

         

axvil83

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

10+ Year Member



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.

Leonard0

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

10+ Year Member



Are you putting your publisher ID in the GAdsManager class?

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

axvil83

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

10+ Year Member



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.