Text Link Ads

Information and Links

Join the fray by commenting, tracking what others have to say, or linking to it from your blog.

Other Posts
What is AdSense Earnings Plugin ?
Feedbacks



How to install and run AdSense Earnings Plugin?

August 14th, 2006

The installation procedure is very easy and can be finished in about 5 seconds.
You will have to download one php file (absolutely normal single file wordpress plugin).Unzip this archive in your plugin folder (wp-content/plugins/, doesnt matter if this will be in wp-content/plugins/ or in wp-content/plugins/adsense-earnings/ - the plugin WILL work normally since there is no need for other files).

Then go to your “Options” page, then click on “AdSense Revenue”. Enter your Google AdSense username and password, set the time period you want to see and click “update”. Thats all, no need to do anything else. Just wait around 20minutes to update and watch your money growing :)

DOWNLOAD

From the readme file:

==== AdSense Earnings ====

Tags: adsense,revenue
Compatibility: WordPress 2.x, PHP4.3+
Version: 0.1
Contributors:
Plugin URI: http://adsense-wordpress-plugin.ayanev.com/
Show you todays earnings, past earnings from selected range in DashBoard or in the Options page. Also you can show them to other people with the following code: < ?php adsense_profit();?>. http://adsense-wordpress-plugin.ayanev.com/

===== FEATURES =====

The plugin has the following features:
* Check your daily earnings in your DashBoard or Options page
* Check your earnings for specific period
* Show to the public how many $ do you have for today

===== INSTALLATION =====

Copy the file into your wp_content/plugins/ directory.
Activate the plugin from Plugins admin menu.

Once the plugin is activated it creates a “AdSense Revenue” panel under “Options”.
This will allow you to manage the texts and control plugin settings.

===== USAGE =====

Check your DashBoard or look at “Options” >> “AdSense Revenue”, or you can put this anywhere in your template “Today I have: < ?php adsense_profit();?>$ so far”, this will display something like “Today I have: 38.50$ so far”.

DOWNLOAD this plugin



Write a Comment

Take a moment to comment and tell us what you think. Some basic HTML is allowed for formatting.

Reader Comments

Hi,

Good idea.
Unfortunately, I’m getting “Fatal error: Call to undefined function curl_init() ”

I suppose Curl must not be installed on my host. Any way around that, do you know?

Thanks.

Yes, Curl is needed for \”reading\” the data from google adsense page…

There is no other way I can help you. First I thought it will be good if everything is loaded from my server, but then I rethink again ;)
Noone is going to give me in any way their user/password for adsense (there is no other way I can read your data ;) ) and google will ban my IPs for sure if I\’m logging 10 times per minute from same IP but different users..
Sorry about that, but cURL is a must :(

i have it installed however when i go to the admin area this is what i see

Past AdSense Earnings

$ on
Impressions Clicks CTR Earnings

there are many of these, probably 50-75 furthur down i see this

$i on
Impressions Clicks CTR Earnings
i

$objs on
Impressions Clicks CTR Earnings
objs

on line 124 i had to change your mktime to typecast (int)$var because it was passing in strings.

I am not sure if this has anything to do with me using WP 2.0 or PHP 5

email me if you know what is wrong here ;)

Thanks,
Joseph Crawford

cURL is not a must but it’s the easiest way, you could open a direct socket connection to google and save the cookie, but that will take a lot more work than the few lines needed with cURL

O.k. with some debugging i can see that your plugin is doing the same thing as the other adsense plugin i tired. when i echio the contents of $result in hte getUSD function, it shows that it is not authenticating properly. It is telling me that the username/pass is incorrect when in fact it is not.

I am guessing google changed something with the way they authentication goes.

Please help if you know how to get through this.

AdSense Earnings Reports for your Wordpress…

For those who have Google AdSense account, you can use this plugin to check your AdSense earning without need to visit Google AdSense website. It is very useful for those who frequently check their earning incomes like me.
The plugin, AdSense Earning …

my host doesn’t support CURL. can I still use the plugin (Sharing Part).

what files do I need to modify?

thanks!

What do you mean by sharing part ?
Do you mean adsense.ayanev.com ?

Are you going to by chance come up with a version that will work with Yahoo as well?

Kevin, I’m afraid I am not able to do this.

I’m not in USA and can’t have YPN account so I can track down how to get the values…

Sorry about that, but maybe when Yahoo is open for international users (Bulgarians for me ;)

Splendid plugin. Just what I needed. Thank you very much!

I can’t do it worked well…

In AdSense Revenue option i get this “warnings”: http://img241.imageshack.us/img241/2317/warningsul9.png

What i could do to this plugin worf fine?

Thanks.

One more warning on the header:

Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /home/restricted/home/escovandobit/public_html/blog/wp-content/plugins/adsense-earnings.php on line 46

Seems that you don’t have curl…
Please, ask your hosting provider if you have curl enabled :)

Hi, problème here :
Warning: curl_setopt(): Unable to access ./.cookiefile in /home/local/apache/htdocs/sites/p/penseelibre.info/blog/wp-content/plugins/adsense-earnings/adsense-earnings.php on line 102

Warning: curl_setopt(): Unable to access ./.cookiefile in /home/local/apache/htdocs/sites/p/penseelibre.info/blog/wp-content/plugins/adsense-earnings/adsense-earnings.php on line 103

Annie, are you allowed to use curl?

i do not know what is curl ! sorry

You can ask your hosting company about this :)

[…] Adsense-Earnings - Displays your Google Adsense earnings in your Dashboard. […]

hi, thanks for all , but impossible in my blog (version 2.1) i have get another stats : the Counterize II, better for me !

[…] Adsense-Earnings - Displays your Google Adsense earnings in your Dashboard. […]

In my own plugins which use remote requests I use the following code to use cURL if available or fall back to PHP file_get on the remote file. Usually a host will have one of these installed.

Hope it helps some?


/* Fetch remote url, using cURL if available or fallback to file_get_contents */
function updatem_fetch_url($url)
{

/* Use cURL if it is available, otherwise attempt fopen */
if(function_exists('curl_init'))
{
$ch = curl_init();
// set URL and other appropriate options
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

// grab URL and pass it to the browser
$data = @curl_exec($ch);
// close curl resource, and free up system resources
curl_close($ch);
} else {
/* If cURL is not installed use file_get_contents */
$data=@file_get_contents ( $url );
}
return $data;
}

I got the same error as Annie:

Warning: curl_setopt(): Unable to access ./.cookiefile in /home/local/apache/htdocs/sites/p/penseelibre.info/blog/wp-content/plugins/adsense-earnings/adsense-earnings.php on line 102

This is not down to the host not supporting cURL but because the plugin is looking for a cookiefile to support the login to Google.

The plugin is currently set up to look for this in /wp-admin - once I put the file (empty) in there it fills it and works fine. Might want to rewrite that to look in the plugin’s own folder & include one with the zip.

Ta for the plugin, hope all this makes sense!

Martin, thanks! :)

Will fix this ASAP! :)

Hi, I have the same problem that Joseph from post #3 had. Has anyone found a solution or work around to the problem? Thanks!

I’m getting this error:
Warning: mktime() expects parameter 5 to be long, string given in /home/.hypnos/leonardopessoa/leonardopessoa.com/http/wp-content/plugins/adsense-earnings/adsense-earnings.php on line 124

=(

Sorry to hear that…
What version of php do you have?

5.2.1

I got the same error as Leonardo Pesso

Using WP 2.1 and PHP 5.2.1 (I’m not sure about PHP, but it’s 5)

[…] - Adsense-Deluxe - Advanced options for managing the automatic insertion of Google AdSense or Yahoo Publisher Network (YPN) ads to your WordPress posts. With this plugin, you can create customized blocks of code that you can insert within your posts by adding just one word of code. - Adsense-Earnings - Displays your Google Adsense earnings in your Dashboard, check your earnings for specific period, show to the public how many $ do you have for today - Paypal Donate - Allows you to add a Paypal Donate button to your website. This is a plugin for WordPress that adds a small PayPal Donation form on your sidebar. It allows visitors of your site to make a donation or contribution via PayPal, the most popular and largest online payment processing service. Some settings can be changed via the Options Page. Anti-Spam […]

[…] - Adsense-Deluxe - Advanced options for managing the automatic insertion of Google AdSense or Yahoo Publisher Network (YPN) ads to your WordPress posts. With this plugin, you can create customized blocks of code that you can insert within your posts by adding just one word of code. - Adsense-Earnings - Displays your Google Adsense earnings in your Dashboard, check your earnings for specific period, show to the public how many $ do you have for today - Paypal Donate - Allows you to add a Paypal Donate button to your website. This is a plugin for WordPress that adds a small PayPal Donation form on your sidebar. It allows visitors of your site to make a donation or contribution via PayPal, the most popular and largest online payment processing service. Some settings can be changed via the Options Page. Anti-Spam […]

I got the same error as Leonardo Pesso and au8ust? I’m using WP 2.1.2 and PHP 5.
Can you help me out?

I love this comments float option. How did you get this to work?

[…] Visit […]

[…] How to install and run AdSense Earnings Plugin? […]

I haven’t earned any money from the program like this. However, if this program is working well, I’m sure that this program can invite many visitor to be a member of this program, to be a writer to the site that implement this program.

Skin on skin- is that too forward???
We are only looking for couples and single females.
http://www.uinlove.com Single males are automatically filtered out and never reach our inbox.
It always amuses us that single guys cannot read and think that if they email us they will be the “one”
that breaks down that rule and makes us just gotta get together with them.

I’m getting this error:

Warning: mktime() expects parameter 5 to be long, string given in /home/xxxxxxx/public_html/magicalrosegarden/wp-content/plugins/adsense-earnings/adsense-earnings.php on line 124
$0.00 on Totals

Type your comment here.

How about fixing this plugin????

Was working great…and then it crashed everywhere…no fixes..no updates…no news…no attempt.

My guess this plugin has gone to crap and will not supported anymore…time to move on to someone who cares…

I even made a donation…wasted money if you ask me.

I don’t think this plugin works anymore. Since at least wordpress version 2.1 or so. I use to like it a lot.

[…] Ad-Sense Earnings Plug-In - This allows me to see how much money I’ve made w/ Google Ad-Sense w/ out having to log-in @ google.com… I don’t know how effective this one is yet. I’m looking for promptness, whether it delivers the earnings report as quickly as logging into google. If this plug-in works out, it will really be a timesaver! […]

Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /home/a7091713/public_html/wp-content/plugins/adsense-earnings.php on line 100

how can i fix it ?

Hello,
With change of Adsense Login to Ajax, the plugin no longer works properly. Will you be providing a fix to this