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   95051   1047  1.10%   129.00  0.12  1.36
20040314   98994   1134  1.15%   100.00  0.09  1.01
20040315   92153   1162  1.26%   270.00  0.23  2.93
20040316   98493   1106  1.12%   237.00  0.21  2.41
20040317   99238    982  0.99%   290.00  0.30  2.92
20040318   94815    951  1.00%   220.00  0.23  2.32
20040319   97559    941  0.96%   153.00  0.16  1.57

Hope you find it useful!

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