FREE THOUGHT · FREE SOFTWARE · FREE WORLD

Home » WordPress » The REAL Way to Optimize AdSense

The REAL Way to Optimize AdSense

The REAL Way to Optimize AdSense » The REAL Way to Optimize AdSense

The REAL Way to Optimize AdSense

October 1st, 2007

AdSense Optimized using Colors and PositionOptimizing the position, color, and size of AdSense Ads is confusing. The REAL way to optimize AdSense for clicks and revenue is using variations and measuring the results. Surf this site for examples.

AdSense Optimization using Channels

Google AdSense ChannelsFor this article we will be using these 5 channels to measure our Ads performance (create channels). To keep things simple, we will only be dealing with 1 Ad. On this site, it is the Ad displayed at the top of each single post.

  1. aa-left: Applied to Ads positioned on the LEFT. (5425469877)
  2. aa-right: Applied to Ads positioned on the RIGHT. (8764678159)
  3. aa-green: Applied to Ads using the color GREEN. (1086701393)
  4. aa-blue: Applied to Ads using the color BLUE. (4994136137)
  5. aa-red: Applied to Ads using the color RED. (7420006237)

The italicized number above is the numerical name for the channel, this is what is used in the AdSense javascript.

Each Ad will be positioned on the left or the right, and will also be using 1 of the 3 color channels. Separate multiple channels with a +, so an Ad on the left and using the color green would have this code:

google_ad_channel="5425469877+1086701393"

AdSense Position Optimization

On this site the AdSense javascript code is placed inside a <div></div> block that has a class of "FR" or "FL" which determines whether the ad floats to the right or floats to the left.

AdSense on Left

<div class="FL">
google_ad_channel="5425469877"
</div>

AdSense on Right

<div class="FR">
google_ad_channel="8764678159"
</div>

So for my site, I edited the single.php WordPress Theme File so that if the post ID is an even number the position is on the left, and if the post ID is an odd number the Ad position is on the right. Here is the code to determine if its odd or even.

<?php
$className='FL';
$google_ad_channel='5425469877';
 
if(($post->ID % 2) == 0) {
 $className='FR';
 $google_ad_channel='8764678159';
}
?>

AdSense Color Optimization

The color of the Ad is randomly generated using this code.

<?php
$CPD=rand(1,3);
if($CPD==1) { // blue
 $google_ad_channel='4994136137+'.$google_ad_channel;
 $google_C_link ='0000CC';
}
else if($CPD==2) { // green
 $google_ad_channel='1086701393+'.$google_ad_channel;
 $google_C_link ='228800';
}
else { //red
 $google_ad_channel='7420006237+'.$google_ad_channel;
 $google_C_link ='BB0000';
}
?>

Making it Work

Once the position and color has been determined, then you output the Google AdSense javascript with the google_ad_channel set to $google_ad_channel and the google_link_color set to $google_C_link.

Optimizing AdSense with Channel Results

Google AdSense Optimized ResultsI let this code run for at least 7 days, then I take a look at my Google AdSense Results for the last 7 days and it tells me which position (left or right) received the most clicks, and also which color (red, green, and blue) performs the best. Now I can only display the Ads using the optimized position and color, or I can continue to test different color schemes and positions.


http://www.askapache.com/wordpress/best-adsense-optimization.html#comments

Reader Comments

  1. mani jack ~June 11, 2008 @ 12:51 am
    i am not getting any revenue from my adsense since last year. i am giving up because there are too many moneymakers outside are too stingy with the information. i don't get high paying key words, nobody really tells me straight to the point how i can benefit from adsense.
  2. The admin ~November 5, 2007 @ 11:17 am
    Thanks for this article. I've removed the ad coloring from my page, and it seems less distracting indeed. I've been trying to optimize my adsense revenue for days, without much results 'til yesterday. Seems like I was looking in the wrong place. Most pages on Adsense are bloaded and loaded with nonsense about how to make a lot of money in half an hour... You should check out Making money with Adsense - the realistic way, which aside from yours, is one of the few 'normal' pages on adsense I could find. Thanks again!

Add Comment!

Leave a Reply

Your email address will not be published.


Google +

It's very simple - you read the protocol and write the code. -Bill Joy

Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution 3.0 License, just credit with a link.
This site is not supported or endorsed by The Apache Software Foundation (ASF). All software and documentation produced by The ASF is licensed. "Apache" is a trademark of The ASF. NCSA HTTPd.
UNIX ® is a registered Trademark of The Open Group. POSIX ® is a registered Trademark of The IEEE.

Site Map | Contact Webmaster | Glossary | License and Disclaimer | Terms of Service |

↑ TOPMain