There is an easy way to avoid getting kicked from Adsense. Use a few php lines to determine visitors IP address, if it's your own then set Adsense to show ads for another account (such as one of your friends' or a random id number). Thsi way even if you click on the ad unit while performing webmastering duties, your account will not register this click. <?php $userip=$_SERVER['REMOTE_ADDR']; if ($userip=="0.0.0.0") { ?> //somebody else's or random Adsense code <?php } else { ?> //your Adsense code <?php } ?> PHP: Replace 0.0.0.0 with your own IP address.
Ive ran a script like this before and they work well but I removed it because I really dont like to not see what ads are being displayed. On a site thats content is changing daily sometimes you get crappy ads so you have to revise the content. Thats why I like to see what ads are being displayed always.
Just change the google_ad_client number to whatever else - somebody else's number or random, such as 000000000. You will still see the ads being displayed, just that your account won't get credited for that click.
Just send them a mail telling them what happened. It's not click fraud when you tell them to remove the click. siraxi: You should use if ($_SERVER['REMOTE_ADDR'] == '0.0.0.0') PHP:
Was there not an article on here about editing your host file to remap the adSense domain (not adSense.com the domain the ads use) to a local IP, thus blocking all ads on your PC? TBH, it's not hard to avoid clicking your own ads.
What if it stops working and you click your ads without that knowledge, wouldn't they be regarded as click fraud? Is it a risk worth taking?
Siraxi is not saying: use this script and then click the ads. No it's just another line of defense against clicking your ads. Don't click your ads, but if you accidently do it, there is a very good chance nothing will be wrong because of the script. Don't tell me you will click an ad by accident at the very moment that this script won't be working. That would be EXTREME bad luck. Plus. why wouldn't it work?
I have a dynamic IP at home and move a lot so such a solution won't be viable... on the other hand the javascript helps a lot. Thanks guys. Ah, and yes it has happened to me too to click on my own ads... depends on where you place them Lucrative places tend to be sometimes dangerous for their masters too.
some laptops are automatically set to click when the cursor is just held over a link. i wasn't aware of this feature one time and it generated an invalid click.
good idea. there's been a couple of times I clicked on an ad on my site because I was genuinely interested in the ad. Fortunately, all I got was a warning from Google.