The REAL Way to Optimize AdSense
« If you can crash your daemon, you likely have a security problemLanguage/Country specific Google Search Engine’s »
Optimizing 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.
For 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.
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"
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.
<div class="FL"> google_ad_channel="5425469877" </div>
<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';
}
?>
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';
}
?>
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.
I 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.
« If you can crash your daemon, you likely have a security problem
Language/Country specific Google Search Engine’s »
Please consider donating to support active development of the free software and articles here.![]()
The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect. Tim Berners-Lee
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!
It's very simple - you read the protocol and write the code. -Bill Joy
HTML | DCMI | GRDDL | XOXO | XDMP | XFN | DOM | XML | XHTML 1.1 Strict | CSS 2.1 | W3C | TLDP | WAI | DISA | ICSI | GIAC | SANS RR | GHOST | DEFCON | NIST | DHS CYBER | NIST
↑ TOPExcept 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. HTTPD based on NCSA HTTPd
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.