Starting from May 2013, Adsense has stopped showing invalid clicks in adsense reports.After this it became difficult to find out invalid clicks.Now, to identify the invalid clicks you can compare your Adsense clicks from Adsense report to another programs like StatCounter or Google Analytics.But these programs only provides limited logs. This script will check your Adsense earnings and store the data in a Google SpreadSheet after every minute.
What will this script do?
I-It will log CPC of almost every click (Adsense Reports only shows average CPC).
II-You can find the number of invalid clicks and their timing.(Adsense Reports do not shows)
How to identify invalid clicks-
Every time a visitor clicks on an Adsense ads (CPC based) publisher’s account is credited for that click.But,if Adsense indentifies that click as Invalid ,the click and earnings both are removed by Adsense from publisher’s account.This process usually takes 3 to 5 minutes but sometimes may take longer time.This script runs after every minute so it will immediately log the click and earnings.Later,if adsense mark this click as Invalid then you will show the less number of clicks and earning.So check the spreadsheet if you see a deceasing number on click then it means click is marked as Invalid.Using this script you can also find the time of invalid click activity or any Click Bomb activity on your account.
1-An active Adsense account.
2.Google API key.
If you don’t have Google API key then follow these steps.
I-Go here and click on Services.
II-Turn ON to AdSense Management API.(Accept TOS)
III-Go to API access copy API key under Simple API Access subheading.
Now follow these instruction to allow Google Apps Script to monitor and store your Adsense Data.
1-Go here and make a copy of this spreadsheet.
2.Go to Tools>Script Editor (a new window will open)
3.Assign your Adsense publisher id.
4.Click on Resources>Use Google APIs.
5.Turn on Adsense Management API and Enter your API key.
6-Click on Run and then click on Start.Google will ask to authorize the application ,click on Authorize and allow this application to access your Adsense data.
Now this script will store your Adsense logs in a Spreadsheet.To view the logs go to your Google Drive and open this SpreadSheet.
Incoming Search Terms: