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   97628   1179  1.21%   369.00  0.31  3.78
20040314   91756   1132  1.23%   311.00  0.27  3.39
20040315   96598    930  0.96%   297.00  0.32  3.07
20040316   95836   1134  1.18%   120.00  0.11  1.25
20040317   90020   1155  1.28%   151.00  0.13  1.68
20040318   96081   1062  1.11%   172.00  0.16  1.79
20040319   91130    917  1.01%   399.00  0.44  4.38

Hope you find it useful!

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