Home Projects Webmaster Tools Software Andrew's Blog     My Account Login
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   90960   1140  1.25%   143.00  0.13  1.57
20040314   90719    933  1.03%   357.00  0.38  3.94
20040315   91808    946  1.03%   144.00  0.15  1.57
20040316   94267   1196  1.27%   184.00  0.15  1.95
20040317   93934   1156  1.23%   361.00  0.31  3.84
20040318   96679    985  1.02%   131.00  0.13  1.35
20040319   96690    994  1.03%   356.00  0.36  3.68

Hope you find it useful!

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