Archive for the ‘Adsense’ Category
March 19, 2009 by Alex Polski | 1 Comment »
As you know 1.5 month ago I’ve started PHP AdSense account library project. The current version of the library is 0.2, which includes new features and improvements. Here is the small stats for the project:
- 291 Visits
- 127 Visitors
- 86 downloads
Visitors by country:
- Russia
- Ukraine
- United States
- Germany
- Czech Republic
- India
- United Kingdom
- Denmark
- France
3 issues were posted and 1 bug was fixed thanks to one of the users.
I think the project is on the right way and it’s useful for people.
February 5, 2009 by Alex Polski | 2 Comments »
I’ve started PHP AdSense account library project on Google Code. There are the sources from my previous blog post now which you can download as the version 0.1. I’ve choose to release the library under GNU GPL 3 license.
I’m planning to continue the development of this library, add new features, write the tutorial and you can help me to do it :)
The following tasks are in my nearest plans:
- Write the tutorial and user manual
- Add AdSense for Search support
- Develop flexible methods for report retrieving
Visit PHP AdSense account library project
February 3, 2009 by Alex Polski | 6 Comments »
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
November 9, 2008 by Alex Polski | 3 Comments »
There is a nice PHP class for the retrieving the data from Google Adsense account like impressions, clicks, ctr, ecpm and earnings – PHP account adsense monitor. But it does not work now, seems Google updated the authorization system for Adsense. I’ve fixed it a bit and now you can use it in your web applications.
A small example:
<?php
include('adsense.php');
$adsense = new AdSense();
if ($adsense->connect('username', 'password'))
{
$data = $adsense->yesterday();
var_dump($data);
}
else
{
die('Could not login to AdSense account!');
}
?>
This code will output something like this:
array(5) {
["impressions"]=>
string(2) "49"
["clicks"]=>
string(1) "0"
["ctr"]=>
string(5) "0.00%"
["ecpm"]=>
string(5) "$0.00"
["earnings"]=>
string(5) "$0.00"
}
You can download the script here.