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   92582    923  1.00%   399.00  0.43  4.31
20040314   95098    976  1.03%   293.00  0.30  3.08
20040315   94678   1155  1.22%   140.00  0.12  1.48
20040316   99024   1132  1.14%   166.00  0.15  1.68
20040317   94925   1172  1.23%   358.00  0.31  3.77
20040318   91464   1040  1.14%   269.00  0.26  2.94
20040319   92031   1138  1.24%   254.00  0.22  2.76

Hope you find it useful!

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