On: 2005/10/07 Viewed: 70425 times
Shorter URL for this page: http://ozh.in/lk

This is a rather simple script that will create an RSS feed with your daily Adsense earnings, making it easy to track them via your regular feed reader.

Current version: 1.1 (24 april 2006)

Features

Multiply your income by 10 ! Become a 6 figure blogger ! No, just kidding :) There are no feature this time, except that you can specify how many feed items (i.e. days) you want to have.

Download

Get the script :

  • rss-adsense.php (colorized html, copy & paste into a blank file but don’t download it : it’s colorized html, not code :)
  • rss-adsense.txt (right click & save as .php)

Configure

Edit the script, and modify 4 lines at its beginning to suit your needs. Basically, you have to enter your Adsense login, password, the range of days you want to aggregate and a path to a temporary cookie file you shouldn't even need to modify.

Upload

Upload the script to some secret location on your server, or rename it to some secret filename. Why secret ? Just because you don't want anybody to see how much (or how few) you earn, and also because it is against Adsense Terms of Use to publicly display your Adsense results.

If you add it on a web-based RSS reader (Bloglines for example), be sure to mark it private.

FAQ

Q: Is it secure to enter my Adsense password in a script ?
A: It is, as long as no one can access the source of the script on your server (i.e. download the source file via FTP for example)

Q: Is it a malicious script that will send my password to you ?
A: Well of course. It will also guess your credit card number and post it on random forums all over the internet.

Q: What does Google think about this ?
A: They don't care. Read the disclaimer below.

Q: What does the author of PHP Curl extension think about this ?
A: He thinks it's way cool.

Disclaimer

Adsense Terms of Use regarding disclosure of your earnings vary from time to time. As of today, you cannot publicly reveal your daily income, Click Through Ratios and eCPM. If anyone else ever discovers and reads your feed, it will be your fault. Not mine :)

Adsense reports are not update real time, so there is no need to refresh your feed every 5 minutes. Set up a reasonnable refresh delay such as one hour minimum in your feed reader.

Release history

  • 10/05/2005 : 1.0, initial release
  • 04/24/2006 : 1.1, update by Chris Gibson when Google changed their query parameters. Thanks Chris !

Shorter URL

Want to share or tweet this page? Please use this short URL: http://ozh.in/lk

Metastuff

This page "Adsense Earnings RSS Feed" was posted on 07/10/2005 at 1:13 pm

70 Blablas

  1. 1
    sams weblog » Blog Archive »... Switzerland »
    pingback on 13/Oct/05 at 1:12 pm # :

    […] Das Script kann man hier herunterladen. Technorati Tags: […]

  2. 2
    Will United Kingdom »
    replied, on 13/Oct/05 at 2:11 pm # :

    Hi,

    I get the following error:
    Fatal error: Call to undefined function: curl_init() in /home/[…]/rss-adsense.php on line 60

    Is this to do with my web host's php setup?

  3. 3
    Ozh France »
    replied, on 13/Oct/05 at 4:19 pm # :

    Will » yes, you need a PHP installation with curl. It's really pretty standard, ask for it or change host :)

  4. 4
    Jon Canada »
    commented, on 13/Oct/05 at 6:02 pm # :

    Thanks so much for this script.

    I'd really like to be able to view earnings by channel. Before I try to hack your script, can you give me some pointers on what I might want to try? Or why I might not want to try it? Or can I convince you to add that feature?

    :)

    Thanks!

    Jon

  5. 5
    Ozh France »
    wrote, on 13/Oct/05 at 6:25 pm # :

    No, I won't make it :)
    I just wanted to have a quick recap I can follow through the day, but for detailed stats I just to the adsense site

  6. 6
    michelem Italy »
    commented, on 13/Oct/05 at 6:54 pm # :

    It's a very useful script, thanks.
    You could add a note like "it requires php-curl package" (php4-curl for Debian users)
    Nice work

  7. 7
    Adsense Earnings RSS Feed script Italy »
    pingback on 13/Oct/05 at 7:16 pm # :

    […] Ho scoperto una cosa molto utile per chi utilizza e cerca di guadagnare qualcosa con i Google Adsense, Ozh ha creato uno script (php, richiede php-curl) per ottenere la lista degli ultimi guadagni in formato feed RSS. Basta copiarsi il file metterlo in qualche posto al sicuro in un vostro spazio online (magari aggiungendo anche un file robots.txt che escluda l'indicizzazione di quel file) e aggiungere l'url al vostro aggregatore preferito, ma se usate un aggregatore online (come Bloglines per es.) ricordatevi di mettere il feed "privato"! (e' assolutamente vietato da regolamento pubblicare i proprio guadagni). Semplice e utile. –> […]

  8. 8
    Jon Canada »
    said, on 13/Oct/05 at 7:22 pm # :

    Ozh: OK, I don't blame you for not wanting to make it :)

    I'm *ok* with PHP, but certainly not a master. Can you give me a clue on where I would want to massage this script to show data by channel?

    I've tried the '&type=channel&c.id=34656456′, but this just breaks the feed…

    I made that adsense channel id up, for the record.

    Any clue would be appreciated.

    Thanks!

  9. 9
    cosa Indonesia »
    commented, on 14/Oct/05 at 7:31 pm # :

    downloaded, nice script :)

    too bad it won't make me a six figure blogger. I hope you add that feature in the next version!

  10. 10
    վ³¤ȕ־ » Google Ads... United States »
    pingback on 16/Dec/05 at 7:25 pm # :

    […] Adsense to RSS Version http://planetOzh.com */ […]

  11. 11
    RSS SCRIPT » RSS Tool Talk : RSS S... United States »
    pingback on 31/Jan/06 at 7:00 pm # :

    […] Adsense Earnings RSS Feed « planetOzhThis is a rather simple script that will create an RSS feed with your daily Adsense earnings, making it easy to track them via your regular feed reader. … […]

  12. 12
    RSS SCRIPT » JavaScript RSS Box Vi... United States »
    pingback on 05/Feb/06 at 3:01 am # :

    […] Adsense Earnings RSS Feed « planetOzh This is a rather simple script that will create an RSS feed with your daily Adsense earnings, making it easy to track them via your regular feed reader. … […]

  13. 13
    RSS SCRIPT » Adsense Earnings RSS ... United States »
    pingback on 08/Feb/06 at 2:01 pm # :

    […] Adsense Earnings RSS Feed " planetOzh … This is a rather simple script that will create an RSS feed with your daily Adsense earnings, making … PHP libcurl Featuring my Adsense to RSS Script. Adsense Earnings RSS Feed … […]

  14. 14
    RSS SCRIPT » Adsense Earnings RSS ... United States »
    pingback on 10/Feb/06 at 7:00 am # :

    […] Adsense Earnings RSS Feed « planetOzhAdsense Earnings RSS Feed « planetOzhThis is a rather simple script that … RSS SCRIPT » JavaScript RSS Box Viewer 1.0RC: […] Adsense Earnings RSS Feed. … […]

  15. 15
    PurpleRain Malaysia »
    commented, on 25/Apr/06 at 8:15 am # :

    $cellpadding=0 (//–> clicks on pages : CTR = – eCPM =

    It says xml error, expect

    What's wrong with it?

    Thx.

  16. 16
    Will United States »
    replied, on 30/Apr/06 at 7:41 am # :

    Yeah same here. :(

    XML Parsing Error: mismatched tag. Expected: . Location: rss-adsense.php Line Number 173, Column 63:$cellpadding=0 (//--> clicks on pages : CTR = - eCPM =

    --------------------------------------------------------------^

  17. 17
    PurpleRain Malaysia »
    wrote, on 11/May/06 at 7:13 am # :

    I am still waiting for yr assistance. Can i have a hand here? Thanks.

  18. 18
    Dx Argentina »
    said, on 25/Jul/06 at 8:45 am # :

    teh script is borked…
    <title>$</script> on </title>

    and many things like this…

    No, no, no… login incorrect

    This helped me in debugging, find this:


    curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt ($ch, CURLOPT_COOKIEJAR, $cookie);
    curl_setopt ($ch, CURLOPT_COOKIEFILE, $cookie);
    curl_setopt ($ch, CURLOPT_POSTFIELDS, $postdata);
    curl_setopt ($ch, CURLOPT_POST, 1);
    $result = curl_exec ($ch);
    curl_close($ch);

    $result=preg_split("/\n/",$result);
    array_pop($result);
    array_pop($result);
    array_shift($result);
    $result = array_reverse($result);

    And add in that whitespace after curl_close this:
    die($result);
    You will see roughly the result of.. login?

  19. 19
    Fabian Argentina »
    said, on 03/Aug/06 at 12:38 pm # :

    Great script! thanks

  20. 20
    Michael Dayah Jordan »
    commented, on 05/Aug/06 at 1:15 pm # :

    I noticed in my own feed, the date for the first entry showed up fine, but the subsequent were appearing as from the year 2036. Upon inspection, I found the date was being put in the wrong order.

    Changing
    $day = mktime(0, 0, 0, $day[1], $day[0], $day[2]);
    to
    $day = mktime(0, 0, 0, $day[1], $day[2], $day[0]);
    fixes the problem.

  21. 21
    Reza Iran »
    commented, on 29/Aug/06 at 2:44 pm # :

    My email hast two dot : me.test@gmail.com
    I get error. it do't login in adsense.

  22. 22
    Felix New Zealand (Aotearoa) »
    replied, on 31/Aug/06 at 5:02 am # :

    Can you please make it display your total earnings? Thanks

  23. 23
    Maurizio Italy »
    thought, on 05/Oct/06 at 4:17 am # :

    Great script, thank you!

    I wonder if in the future we'll see Reports for Personalized AdSense Criteria in the feed?
    And, as Felix asked before me, total earnings?

    Thank you again, and keep up the good work ;)

  24. 24
    Adwhores.com : Web’s biggest Ad Wh... United States »
    pingback on 30/Oct/06 at 5:28 pm # :

    […] Adsense earnings RSS feed – a simple script that will create an RSS feed with your daily Adsense earnings to track via your regular feed reader. […]

  25. 25
    Georg Finland »
    replied, on 30/Oct/06 at 9:29 pm # :

    Hi! The script seems to be great, however, it doesn´t seem to work for me. The output is just empty. Is it possible that Google changed the login process again?
    Thanks for your help!

  26. 26
    Hosting All Inclusive Germany »
    trackback on 05/Nov/06 at 2:03 pm # :

    AdSense Verdienst RSS Feed

    Dieses AdSense Earnings RSS Feed ist ein einfaches Script, das ein tägliches RSS Feed mit Ihren  AdSense Einnahmen erstellt, um sie so einfacher nachverfolgen zu können:
    http://planetozh.com/blog//my-projects/track-adsense-earnings-in-rss-fe

  27. 27
    WebDevLogs » Google Adsense Sparkl... Germany »
    pingback on 23/Nov/06 at 8:09 pm # :

    […] Editor Comment: I tested it, and here is mine version For RSS Feeds of Google Adsense earning, try Adsense Earnings RSS Feed […]

  28. 28
    Les meilleurs outils Adsense at Christia... United States »
    pingback on 06/Dec/06 at 11:10 pm # :

    […] Adsense earnings RSS feed – Script qui crée un flux RSS vous permettant de suivre vos revenus dans votre lecteur de news préféré. […]

  29. 29
    AdSense Trackers : Adsense Truth’s Germany »
    pingback on 18/Dec/06 at 1:59 pm # :

    […] Adsense earnings RSS feed – a simple script that will create an RSS feed with your daily Adsense earnings to track via your regular feed reader. […]

  30. 30
    Adsense Guy Romania »
    thought, on 27/Apr/07 at 1:31 am # :

    is there a way to run this script in safe mode since curl_setopt is blocked in safe mode?

  31. 31
    Adam United States »
    said, on 11/May/07 at 10:37 pm # :

    I've been using this feed for a while now and love it. I'm also using the Sparklines hack. However, since Google has started changing the login page as well as some of the layout of the report, the RSS feed (and Sparkline) have been acting weird (like giving the wrong values. Is anyone else notice this or have a work around? Thanks!!!

  32. 32
    Rich Tatum United States »
    replied, on 16/May/07 at 11:36 am # :

    This has been a great plugin, thanks for developing it! Unfortunately, I moved to a new host last month and now the script is broken. :(

    I get this error:

    Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /home/rtatum/public_html/blog/bras.php on line 77

    I have other tools that use CURL, such as TanTanNoodles, which grabs stats from Google Analytics, or the BDPRSS Aggregator, which grabs feeds. They work fine, but this one doesn't any more. My host provider says:

    We can't (won't) remove open_basedir as that is a php options that keeps one site isolated from all other sites. This comment on php.net gives you a possible coding work around: http://au.php.net/…curl-setopt.php

    I know you're not supporting this plugin, but I'm hoping somebody out there has already experienced this problem and figured out a workaround.

    Rich
    Contact
    BlogRodent

  33. 33
    Rich Tatum United States »
    replied, on 10/Jun/07 at 7:39 am # :

    :: thump, thump, thump ::

    Anybody there?

    Rich
    BlogRodent

  34. 34
    Ozh France »
    replied, on 10/Jun/07 at 9:57 am # :

    Rich » I guess you're stuck…

  35. 35
    information About google » Blog Ar... United States »
    pingback on 29/Jul/07 at 2:56 am # :

    […] Click here to visit Adsense Earnings RSS Feed site […]

  36. 36
    Derek Gathright » Daily Links Germany »
    pingback on 12/Oct/07 at 1:03 am # :

    […] PHP Adsense RSS feed generator […]

  37. 37
    Taylor United States »
    thought, on 15/Nov/07 at 1:17 am # :

    Does this script still work? I got parse errors on line 117, about mktime() needing a long for args 4 and 5.

    Debugging, it looks like it's not accepting my login credentials at the AdSense site — I get the login page again (with the message "Invalid email address or password") as the $result of the curl retrieval. Thoughts?

  38. 38
    fel3232 United States »
    wrote, on 13/Jan/08 at 4:08 am # :

    is there any support available for buggs? Please shoot me an email. Thanks in advance.

  39. 39
    Ernie Oporto United States »
    commented, on 16/Feb/08 at 10:18 pm # :

    Looks like Google changed their login for Adsense and this no longer works.

  40. 40
    Justin United States »
    replied, on 25/Mar/08 at 9:54 am # :

    Any plans to get it working again with the new Adsense?

  41. 41
    10 Useful Adsense Tools | Advocable United States »
    pingback on 24/May/08 at 11:35 pm # :

    […] by reporting MFA sites or LCPC sites that you have discovered.Adsense Earnings RSS feed Adsense Earnings RSS feed is a script that you can use to generate a RSS feed of your Adsense earnings, clicks, or other […]

  42. 42
    Jehzeel Laurente Philippines »
    commented, on 25/May/08 at 1:21 am # :

    this one was cool.. if im lazy enough to open my adsense account every now and then. hehe

  43. 43
    Aviation and Technology Blog » 10 ... Canada »
    pingback on 26/May/08 at 10:23 pm # :

    […] by reporting MFA sites or LCPC sites that you have discovered.Adsense Earnings RSS feed Adsense Earnings RSS feed is a script that you can use to generate a RSS feed of your Adsense earnings, clicks, or other […]

  44. 44
    eTc :: El blog de Marketing en Español ... Spain »
    pingback on 27/May/08 at 2:36 am # :

    […] Adsense Earnings RSS feed: Script que se puede usar para generar informes sobre las ganancias y clicks de Adsense. […]

  45. 45
    Herramientas útiles para el uso de Adse... Spain »
    pingback on 27/May/08 at 11:58 am # :

    […] Adsense Earnings RSS feed: Script que se puede usar para generar informes sobre las ganancias y clicks de Adsense. […]

  46. 46
    Tony Singapore »
    thought, on 28/May/08 at 6:09 am # :

    Thanks. This is a great plugin and I dont have to keep logging into my Adsense to check.

  47. 47
    AdSense pre RSS | blog domainera Slovak Republic »
    pingback on 31/May/08 at 3:18 pm # :

    […] som pre vás aj scriptík, ja som ho neskúšal a zrejme ani nebudem, aj ke? rss samozrejme mám osobne ho však […]

  48. 48
    jurpopage Indonesia »
    wrote, on 11/Jul/08 at 10:02 am # :

    nice stuff, thx for share it :)

  49. 49
    Carbide20 United States »
    said, on 02/Aug/08 at 6:23 am # :

    My feed just comes up as blank (it has the title
    '20 days of Adsense
    An RSS feed of my Adsense earnings for the last 20 days'

    but no items. I'm sure that every day I make lots of $$ so how can this be?

  50. 50
    toni Indonesia »
    replied, on 02/Aug/08 at 3:32 pm # :

    Hmm… I've read your script.. cool, you send our email and password using curl post data. how do you get the value of $destination ?? does google give us Web API ??

  51. 51
    Alice Pakistan »
    wrote, on 17/Aug/08 at 7:51 am # :

    Thanks. I dont have to keep logging into my Adsense to check.

  52. 52
    Top 25 (Non-Obvious) Ways RSS Can Make Y... United States »
    pingback on 16/Sep/08 at 4:07 pm # :

    […] can keep track of those earnings in their RSS feed. Enter your information into a script like this and you'll get daily reports on how much you're […]

  53. 53
    iPod, Web, How to, Internet, Computer, F... United States »
    trackback on 11/Oct/08 at 5:31 pm # :

    Make Adsense Money for RSS Feeds…

    Google offer Adsense for RSS feeds on last month. If you setup a new Google ad in Adsense control panel, you might noticed that. To make Adsense money from feed, you must first using Feedburner RSS feed and migreate it to Google account. Once Adsense f…

  54. 54
    Google Adsense | Tips and Tricks «... United States »
    pingback on 16/Oct/08 at 7:40 am # :

    […] Google AdSense Charts and Graphs – chart your adsense data in a multidimensional line charts. […]

  55. 55
    Mengetahui Statistik, Klik, dan Pendapat... Indonesia »
    pingback on 11/Nov/08 at 1:20 am # :

    […] Google AdSense Charts and Graphs – Pendapatan dan trafik kita di google adsense dilihat menggunakan grafik. […]

  56. 56
    Ryan Kirgan Australia »
    said, on 05/Dec/08 at 7:12 am # :

    I have Curl enabled, but have not been able to get this script to work. (See: http://www.kirgs.com/other/rss-adsense.php)

    http://validator.w3.org/feed/check.cgi?url=http://www.kirgs.com/other/rss-adsense.php doesn't validate.

  57. 57
    Ozh France »
    wrote, on 05/Dec/08 at 9:07 am # :

    Ryan Kirgan » Will look if I have time. Maybe the script is outdated because Google changed the data output (it's fairly old to be honest)

  58. 58
    Leo China »
    replied, on 08/Dec/08 at 10:22 am # :

    It doesn't work now

  59. 59
    Ryan Kirgan Australia »
    said, on 09/Dec/08 at 1:10 am # :

    Thanks Ozh. The content of the PHP variables doesn't seem to correspond to the AdSense information anymore – maybe Google have made changes such that simply passing POST/GET variables in the URL will no longer authenticate.

    Please don't lose any sleep over it :) I'll just keep logging in to find that my grand all-time total $20.18 has remained unchanged ;)

  60. 60
    ::::: eaBiZ ::::: » Google Adsense... United States »
    pingback on 02/Apr/09 at 7:46 pm # :

    […] Google AdSense Charts and Graphs – chart your adsense data in a multidimensional line charts. […]

  61. 61
    Google Adsense Tools « 4elements United States »
    pingback on 25/Jul/09 at 10:39 pm # :

    […] Google AdSense Charts and Graphs – chart your adsense data in a multidimensional line charts. […]

  62. 62
    Google Adsense Facts And Tools « E... United States »
    pingback on 29/Jul/09 at 6:22 pm # :

    […] Google AdSense Charts and Graphs – chart your adsense data in a multidimensional line charts. […]

  63. 63
    Latest » PHP – cURL | how lo... United States »
    pingback on 06/Aug/09 at 6:06 pm # :

    […] Most bloggers uses Adsense on their blog and (try to) make money with Google. This excellent snippet allows you to follow your Adsense earnings…with a RSS reader! Definitely awesome.(Script too big to be displayed on the blog, click here to preview)Source: http://planetozh.com/blog/my-projects/track-adsense-earnings-in-rss-feed/ […]

  64. 64
    Tips and Tools Collection To Optimizer G... United States »
    pingback on 14/Aug/09 at 5:36 pm # :

    […] Google AdSense Charts and Graphs – chart your adsense data in a multidimensional line charts. […]

  65. 65
    Udegbunam Chukwudi Sweden »
    wrote, on 16/Aug/09 at 12:23 pm # :

    Script's not working for me. Could I be doing something wrong? Or has google blocked it? Checking my adsense stat on dial up is a pain and this script would have helped a lot.
    Nice initiative.

  66. 66
    Ozh France »
    commented, on 16/Aug/09 at 2:12 pm # :

    Udegbunam Chukwudi » Google change some stuff in their URLs/API/format from time to time. I havent updated this in a long while now, it totally may be broken

  67. 67
    Palsden.com Canada »
    pingback on 19/Aug/09 at 4:33 am # :

    […] that will create an RSS feed with your daily Adsense earnings to track via your regular feed reader.Google AdSense Charts and Graphs – chart your adsense data in a multidimensional line charts.AdSenseLog is a tool for checking and […]

  68. 68
    Ben Malaysia »
    thought, on 18/Sep/09 at 7:17 am # :

    Please update this cool plugin! Please!

  69. 69
    ali Pakistan »
    commented, on 09/Sep/10 at 4:12 pm # :

    Script’s not working for me. Could I be doing something wrong? Or has google blocked it? Checking my adsense stat on dial up is a pain and this script would have helped a lot.
    Nice initiative.

  70. 70
    Amit India »
    thought, on 03/Nov/10 at 10:12 pm # :

    Is there any way to show Channel data as well ? I want to retrieve all the custom channels data, any help will be much appreciated.

    Thanks