Adsense Invalid Click Protector for Blogger

4

Adsense Invalid Click Protector for BloggerIn this article, we are going to see how to implement an Adsense invalid click protector for blogger with javascript. Invalid click would lead to suspension of Adsense account so it should be taken very seriously.

Adsense is always the first choice of every blogger and it is used by almost every blogger. It is trying to improve the ad experience and the conversion rate without hurting the advertiser’s money.

Demo

What is an Invalid Click

Invalid clicks according to google is those clicks which don’t benefit the advertiser or neither have any interest in the content of the Ad.

Every year thousands of dollar is wasted for advertisers due to invalid clicks. So Google initiated several measures to block and suspend those accounts which violate their policy.

Read this article – Table of Content in Blogger

How Invalid Click Occurs

Invalid clicks can be divided into intentional or non-intentional based on the motive of the action. However, there are many ways to protect your account from these actions.

  1. Spammy Contents
  2. Lots of Ads
  3. Lack of knowledge about Adsense
  4. Envy

I don’t think I have to explain each one but you should stop sharing your blog on everywhere, don’t write spammy contents which irritate readers.

Adsense Invalid Click Protector for Blogger

It is very easy in WordPress to protect your Adsense account with plugins but blogger doesn’t support this feature. But we can utilize the javascript to implement an invalid click protector.

First of all, we should appreciate the coder behind this awesome script which has solved years of problem and I think this would really help a huge number of blogger who is depending upon Blogger CMS.

Read this article – Top SEO Optimized Blogger Templates

Adsense Invalid Click Protector Script

Follow every step carefully to avoid errors and make sure that you have taken a backup of your theme so that you don’t have worry if something goes wrong.

1. Go to your blogger dashboard and click Edit HTML after that paste this code above </head> or </body> tag.

This the default code with all pre-configured values and settings.

<script async='async' defer='defer'>
//<![CDATA[
function downloadJSAtOnload(){var e=document.createElement("script");e.src="https://cdn.jsdelivr.net/gh/mhdfasilwyd/[email protected]/adsense-guard.js",document.body.appendChild(e)}window.addEventListener?window.addEventListener("load",downloadJSAtOnload,!1):window.attachEvent?window.attachEvent("onload",downloadJSAtOnload):window.onload=downloadJSAtOnload;
//]]>
</script>

How this code works

This small piece of javascript will hide your Ads if someone clicks your ad multiple times ( you can set this no in the script) and will show only after a fixed interval of time.

You can change all the default variable like ads click and time with your own data but proceed with the utmost care.

Read this article – Top 5 Mobile Friendly Blogger Template Free

Editable Script

<script async='async' defer='defer'>
//<![CDATA[
function downloadJSAtOnload(){var e=document.createElement("script");e.src="https://cdn.jsdelivr.net/gh/Arlina-Design/[email protected]/clickonme.js",document.body.appendChild(e)}window.addEventListener?window.addEventListener("load",downloadJSAtOnload,!1):window.attachEvent?window.attachEvent("onload",downloadJSAtOnload):window.onload=downloadJSAtOnload;
Arlina.init({click:3,interval:23000});
//]]>
</script>

click:3 maximum number of clicks after which the Adsense ad will not be shown.

interval:23000 time-interval after which the ad will be shown again (time in milliseconds)

You can change with your own values and paste as shown in the above step.

Disclaimer

Neither the author or we guarantee the safety of your Adsense account and this script doesn’t ensure 100% blocking of invalid clicks.

This code is actually adapted from Installing the AdSense Click Anti Bomb Script on Blogger

Conclusion

❤ I hope that you liked this post on Adsense Invalid Click Protector for Blogger. You can freely comment on your doubts and queries below.

If you liked this article, then please share this with your friends. You can also find us on Twitter, Facebook, YouTube, and Instagram.

4 COMMENTS

  1. Thanks for this wonderful updates been given I really appreciate thanks for you good work I really appreciate am going to try it on my blogspot now thanks once more

LEAVE A REPLY

Please enter your comment!
Please enter your name here