AdSensePHP: Easy AdSense Code Generation
It's funny how doing one thing leads you down a certain path. When I started my website to blog series one of the things I needed to do was find an AdSense-friendly WordPress template for the site I was transforming into a blog. Only I didn't really like the ones I saw, so I had to take a non-AdSense template and transform it. Which led me to rework some PHP scripts I had for generating AdSense code. Which led directly to this post.
Today I'm announcing the availability of a new script I call AdSensePHP. AdSensePHP lets you easily insert valid AdSense code into your pages without having to cut-and-paste the code from the AdSense console. The Lite version of the script is completely free and is now available for download. The Pro version of the script is initially only going to be available to purchasers of my book Uncommon AdSense.
If you're a PHP user, feel free to download AdSensePHP (no registration is required) and take it for a spin. There are fairly extensive comments in the source code, though I hope to have some more formal documentation available soon.
Also, to encourage linking to the site, if you have a ClickBank ID then you can simply add “?cb=yourid” to the link to any page and this will store your ClickBank ID in a cookie that lasts for 60 days. All links to the Uncommon AdSense site will be generated as a ClickBank hoplink, which means that if anyone buys Uncommon AdSense site because of your referral to the AdSensePHP site, you'll be credited as the affiliate. For example, I'd link to the site like so:
http://www.adsensephp.com?cb=egiguere
Just replace “egiguere” with your own hoplink. And you can link directly to any page on the site using this system.
Give AdSensePHP a try and let me know what you think. The Introducing AdSensePHP post on the AdSensePHP.com site has more details.
Sponsored Link: For a complete set of AdSense best practices, read Uncommon AdSense — for serious AdSense publishers only!
Eric Giguere is the author of Uncommon AdSense and the award-nominated (that just means it lost!) blog Make Easy Money with Google and AdSense.
| Enjoyed this post? Get free updates by mail or by RSS! |
Tags
Comments
One Response to “AdSensePHP: Easy AdSense Code Generation”
[…] Eric, author of Uncommon Adsense (aff), has been working on a suite of PHP based scripts to ease the integration of Adsense ads into PHP based sites. […]