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   91737   1175  1.28%   180.00  0.15  1.96
20040314   91552   1119  1.22%   319.00  0.29  3.48
20040315   95422   1011  1.06%   309.00  0.31  3.24
20040316   94689    963  1.02%   132.00  0.14  1.39
20040317   92877    981  1.06%   232.00  0.24  2.50
20040318   92185    963  1.04%   184.00  0.19  2.00
20040319   90915    980  1.08%   283.00  0.29  3.11

Hope you find it useful!

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