How to test website with Google Adsense

Written by Himanshu on Mar 30, 2008| 0 Comments:

Recently I was updating my website with adsense. Since Adsense expects that you should not increase the page impression on your website yourself, it was really getting difficult for me to test my webpage generating page impressions on single refresh. I just came to know from Google that there's an easy way out for testing your website. The following two simple approaches can be followed to cease the impressions on your website.

1. Just on your adsense code ad a separate line google_adtest = "on"; and you are done!!

<script type="text/javascript"><!--

google_adtest = "on";
google_ad_client = "pub-publishercode
google_ad_slot = "somenumber";
google_ad_width = 468;
google_ad_height = 15;
.....

...
</script>

2. Other way could be instead of adsense code you put the iframes of the size exactly same as your adsense ad and check your website then.

<iframe name="AdsenseTest" height="15" width="468">
Your browser does not support inline frames or is currently configured not to display inline frames.
</iframe>

But the method 1 is quite simple enough to avoid generating fraudulent page impressions and most recommended way.

Comments by Readers:

© BlogArora