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   98593    985  1.00%   192.00  0.19  1.95
20040314   92778    928  1.00%   383.00  0.41  4.13
20040315   96561    946  0.98%   288.00  0.30  2.98
20040316   98667   1112  1.13%   249.00  0.22  2.52
20040317   93884    933  0.99%   336.00  0.36  3.58
20040318   97587    914  0.94%   335.00  0.37  3.43
20040319   93369   1185  1.27%   263.00  0.22  2.82

Hope you find it useful!

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