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   92996    968  1.04%   172.00  0.18  1.85
20040314   96422    962  1.00%   373.00  0.39  3.87
20040315   93774   1063  1.13%   187.00  0.18  1.99
20040316   91768   1155  1.26%   290.00  0.25  3.16
20040317   97767    916  0.94%   252.00  0.28  2.58
20040318   92646   1084  1.17%   138.00  0.13  1.49
20040319   94743   1109  1.17%   141.00  0.13  1.49

Hope you find it useful!

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