Forum Moderators: martinibuster
You can then compare performance and decide which one is the better performer and then test against another style, until you have optimum performance.
I tried to set this up already on my busy forum which has horrendous click thru rate, but having problems with the coding. In accordance with the email instructions this is what I have:
<script type=”text/javascript”>
var random_number = Math.random();
if (random_number < .5){
<!--
google_ad_client = "pub-#*$!#*$!#*$!#*$!xx";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel ="7359756599";
google_color_border = "E3F0FB";
google_color_link = "072978";
google_color_bg = "E3F0FB";
google_color_text = "000000";
google_color_url = "000000";
//-->
} else {
<!--
google_ad_client = "pub-#*$!#*$!#*$!#*$!#*$!xx";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel ="1866443525";
google_color_border = "E3F0FB";
google_color_bg = "E3F0FB";
google_color_link = "CC0000";
google_color_text = "CC0000";
google_color_url = "CC0000";
//-->
}
</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
Can anyone spot the 'deliberate' mistake I've made as no ads at all are showing using the code above?
and more info here - [adsense.blogspot.com...]
Open the page with Firefox and type javascript: in the address bar. You will get errors with Adsense anyway, but look for any more errors.
And try this:
<script type=”text/javascript”>
<!--
var random_number = Math.random();
if (random_number < .5){
google_ad_client = "pub-#*$!#*$!#*$!#*$!xx";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel ="7359756599";
google_color_border = "E3F0FB";
google_color_link = "072978";
google_color_bg = "E3F0FB";
google_color_text = "000000";
google_color_url = "000000";
} else {
google_ad_client = "pub-#*$!#*$!#*$!#*$!#*$!xx";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel ="1866443525";
google_color_border = "E3F0FB";
google_color_bg = "E3F0FB";
google_color_link = "CC0000";
google_color_text = "CC0000";
google_color_url = "CC0000";
}
//-->
</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
To do A/B/C just split up .9 into thirds.
if (random_number < .33)
{
// A
}
else if (random_number >= .33 && random_number < .66)
{
//B
}
else
{
//C
}
*** This has not been tested.