Forum Moderators: open
[adsense.blogspot.com...]
I've been trying to get this running on my site to do some A/B testing. Without success.
I have tried the following code:
<script type=”text/javascript”>
var random_number = Math.random();
if (random_number < .5){
google_ad_client = "#*$!";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "000000";
google_color_url = "999999";
google_color_text = "666666";
} else {
google_ad_client = "#*$!";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "000000";
google_color_url = "999999";
google_color_text = "666666";
}
</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
and no ads at all showed up. Can anyone see what I've done wrong here? I suppose the syntax problem comes from having embedded javascript chunks of code.