Home » WordPress » The REAL Way to Optimize AdSense

by 2 comments

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:


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">

AdSense on Right

<div class="FR">

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.


if(($post->ID % 2) == 0) {

AdSense Color Optimization

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

if($CPD==1) { // blue
 $google_C_link ='0000CC';
else if($CPD==2) { // green
 $google_C_link ='228800';
else { //red
 $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.


Comments Welcome

Information is freedom. Freedom is non-negotiable. So please feel free to modify, copy, republish, sell, or use anything on this site in any way at any time ;)

My Online Tools

Popular Articles
Hacking and Hackers

The use of "hacker" to mean "security breaker" is a confusion on the part of the mass media. We hackers refuse to recognize that meaning, and continue using the word to mean someone who loves to program, someone who enjoys playful cleverness, or the combination of the two.
-- Richard M. Stallman

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.

+Askapache | |

Site Map | Contact Webmaster | License and Disclaimer | Terms of Service | @Htaccess

↑ TOPMain