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   92097   1172  1.27%   318.00  0.27  3.45
20040314   97747    902  0.92%   173.00  0.19  1.77
20040315   93337   1091  1.17%   195.00  0.18  2.09
20040316   96802   1069  1.10%   324.00  0.30  3.35
20040317   99241   1098  1.11%   260.00  0.24  2.62
20040318   94021   1088  1.16%   368.00  0.34  3.91
20040319   91699   1101  1.20%   125.00  0.11  1.36

Hope you find it useful!

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