AdSense Channel ID

Use this forum to ask questions about how to do things with my MediaWiki Extensions.
Post Reply
User avatar
argh
Rank 1
Rank 1
Posts: 5
Joined: March 3rd, 2008, 11:03 am

AdSense Channel ID

Post by argh »

Paul -- great site. I've a question.

I have created a channel called "lsn" and made it part of my AdSense Unit, but when I look at the code, there's no number associated with it.

I am sure the Channel ID is associated with my ad because on the "Manage Ads" page, the channel column has "lsn" listed.

Yet the code generated looks like this (I put the nnnn's in):

Code: Select all

<script type="text/javascript"><!--
google_ad_client = "pub-nnnnnnnnnnnnnnnnnnnn";
/* Leaderboard with chID 728x90, created 3/3/08 */
google_ad_slot = "nnnnnnnnnnnnn";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
Shouldn't there be a line in there that reads like this?

Code: Select all

google_ad_channel="channel id".
Am I doing something wrong?

Thanks.
User avatar
argh
Rank 1
Rank 1
Posts: 5
Joined: March 3rd, 2008, 11:03 am

Re: AdSense Channel ID

Post by argh »

A simpler way to ask my question would have been to say:

In the AdSense extension, where do I get the X's that go into the code below referenced on this page: http://paulgu.com/wiki/Google_AdSense

Code: Select all

$CLIENTID = "pub-yyyyyyy"; // Your Client ID
 
$CHANNELS = array( // Your Channel ID
	'AUTO' => 'xxxxxx',
	'WIKI' => 'xxxxxx'
);
Thanks!
User avatar
argh
Rank 1
Rank 1
Posts: 5
Joined: March 3rd, 2008, 11:03 am

Re: AdSense Channel ID

Post by argh »

Nevermind -- I found it.

If you edit an ad, at the bottom where you choose the channel you can select "Manage channels..." Clicking that, will list all your channels and display the channel ID.

I still don't know why it's not showing up in my ad code.

Thanks.
User avatar
Paul
Development Team Leader
Development Team Leader
Posts: 1132
Joined: October 20th, 2007, 2:23 pm

Re: AdSense Channel ID

Post by Paul »

If you update the extension, make sure you clean the cache of ad page, or you can edit the page again and force it to reload the page.
Post Reply