I was wondering, do you think rotating the pub id within a network of sites (via a php include) would be ok with the adsense TOS?
What would be the benefit of doing that? You could of course with Traffic on Steriods. But wouldn't channels take care of any reason you'd do that?
If i'm not mistaken, this forum does something quite like it. I don't think Google has complained about it. If in doubt just contact Google and they'll be able to set you straight.
heres the code to rotate 2 id's ?php $adsense =array( 1=>'<script type="text/javascript"><!-- google_ad_client = "pub-XXXXXXXXXXXXXXXXX"; google_ad_width = 336; google_ad_height = 280; google_ad_format = "336x280_as"; google_ad_type = "text_image"; google_ad_channel =""; google_color_border = "F2F2F2"; google_color_bg = "FFFFFF"; google_color_link = "003366"; google_color_url = "008000"; google_color_text = "000000"; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>', 2=>'<script type="text/javascript"><!-- google_ad_client = "pub-XXXXXXXXXXXXXXXXX"; google_ad_width = 336; google_ad_height = 280; google_ad_format = "336x280_as"; google_ad_type = "text_image"; google_ad_channel =""; google_color_border = "F2F2F2"; google_color_bg = "FFFFFF"; google_color_link = "003366"; google_color_url = "008000"; google_color_text = "000000"; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>'); $random_number=rand(1, count($adsense)); $random_adsense=$adsense[$random_number]; echo("$random_adsense"); ?> PHP: