Monday, July 23, 2007

Test-Drive your Adsense

Sometimes it becomes absolutely necessary for us to test the various widgets we have added on our blogs/websites ! when working with the code, or otherwise. This may include, you clicking on your own (adsense) ADs. Now, its a well-known and well-understood fact that Adsense doesn't like 'flat' impressions and self-clicking our ads. And no one is (I think) fool to o risk his/her Adsense account for any invalid activity.

So,here's a simple solution to this problem. Just add "google_adtest = ‘on’;" to your ad code.


google_ad_client = “pub-xxxxxxxxxxxxxxxx”;
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = “468×60_as”;
google_ad_type = “text”;
google_ad_channel =””;
google_adtest = ‘on’;

Now any impressions or clicks will be ignored by Adsense, So you can test the adsense on your website/blog without any hassles.
As the Adsense TOS clearly say:
Any AdSense ad code, search box code, or referral code must be pasted directly into Web pages without modification. AdSense participants are not allowed to alter any portion of the ad code or change the layout, behavior, targeting, or delivery of ads for any reason.

Even though you are allowed to make this change in your ad code even though Google’s Policies and TOS don’t allow you to make any changes in code.Just in case you are uncertain about it, please contact Adsense Support Team.

Also, remember to remove google_adtest = “on”; once you are done or you won’t make any money.


Rajeev expressed...

i hate putting up ads on my blog!
never tried it at all!

Abhinav Sood expressed...

Ah! Maybe you should try upgrading to a three column template and use adsense as a design-enhancement by using a matching color-scheme. I suggest a three-column template becuse you can use it for better layout management. You can group similar widgets together on one-side(just as they are now at Infinite Dreams),the blog-entries come in the middle and you can try placing your ads in another side-bar without interfering with your blog-content anyway !

Thats just a suggestion :)