Cyber-Knowledge.net Computer related blog

27Jan/07

Prevent Accidental Clicks On Your Own AdSense Ads

GoogleI've been an Adsense publisher for a few months now, and overall it's been an enjoyable experience. I've had little problems using it, and there are a lot of nice features. However this month while working on my theme, I accidentally clicked my own ad. That's obviously against Google's ToS, and could get you banned. I quickly emailed Adsense, and all was well. This got me thinking. How can I make it so I can't click my own ads? Well Greasemonkey to the rescue!

To implement this on your own website, you'll first need to be using the Firefox web browser. If you're using that, then download and install Greasemonkey. This allows you to run JavaScript files, to change the way you browse websites. Next download and install this script (Mirror). After it's installed, visit your website which presumably has Adsense ads installed on it already. Enter your publisher in to the pop up box that will come up, and you're all set. To find your publisher ID, look through the source code of your site, or make a new ad block in the Adsense control panel. If you're not sure if it's working, test it out. Click the "Ads by Google" part of your ad block. If it doesn't go anywhere, then it's working, and you can click your ads at will.

Print Post
Comments

No comments yet.

Leave a comment