Cannot get AdSense to diaplay anything.

If you are having problems with GuMax, post here.
Post Reply
User avatar
ned4spd8874
Rank 0
Rank 0
Posts: 3
Joined: August 20th, 2009, 10:10 pm

Cannot get AdSense to diaplay anything.

Post by ned4spd8874 »

I have installed it per the instructions on the site and in the php file, but nothing is showing on my page.

I have added the info into the localsettings file (include_once('extensions/GoogleAdSense/GoogleAdSense.php');). And have added my info into the ID area:

Code: Select all

$PUBLISHER_ID = "pub-NOT TELLING";

Code: Select all

$ADSENSE_UNITS = array(
	// Text and image ads - 728x90
	'C01' => array('unitID' => 'xxx', 'width' => '728', 'height' => '90', 'position' => 'none'),
	// Text and image ads - 728x90
	'C02' => array('unitID' => 'xxx', 'width' => '728', 'height' => '90', 'position' => 'none'),
	// Text and image ads - 728x90
	'C03' => array('unitID' => 'xxx', 'width' => '728', 'height' => '90', 'position' => 'none'),
	// Text ads - 728x90
	'C04' => array('unitID' => 'xxx', 'width' => '728', 'height' => '90', 'position' => 'none'),
	// Ad links - 728x90
	'C05' => array('unitID' => 'xxx', 'width' => '728', 'height' => '90', 'position' => 'none'),
	// Text and image ads - 234x60
	'C06' => array('unitID' => 'xxx', 'width' => '234', 'height' => '60', 'position' => 'none'),
	// Text and image ads - 120x600
	'C07' => array('unitID' => 'I PUT THE 10-DIGIT NUMBER HERE]', 'width' => '120', 'height' => '600', 'position' => 'right'),
	// Search your domain - 400x29
	'S01' => array('unitID' => 'xxx', 'width' => '400', 'height' => '29', 'position' => 'none'),
	// Search web - 400x29
	'S02' => array('unitID' => 'xxx', 'width' => '400', 'height' => '29', 'position' => 'none'),
	// Video Unit - Auto - 488x485
	'V01' => array('unitID' => 'xxx', 'width' => '488', 'height' => '485', 'position' => 'none'),
	// Video Unit - Entertainment - 488x485
	'V02' => array('unitID' => 'xxx', 'width' => '488', 'height' => '485', 'position' => 'none'),
	// Video Unit - Sports - 488x485
	'V03' => array('unitID' => 'xxx', 'width' => '488', 'height' => '485', 'position' => 'none'),
);
What am I missing??? Please I really need help with this. I have been trying to get ads to work for months now. :?: :?: :?:

Oh, I also tried renaming the ad in google ad management to "C07".

I am running MediaWiki version 1.14.0, could that be the issue?
User avatar
Paul
Development Team Leader
Development Team Leader
Posts: 1132
Joined: October 20th, 2007, 2:23 pm

Re: Cannot get AdSense to diaplay anything.

Post by Paul »

I think you are missing the unitID, replace 'xxx' with your unit id and update the size according to your ads, which is setup in Google Adsense. 'C01' is used for mediawiki when you display an ads, it doesn't need to be the name of Google Adsense unit.

If you don't have many unit ids, you can remove 'C02', 'C03'... from the array, just keep these with ids.
Post Reply