Testing your Google AdSense

This trick is coming from my friend Nix.

If you are developing a site containing Google Adsense you might know that clicking on your own ad is not allowed.

To be able to test and click on your own ad and still follow Google AdSense Program Policies, just add following to your pages:

<script type=“text/javascript”>google_adtest = ‘on’;</script>

Don’t forget to remove it on your production environment! ;)

Copyrights © 2024 Laurent Kempé. All Rights Reserved.
Author's picture

Laurent Kempé

I am an experienced Team Leader & Distinguished Solution Architect with a passion for shipping high-quality products by empowering development team and culture toward an agile mindset. I bring technical vision and strategy, leading engineering teams to move product, processes and architecture forward.


Team Leader, Distinguished Solutions Architect


Illzach, France