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   92411   1048  1.13%   267.00  0.25  2.89
20040314   94880   1004  1.06%   246.00  0.25  2.59
20040315   95498    951  1.00%   325.00  0.34  3.40
20040316   92350    963  1.04%   170.00  0.18  1.84
20040317   92499   1111  1.20%   219.00  0.20  2.37
20040318   96544   1016  1.05%   129.00  0.13  1.34
20040319   95272   1100  1.15%   260.00  0.24  2.73

Hope you find it useful!

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