Home Android Apps Web Projects Webmaster Tools Software Andrew's Blog  
Perl script to download and parse AdSense statistics

This is a standalone perl script based on the code used in the AdSense extended reporting on this site. Shows reports on standard output or generates a .CSV file with PPC, EPM and impressions per $100 calculations.

The script is distributed for free, use at your own risk, no support is provided. Redistribute freely in original unmodified form. If you build a web accessible service based on the code or ideas of this script, please link back to this page. Please contact the author if not sure.

Download the script:

adsense-reports.pl

Sample output (not real data, some randomly generated values):

bash# perl adsense-reports.pl --random
Date       Impr. Clicks    CTR Earnings   PPC   EPM
20040313   96866    950  0.98%   389.00  0.41  4.02
20040314   93078    923  0.99%   331.00  0.36  3.56
20040315   98919   1047  1.06%   271.00  0.26  2.74
20040316   97815    969  0.99%   232.00  0.24  2.37
20040317   95223   1065  1.12%   307.00  0.29  3.22
20040318   92330   1157  1.25%   152.00  0.13  1.65
20040319   92838   1082  1.17%   234.00  0.22  2.52

Hope you find it useful!

Copyright © 2003-2017 Ejelta.com
Contact Ejelta.com