Archive for the ‘Adsense’ Category


March 19, 2009 by Alex Polski | 1 Comment »

PHP AdSense account library news and stats

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:

  1. Russia
  2. Ukraine
  3. United States
  4. Germany
  5. Czech Republic
  6. India
  7. United Kingdom
  8. Denmark
  9. 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.

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!


February 5, 2009 by Alex Polski | 2 Comments »

PHP AdSense account library on Google Code

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

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!


February 3, 2009 by Alex Polski | 6 Comments »

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!


November 9, 2008 by Alex Polski | 3 Comments »

PHP account adsense monitor

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.

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!