PHPAdsNew and Google Adsense Integration
Posted by Miles Evans

Alright this is a powerful concept with very little effort on your part and all the software is FREE. Got your attention?
I went over the donationware ad management tool PHPAdsNew in a previous review but I didn’t really get into some of its slicker features, specifically when it comes to integration with your favorite contextual ad publishing system. In this tutorial I will go over how I use PHPAdsnew to help me create, track, test and dynamically rotate my Google Adsense ads.
So like I said there really isn’t much to this…
- If you haven’t already installed and configured phpadsnew do it now. Version 2.0.8 was just released.
- Add an advertiser. I used profitpapers.
- Create a new Zone and choose Banner, leaderboard 728x90 from the drop down. Make a logical name for the zone like leaderboard-topfold.
- Create a campaign. I named mine adsense leaderboard topfold-928x70.
- Now create your banner by clicking create new banner.
- Select HTML banner and paste your adsense (or another publishing network) code here. Be sure to uncheck Alter HTML to enable tracking of AdClicks. Put in the size of the banner and a description but leave the rest as default. Notice the weight setting at the bottom. You may set the priority for each banner as an integer but I use 1 so all of the ads I add have an equal chance of being displayed.
- Make sure that this new banner is linked to the zone we created earlier by checking the linked zones tab.
- click on the zone to look at it’s details and choose the Invocationcode tab. Choose Remote Invocation for Javascript from the dropdown. Leave the rest as default and click the button to generate the code.
- Copy and paste this code into your website.
If you surf around profitpapers you will notice that the leaderboard adsense block just below my header is currently rotating with 2 different colors. So in my example there is two, easily editable, pieces of Google Adsense javascript code in the PAN database. Changing the colors of your Google Adsense ads can now be done from the phpadsnew admin area! Sweet.
I used to spend a lot of hours maximizing my adsense ads on some busy websites and PAN really does provide an effective and easy way to test virtually any advertising you are doing. Although you cannot track your contextual ads directly with PAN (yet), you can easily see this data in your Adsense account. Be sure and use channels to properly track which ad style performs better. If you put in some hours and play with placement, colors, and all the other adsense tips out there, you can really monetize your ad space.
Another great way I have used PHPAdsNew is to test YPN vs Google Adsense vs Adbrite vs whatever. This is obviously quite effective and will give you some clear indications on which platform works best for your content.
Yet another excellent application for this type of setup is for sharing ad revenue with bloggers or other members of your web team.
There is really a lot of cool things you can do with PHPAdsNew and I follow the development track very closely. So use your imagination and share your successes/failures with others.
Watch soon for some other cool techniques I employ and test using PAN. Keep in mind PHPAdsNew is free but I know they really dig donations.
On that note don’t forget to give me a digg if you like this type of article ;)
Posted Apr 10, 2006 at 10:29 AM | Permalink | Trackback URL | Del.icio.us | DIGG!


Comments
Good article, I'll digg that!
The bit about ads revenue sharing made me think about integrating PAN to my site :-)
Posted by james on April 10, 2006 12:58 PM
This is excellent! I was looking for this exact info...
Posted by ebert on April 11, 2006 7:12 AM
Google AdSense Program Policies:
(...) Any AdSense ad code, search box code, or referral code must be pasted directly into Web pages (...)
does phpAdsnew adsense ads serving violates Google AdSense TOS?
Posted by bromba on April 11, 2006 9:25 AM
No, it doesn't violate the TOS.
Technically, they'd never have any way to know it wasn't pasted directly into the page.
PAN (which I use, and love) just rotates the code (and tracks it). As far as Google's concerned, it's entered directly into the page.
Given, that's through a rotator, but still, insterted directly into the page.
I've been using it for close to a year, and never had a problem.
Posted by Mike on April 11, 2006 9:35 AM
Right. Essentially PAN just makes the job of rotating and testing different ad styles or even publishers that much easier.
Posted by Miles Evans on April 11, 2006 10:24 AM
Great information. I've been looking for this tool for quite sometime. PAN has been there in my website host, but I did not know how to use it until I found your article.
Is PAN similar with adsensetracker and asrep? Just curious.
Posted by Ruhaizad Daud on May 30, 2006 3:55 AM
Thanks. I was looking for this.
Posted by Ed on August 5, 2006 7:28 PM
Thanks for sharing. I was looking for this too
:D Have a great day and gud lak
Posted by supriyadisw on September 12, 2006 9:43 PM
Great. Thanks man.
Posted by hgh on October 4, 2006 1:51 PM
Just learned about this. Any idea if it works on a Joomla CMS type site?
Posted by royce on October 30, 2006 1:03 AM
Thanks
Posted by Richard on November 21, 2006 11:02 AM
Thanks man! is working wonderful! :-D
Posted by Daniel Cáceres on January 30, 2007 6:40 AM
Openda is great peace of work
Posted by Article collector on February 15, 2007 6:00 AM
Hello Miles
I notice you're using phpAdsNew and you've blogged about us before so I wanted to say hi.
I work for Openads which is phpAdsNew rebranded. We've just released Openads 2.3 beta which builds on phpAdsNew and adds three years worth of development effort. It's a big step forward.
http://blog.openads.org/07/openads-23-beta-released/
We're really interested to see some reviews of the beta... perhaps you're interested in trying out the new version and blogging your thoughts.
http://blog.openads.org
I'd be happy to hear from you just to chat or discuss things further.
cheers, Oliver
PS. I think your feedback form is broken.
Posted by Oliver George on July 19, 2007 5:59 AM
they'd never have any way to know it wasn't pasted directly into the page.
Posted by 电å?机票 on January 4, 2008 1:33 PM
Google Adsense - flagship of contextual advertising! Really the best webmaster program for earning money..
Posted by BEwell on March 10, 2008 11:34 PM
they'd never have any way to know it wasn't pasted directly into the page.
I agree
Posted by hgh on August 2, 2008 9:20 AM
We're really interested to see some reviews Yeah
Posted by hgh spray on August 3, 2008 10:27 AM