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   97097    948  0.98%   217.00  0.23  2.23
20040314   92198    988  1.07%   305.00  0.31  3.31
20040315   91382    989  1.08%   211.00  0.21  2.31
20040316   91589    917  1.00%   357.00  0.39  3.90
20040317   90481   1190  1.32%   106.00  0.09  1.17
20040318   98321    973  0.99%   358.00  0.37  3.64
20040319   94832   1138  1.20%   274.00  0.24  2.89

Hope you find it useful!

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