How to Test Adsense Ads on Your Site Safely (New Trick)

Many newbies feel excited about their Adsense ads and end up clicking on them. Remember that Adsense TOS clearly warns not to click on your own Adsense ads and disobeying this might lead to your account ban. Google advises to use it’s Adsense preview tool to preview your Adsense ads, but this tool shows only few pre-configured ads. Google is yet to develop this feature, this is not what  a publisher looks for. You can follow an another trick to test ads on your own site by clicking on them. Yes, you can click on your own Adsense ads and Google won’t ban you for this, let’s know how!

Adsense ad clicksWhile creating a new Ad zone, Google provides you piece of code to place on your site. When someone clicks on that link, Google tracks the IP address, geographical location along with many other things (How Google detects invalid clicks). Now, if you click on your own ads, Google will track that the publisher is clicking on it’s own ads and will ban your account without any warning or notice. In order to be safe, even if you click on your own ads, you have to make those ad units uncrackable.

Normal Adsense code looks like this :

<script type=”text/javascript”><!–
google_ad_client = “pub-xxxxxxxxxxxxxxxxx”;
/* 728×15, created 4/16/09 */
google_ad_slot = “xxxxxxxxxxxxxx”;
google_ad_width = 336;
google_ad_height = 280;
//–>
</script>
<script type=”text/javascript”
src=”http://pagead2.googlesyndication.com/pagead/show_ads.js”>
</script>

Now insert a single piece of code inside that code.

google_adtest = “on”;


Your final code should look like the below screenshot now :

Preview Adsense ads on your site safely

After updating the above code, click on your own ads to check them. By adding “Test” tag to your Adsense code, you make your Adsense code a test unit and none of the clicks will be calculated by Google, no matter if the clicks are coming from the publisher or any third party.

Google will not calculate any impression or clicks on these ads, so you should mind to remove that code as soon as you are done with your testing. Else, you might end up getting nothing as your Adsense revenue :P

We will send you some more information related to How to Test Adsense Ads on Your Site Safely (New Trick)

Below are some more related articles to the topic:

Top 28 Adsense Suggestions to Adsense Product Ideas
Google Adsense Introduces Expanable Ads Format
What if You don’t Receive Google Adsense PIN Code after 3 Attemps?
Adsense Introduces Estimated and Finalized Earnings System
What to do When You Cannot Access or Login to your Adsense Account

Tags: , ,

2 Responses to “How to Test Adsense Ads on Your Site Safely (New Trick)”

  1. harrist 17. Nov, 2009 at 1:21 pm #

    i am interesting with your tutorial a lot .
    i am newbies,so i want to know how to get the click but still safety,and i hope you send me email maybe a little bit detail cause i am newbies,thanks you for your trick’s
    please send me another tricks thank’s again

  2. VirusInc 06. Jul, 2010 at 11:55 am #

    google_adtest = “on”; is no longer supported by AdSense so beware of using it as it will surely add invalid impressions and will get your account suspended.

Leave a Reply