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   97342    951  0.98%   126.00  0.13  1.29
20040314   96897   1107  1.14%   229.00  0.21  2.36
20040315   94228    942  1.00%   186.00  0.20  1.97
20040316   92265    951  1.03%   161.00  0.17  1.74
20040317   97556   1187  1.22%   131.00  0.11  1.34
20040318   90009   1123  1.25%   381.00  0.34  4.23
20040319   93906   1081  1.15%   271.00  0.25  2.89

Hope you find it useful!

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