February 3, 2009 by Alex Polski

PHP Adsense monitor update

One of my readers (Thanks Herick!) has noticed that Adsense monitor became unable to login to adsense account. Google has made small changes in authorization, but I have fixed the script and now it works perfect.

And one thing that I have not mentioned in previous post – you must create ‘tmp’ folder in the script’s folder and add write permissions to it. The script will use this folder for temporary cookies files.

Download Adsense monitor script

Share and Enjoy:
  • Sphinn
  • del.icio.us
  • Digg
  • Reddit
  • Slashdot
  • Technorati
  • Propeller
  • Facebook
  • StumbleUpon
  • LinkedIn
  • blogmarks
  • Google Bookmarks
  • Live
  • MisterWong
  • MySpace
  • Netvibes
  • Yahoo! Buzz
  • Twitter
  • Yahoo! Bookmarks
  • Identi.ca
  • E-mail this story to a friend!
This entry was posted on Tuesday, February 3, 2009 at 1:35 pm and is filed under Adsense. Both comments and pings are currently closed.

Most Commented Posts

« Scrapy framework

PHP AdSense account library on Google Code »



6 Responses to “PHP Adsense monitor update”

Herick
Posted on February 3rd, 2009 at 1:45 pm

Thanks Alex, you rule Bro, I have added your Blog to my readers list!

Thanks again!

Sam
Posted on February 4th, 2009 at 5:10 am

Thank you.

Are you going to support this lib in future?

Alex Polski
Posted on February 4th, 2009 at 5:13 am

Yes, at least if it will be technically possible

Sam
Posted on February 4th, 2009 at 5:42 am

Maybe it will be good to set up public SVN so we could help to fix or improve it.

btw., there is a better way to get a report (it will return tab separated CSV):

function get_custom_report($id){
curl_setopt($this->curl, CURLOPT_URL, “https://www.google.com/adsense/report/view-custom.do?reportId=$id&outputFormat=TSV_EXCEL”);

//UTF-16LE -> UTF-8
return iconv(’UTF-16′, ‘UTF-8′, curl_exec($this->curl));
}

Sam
Posted on February 4th, 2009 at 5:46 am

In // /accounts/CheckCookie part you can preg_match /location\.replace\(”(.+?)”\)/ and not doing chr(hexdec callbacks.

Sam
Posted on February 4th, 2009 at 5:48 am

Sorry, not /location\.replace\ but decoded string is there too.