AdSense: Script

Want to build your own AdSense revenue predictor or mobile app? You can download the script here –  on the house.

The code is fairly well documented. You’ll need to populate config.inc with your AdSense and SQL credentials. If you want to plug-in your own intraday trend (no two accounts will be the same, after all), collect the data into SQL, make some averages and then plug the data into the percentages.inc file.

Since this involves sensitive data, make sure you’re running this on a server you control/trust and take precautions to keep your information safe (protecting the directory, for example). You can execute gas.php via the command line, or better yet, as a CRON job.

It’s totally free and I encourage you to use it in whatever way you wish. As ever, I outsourced the overwhelming majority of the work, so can’t take all the credit really. If it ads some joy to your life, you’re welcome to buy me a coffee!

Leave a comment if you need any help.
 

 Tags: AdSense   Published: 3rd April '11


5 Archived Wordpress Comments

Keith Mander’s Blog | AdSense: Revenue Prediction

[…] Grab the script and build your own prediction model. AKPC_IDS += "1032,"; 2 Comments Permalink […]

Keith Mander’s Blog | AdSense: DIY Mobile Web App

[…] Grab the script and build your own mobile app that shows current revenue and predicted day total. AKPC_IDS += […]

Keith Mander’s Blog | AdSense: Intraday Earnings Trend

[…] Grab the script and collect your own data, plus build a prediction model and mobile app! AKPC_IDS += "1024,"; 1 […]

Keith Mander’s Blog | AdSense: Data Update Frequency

[…] Grab the script and collect your own data, plus a whole lot more. AKPC_IDS += "1011,"; 4 Comments Permalink […]

Keith Mander’s Blog | AdSense Checker w/ Twilio Call, SMS & Email Alerts

[…] moons ago I posted a little script that I had made. It scraped the AdSense UI, extracted some top line figures (revenue so far today, […]