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   99524   1155  1.16%   288.00  0.25  2.89
20040314   90050   1194  1.33%   244.00  0.20  2.71
20040315   92503    905  0.98%   356.00  0.39  3.85
20040316   97411    939  0.96%   289.00  0.31  2.97
20040317   93900   1025  1.09%   186.00  0.18  1.98
20040318   94006   1039  1.11%   308.00  0.30  3.28
20040319   98544    958  0.97%   162.00  0.17  1.64

Hope you find it useful!

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