In 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.
What is an Invalid Click
In short, an Invalid click can be termed as an unintentional click which doesn’t benefit the advertisers. It can happen in several ways Eg. Your competitor or enemy can click your ads in a move to disable your account.
Invalid clicks create a huge loss to advertisers so it is the duty if Google to disable such accounts which have such behavior.
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.
- Poor and Spammy Contents
- Lots of Ads
- Lack of knowledge about Adsense (children)
- Enemy
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. Goto your blogger dashboard and click Edit HTML after that paste this code above
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
If not, you can follow the following article : How To Add Adsense Invalid Click Protection in Blogger
nice your post bro support me website www.gangoh.com thanks for help me in blogging...
ReplyDeletehttps://www.gangoh.com
ReplyDeleteIt's not working
ReplyDeleteIf not, you can follow the following article
Deletehttps://www.insurancefinances.com/2021/10/how-to-add-adsense-invalid-click.html
Nobody can tell, this script actually works or not.
ReplyDeletenot work i check useless
DeleteIf not, you can follow the following article
Deletehttps://www.insurancefinances.com/2021/10/how-to-add-adsense-invalid-click.html
best adsense alternative ad network
ReplyDeletehttps://lord-media.com