PHP Adsense Report Script

Currently there is no Adsense API for accessing account statistics / reports. Fortunately, Alex Polski (Victor Klepikovskiy) runs a project on Google Code that provides a PHP class to login and download a variety of reports from Adsense. 

So, if you want to monitor your Adsense reports in your own systems, you should give his PHP Adsense Account Library a try. 

It supports:

  • Parse overview stats into an associative array.
  • Shows quick stats for Today
  • Show quick stats for Yesterday
  • Show quick stats for Last 7 Days
  • Show quick stats for This Month
  • Show quick stats for Last Month
  • Show quick stats since Last Payment
  • Get a specific report as a CSV file
  • Get a specific report as an associative array.