Closed (duplicate)
Project:
Google AdSense integration
Version:
5.x-1.5
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Jun 2007 at 16:32 UTC
Updated:
27 Jun 2007 at 23:25 UTC
Hi!
I have a problems with channels. If I set/fill channels in adsense module, I can't see any report from channels. Nothing.
Reports about earnings are ok.
I tried to look at adsense code, and the code generated by adsense module has (nicely) name of channel in google_ad_channel
e.g.
google_ad_channel = "na_konci_clanku";
but adsense channel code generated by google adsense page is:
//2007-06-27: na_konci_clanku
google_ad_channel = "9973263959";
So, I think that there can be reason why google adsense ignore channel name from adsense module code.
I added full source of adsense script
--- code generated by adsense module ---
<script type="text/javascript"><!--
google_ad_client = "ca-pub-0118991728808299";
google_ad_type = "text";
google_ad_channel = "na_konci_clanku";
google_ad_width = 336;
google_ad_height = 280;
google_ad_format = "336x280_as";
google_color_border = "f9d893";
google_color_bg = "FFE6BF";
google_color_link = "880000";
google_color_url = "880000";
google_color_text = "000000";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
--- code generated by google adsense page ---
<script type="text/javascript"><!--
google_ad_client = "ca-pub-0118991728808299";
google_ad_type = "text";
google_ad_channel = "na_konci_clanku";
google_ad_width = 336;
google_ad_height = 280;
google_ad_format = "336x280_as";
google_color_border = "f9d893";
google_color_bg = "FFE6BF";
google_color_link = "880000";
google_color_url = "880000";
google_color_text = "000000";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
Comments
Comment #1
igorik commentedAbout reports - I thought reports what I can see on google adsense page.
Comment #2
kbahey commentedYou have to go into admin/settings/adsense, then put the Adsense channel (a long number, not a name, you can see it in Adsense ad code on your adsense account).
For example
google_ad_channel = "1234567890";So, you put this channel in the settings, say at position 2.
Then in the blocks where you define adsense, you select 2 as the channel, and it will be tracked correctly.
Comment #3
igorik commentedHi!
thanks for quick explanation.
I think that can be very useful in adsense channel setting to have option to write channel name also, because the number is not easy to learn
So channel settings (1-7 channels)
1. channel
- channel name (only for more usability)
-channel id
thanks
Igor
Comment #4
kbahey commentedYes, people ask for this feature, but I have no time to implement it.
So, if someone makes a patch, I will include it.
Comment #5
kbahey commentedThe feature you asked for has been asked for here http://drupal.org/node/144416