PHP Adsense monitor update
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
PHP AdSense account library on Google Code »
6 Responses to “PHP Adsense monitor update”
Posted on February 4th, 2009 at 5:13 am
Yes, at least if it will be technically possible
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));
}
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.
Posted on February 4th, 2009 at 5:48 am
Sorry, not /location\.replace\ but decoded string is there too.























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!