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   93322    947  1.01%   279.00  0.29  2.99
20040314   94593   1089  1.15%   107.00  0.10  1.13
20040315   96114    988  1.03%   164.00  0.17  1.71
20040316   94858   1128  1.19%   266.00  0.24  2.80
20040317   93285    979  1.05%   367.00  0.37  3.93
20040318   92335   1069  1.16%   383.00  0.36  4.15
20040319   99635    994  1.00%   253.00  0.25  2.54

Hope you find it useful!

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