SO if you have two ads each with their own custom channel and you put them in a rotating script which shows each ad to users an equal amount of time you may be able to determine which google adsense ad performs better. Here is the code to do it.
<!-- google ads -->
<script type="text/javascript">
var random_number = Math.random();
if (random_number < .5)
{
<!--
google_ad_client = "ca-pub-XXXXXXXXXXXXXX";
/* ADS-TEST1 */
google_ad_slot = "8352240308";
google_ad_width = 336;
google_ad_height = 280;
//-->
}else{
<!--
google_ad_client = "ca-pub-XXXXXXXXXXXXXX";
/* ADS-TEST2 */
google_ad_slot = "3075656559";
google_ad_width = 300;
google_ad_height = 250;
//-->
}
</script>
<!-- google ads -->
This code rotates two different ads with different channels based on a 50/50 randomness. the rotation code is in blue, the RED are elements that are specific to your account and custom channels. Here are my results from Adsense.
AD CHANNEL [Vies] [Clicks] [CTR] [CPC] [RPM] [Earnings]
| ADS-TEST1 |
AdSense for Content
|
(2,038)
|
(5)
|
(0.25%)
|
($0.22)
|
($0.54)
|
($1.10)
|
| ADS-TEST2 |
AdSense for Content
|
(2,162)
|
(2)
|
(0.09%)
|
($1.30)
|
($1.20)
|
($2.59)
|
| Some simple analysis can now show that two things happened here. 1. Test Ad #1 got more clicks BUT Test Ad #2 paid more PER CLICK (CPC). |
No comments:
Post a Comment