Reply
[How To] Adsense Testing
Old 07-14-2006, 12:22 PM [How To] Adsense Testing
$100 - $999 Monthly

Posts: 284
I ran across this on another site and thought it might be useful for this group. I was developing one of my sites with Google Adsense on it and I accidentally clicked a link. Using this tag would have prevented that from being an issue.

google_adtest='on';

Just add it to the Google Code. It will not count clicks or views. Nice little trick.
__________________
Atomm
Gamers Radio: New and Improved Ad Blending!
Advertisepedia Internet Marketing Blog
Atomm is offline
Reply With Quote
View Public Profile Visit Atomm's homepage!
 
When You Register, These Ads Go Away!
Old 07-14-2006, 12:43 PM
Tran's Avatar
Junior Talker

Posts: 1,223
Wait what? So basically if you did that you earn 0$ hehe thats cool I guess
__________________
LinkBucket
Tran is offline
Reply With Quote
View Public Profile
 
Old 07-14-2006, 12:46 PM
rex_b's Avatar
Junior Talker

Posts: 2
Nice tip there, I might have to blog about that. I'll give you credit
rex_b is offline
Reply With Quote
View Public Profile
 
Old 07-14-2006, 01:00 PM
$1,000 - $4,999 Monthly

Posts: 131
You could use some PHP where if the IP matches yours, it adds the code everytime you visit your page. So your impressions won't count.
imported_rob is offline
Reply With Quote
View Public Profile
 
Old 07-14-2006, 01:39 PM
Extreme Talker

Posts: 240
Sounds useful - I always just use a gif whilst I am playing around with layouts and design and stuff, then change it to the proper adsense before I upload to the live server (I usually use includes so I only have to change one file).

Would be nice to use this and know who a lot of the adverts are for though!
imported_mattd is offline
Reply With Quote
View Public Profile
 
Old 07-14-2006, 01:47 PM
$100 - $999 Monthly

Posts: 366
Quote:
Originally Posted by rob View Post
You could use some PHP where if the IP matches yours, it adds the code everytime you visit your page. So your impressions won't count.
thats a good idea
Slevin is offline
Reply With Quote
View Public Profile Visit Slevin's homepage!
 
Old 07-14-2006, 02:17 PM
ChickenHole's Avatar
The back of a Chicken...

Posts: 203
<?php
if ($_SERVER['REMOTE_ADDR'] == "XX.XXX.XXX.XX")
{$ggl_code="google_adtest='on';"}
?>
Where the XX.XX's are your IP address (you may also have to escape that ; but I am too lazy to test that...)

then in the adsense code put:

<?=$ggl_code?>
__________________
Why you should Join MillNic Media: *Weekly Affiliate Payments* (Net 15 is for chumps) Visit the new Millnic Blog Best CPA Network
ChickenHole is offline
Reply With Quote
View Public Profile Visit ChickenHole's homepage!
 
Old 07-14-2006, 02:23 PM
Cozmo's Avatar
Show Me The Money!

Posts: 70
Quote:
Originally Posted by mattd View Post
Sounds useful - I always just use a gif whilst I am playing around with layouts and design and stuff, then change it to the proper adsense before I upload to the live server (I usually use includes so I only have to change one file).
I do that too except I just have an html that says [INSERT ADSENSE HERE].. your gif idea is pretty cool though, you can actually take a screenshot of the ad block so you get the correct size unlike what I'm doing.
__________________
PR5 Directory | Used Car Donation | PM me for automotive link exchange (4 sites)
Cozmo is offline
Reply With Quote
View Public Profile
 
Old 07-14-2006, 02:30 PM
$100 - $999 Monthly

Posts: 366
Code:
		<?PHP
			$ip = $_SERVER['REMOTE_ADDR'];
			$myip = "86.130.179.63";
			$me = False;

			if ($ip == $myip)
			{
				$me = True;
			}

		?>

		<script type="text/javascript">
			<!--
			google_ad_client = "pub-xxxxxxxxxx";
			google_alternate_color = "ffffff";
			google_ad_width = 160;
			google_ad_height = 600;
			google_ad_format = "160x600_as";
			google_ad_channel ="xxxxxxxxxx";
			google_ad_type = "text_image";
			google_color_border = "FFFFFF";
			google_color_bg = "FFFFFF";
			google_color_link = "0000FF";
			google_color_url = "666666";
			google_color_text = "333333";
			<?PHP
				if ($me)
				{
					echo "google_adtest='on'; \n";
				}
			?>
			//-->
		</script>

		<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
		</script>
change the client and channel and $ip. To find out your ip go to www.fanabu.com/example/whatismyip/
Slevin is offline
Reply With Quote
View Public Profile Visit Slevin's homepage!
 
Old 07-14-2006, 04:46 PM
Ultra Talker

Posts: 408
Quote:
Originally Posted by ChickenHole View Post
<?php
if ($_SERVER['REMOTE_ADDR'] == "XX.XXX.XXX.XX")
{$ggl_code="google_adtest='on';"}
?>
Where the XX.XX's are your IP address (you may also have to escape that ; but I am too lazy to test that...)

then in the adsense code put:

<?=$ggl_code?>
You don't need to escape that.

Quote:
Originally Posted by Slevin View Post
Code:
		<?PHP
			$ip = $_SERVER['REMOTE_ADDR'];
			$myip = "86.130.179.63";
			$me = False;

			if ($ip == $myip)
			{
				$me = True;
			}

		?>

		<script type="text/javascript">
			<!--
			google_ad_client = "pub-xxxxxxxxxx";
			google_alternate_color = "ffffff";
			google_ad_width = 160;
			google_ad_height = 600;
			google_ad_format = "160x600_as";
			google_ad_channel ="xxxxxxxxxx";
			google_ad_type = "text_image";
			google_color_border = "FFFFFF";
			google_color_bg = "FFFFFF";
			google_color_link = "0000FF";
			google_color_url = "666666";
			google_color_text = "333333";
			<?PHP
				if ($me)
				{
					echo "google_adtest='on'; \n";
				}
			?>
			//-->
		</script>

		<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
		</script>
change the client and channel and $ip. To find out your ip go to www.fanabu.com/example/whatismyip/
I don't really want to "out-do" you, but here's a simpler way:

PHP Code:
<script type="text/javascript">
<!--
google_ad_client = "pub-xxxxxxxxxx";
google_alternate_color = "ffffff";
google_ad_width = 160;
google_ad_height = 600;
google_ad_format = "160x600_as";
google_ad_channel ="xxxxxxxxxx";
google_ad_type = "text_image";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_url = "666666";
google_color_text = "333333";
<?=($_SERVER['REMOTE_ADDR'] == '86.130.179.63' 'google_adtest = "on";' '');?>
//-->
</script>

<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
Another thing you can add, (which got me kicked off), is "google_hints":
Code:
google_hints = "keywords go here"
Lucas3677 is offline
Reply With Quote
View Public Profile Visit Lucas3677's homepage!
 
Old 07-14-2006, 04:50 PM
Cozmo's Avatar
Show Me The Money!

Posts: 70
Quote:
Originally Posted by Lucas View Post
Another thing you can add, (which got me kicked off), is "google_hints":
Code:
google_hints = "keywords go here"
Kicked off as in AdSense banned? If that's the case why share? hehe
__________________
PR5 Directory | Used Car Donation | PM me for automotive link exchange (4 sites)
Cozmo is offline
Reply With Quote
View Public Profile
 
Old 07-14-2006, 05:29 PM
$100 - $999 Monthly

Posts: 366
i would of thought kicked off as in excited, i doubt they would provide a feature that would threaten your position as a publisher.
Slevin is offline
Reply With Quote
View Public Profile Visit Slevin's homepage!
 
Old 07-14-2006, 05:36 PM
Cozmo's Avatar
Show Me The Money!

Posts: 70
Quote:
Originally Posted by Slevin View Post
i would of thought kicked off as in excited, i doubt they would provide a feature that would threaten your position as a publisher.
Hmm never heard that term before. People must not use it in these parts. :P
__________________
PR5 Directory | Used Car Donation | PM me for automotive link exchange (4 sites)
Cozmo is offline
Reply With Quote
View Public Profile
 
Old 07-14-2006, 06:36 PM
sp0om's Avatar
Junior Talker

Posts: 2
Is there any way you can block certain IP addresses from couting towards clicks? My site is live now, but (ergh) just now I accidentally clicked one of my links.
sp0om is offline
Reply With Quote
View Public Profile
 
Old 07-14-2006, 06:39 PM
$1,000 - $4,999 Monthly

Posts: 131
Quote:
Originally Posted by jooles View Post
Is there any way you can block certain IP addresses from couting towards clicks? My site is live now, but (ergh) just now I accidentally clicked one of my links.
email google and tell them you clicked your own link right away...
imported_rob is offline
Reply With Quote
View Public Profile
 
Old 07-14-2006, 06:49 PM
sp0om's Avatar
Junior Talker

Posts: 2
What's their contact email?
sp0om is offline
Reply With Quote
View Public Profile
 
Old 07-15-2006, 05:21 AM
Junior Talker

Posts: 69
Hi Atomm, thanks for the neat tip. I am going to test it right away. At last I can click through my sites without having to think about how I influence the AdSense stats.
lenz is offline
Reply With Quote
View Public Profile
 
Old 07-15-2006, 03:24 PM
Ultra Talker

Posts: 408
Quote:
Originally Posted by Cozmo View Post
Kicked off as in AdSense banned? If that's the case why share? hehe
Neopets gets to use it.
Lucas3677 is offline
Reply With Quote
View Public Profile Visit Lucas3677's homepage!
 
Reply     « Reply to [How To] Adsense Testing
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.40543 seconds with 12 queries