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   92263    945  1.02%   126.00  0.13  1.37
20040314   93412   1038  1.11%   365.00  0.35  3.91
20040315   92890    935  1.01%   346.00  0.37  3.72
20040316   97227   1149  1.18%   196.00  0.17  2.02
20040317   99524    987  0.99%   162.00  0.16  1.63
20040318   94313   1174  1.24%   173.00  0.15  1.83
20040319   94783   1079  1.14%   125.00  0.12  1.32

Hope you find it useful!

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