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   97133   1074  1.11%   244.00  0.23  2.51
20040314   98917   1171  1.18%   103.00  0.09  1.04
20040315   91423    920  1.01%   248.00  0.27  2.71
20040316   93285    916  0.98%   350.00  0.38  3.75
20040317   96456   1159  1.20%   243.00  0.21  2.52
20040318   92804    957  1.03%   240.00  0.25  2.59
20040319   91882   1180  1.28%   154.00  0.13  1.68

Hope you find it useful!

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