i got this after reading Digital Inspiration. See the example codes below :
this example from adsense blog >>
<script type="text/javascript">
var random_number = Math.random();
if (random_number < .5){
//your first ad unit code goes here
} else {
//your second ad unit code goes here
}
</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
You can see the implementation code by Digital Inpiration here. I think this method will make us easier to exprementing which Adsense format will perform better.
Other sources :
No comments:
Post a Comment