Dynamically Delivering AdSense & YPN Ads on Rotation

Sep 8, 2005 - 9:54 am 3 by
Filed Under Contextual Ads

Yesterday I wrote an entry named Google AdSense Versus Yahoo! Publisher Network but I was not able to provide my own data in the comparison. But today, I am happy to announce that we are dynamically delivering AdSense and YPN ads. Most of you know that it is against the terms of service to have YPN & AdSense showing on the same page. The only legal way to test both AdSense & YPN against each other is to have them show randomly but not overlap each other. Through several forum posts, I heard this can be easily done using PHPAdsNew, which I currently use on this site anyway. So that means you can now take advantage of the site targeting option by Google AdSense to get your ads on this site.

How to Guide on Setting up PHPAdsNew to deliver YPN & AdSense Ads dynamically: You do not need to follow these exact steps, but this is how I personally set it up.

(1) Download, Install & Configure PHPAdsNew. (2) Login to the Admin Panel (3) Click on "Inventory" section (4) Ad a new advertiser (I named it "Contextual Ads") (5) Under that new advertiser, "Add new campaign" (I set up two, one for homepage and one for the inner pages) (6) Create a new "Linked Zone" for this campaign -- a Zone type "Banner, Button or Rectangle" -- b Size (match your size that you set up for your AdSense and YPN ads) -- c Linked Banners should associated to the Contextual Campaign you set up earlier (7) Go Back to the Campaign You Were Working on (8) Click on "Banner overview" and "Add new banner" -- a Select "HTML banner" from "Banner properties" -- b Copy and Paste AdSense or YPN Code into the box -- c Uncheck "Alter HTML to enable tracking of AdClicks" -- d In the "Size" enter in the size of the ads -- e In the "Description" describe if its AdSense or YPN ads -- f Then make sure the proper "Linked zones" is checked off (9) Go back to Banner overview and repeat step 8 for the other ad (if you set up Google AdSense first, then you will need to add the YPN banner Ad) (10) Go back to the "Linked zones" for that campaign (11) Click on the linked zone you set up (12) Ensure the "Linked banners" in that zone are checked off (13) Set the "Probability" to 50/50 or whatever you want for each banner (14) Click on "Invocationcode" and Choose from the drop down, "Remote invocation for Javascript" (15) Copy and paste that code into your Web pages, in place of the current contextual ads.

There you go. I'll share the results I can, when I have enough data for you.


Popular Categories

The Pulse of the search community


Search Video Recaps

Google Core Update Flux, AdSense Ad Intent, California Link Tax & More - YouTube
Video Details More Videos Subscribe to Videos

Most Recent Articles

Search Forum Recap

Daily Search Forum Recap: April 23, 2024

Apr 23, 2024 - 4:00 pm
Link Building

Google: Ignore Link Spam Especially To 404 Pages

Apr 23, 2024 - 7:51 am
Google Search Engine Optimization

Google: We Have Taken Action On Some Parasite SEO In Recent Update

Apr 23, 2024 - 7:41 am
Bing Search

Mikhail Parakhin Breaks Silence On Mustafa Suleyman Of Microsoft (Kinda...)

Apr 23, 2024 - 7:31 am
Google Maps

Google Business Profiles Gains Select Preferred Menu Source

Apr 23, 2024 - 7:21 am
Google Search Engine Optimization

Google: Crawl Budget Goes Across All Googlebot Crawling, Not Just Web Search

Apr 23, 2024 - 7:11 am
Previous Story: Daily SEO Contradictions