Forum Moderators: martinibuster
<script type="text/javascript"><!--
ad_id = new Array();
var iInt = 2; //total pub ID
ad_id[0] = new Array('pub-#*$!xxxxxxxxxxxxxxx');
ad_id[1] = new Array('pub-xxxxxxxxxxxxxxxxxx');
var RndID = ad_id[Math.floor(iInt * Math.random())].toString(); //choose a pub ID
google_ad_client=RndID;
google_ad_width=728;
google_ad_height=90;
google_ad_format="728x90_as";
google_alternate_ad_url="http://www.google.com/images/google_750x120.htm";
google_ad_channel="";
google_color_border="FFFFFF";
google_color_bg="FFFFFF";
google_color_link="000000";
google_color_url="666666";
google_color_text="333333";
google_page_url = document.location;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
Any AdSense ad code or search box code must be pasted directly into Web pages without modification. AdSense participants are not allowed to alter the ad code for any reason, include changing the ad layout, behavior, or delivery of ads.
Why litter the forum with questions like this when the answers are so readily available and obvious?
You CAN have two publisher ID's on one page. In fact I have two such pages and Google approved their usage. In this case it is a large link directory website in the Netherlands where the hosting company of the link directory has one advertisment block with their publisher ID, and the actual webmaster of the page has his own block with his publisher ID.
However this solution where the Javascript is used to switch between publisher ID's might be against the TOS. The best thing is to ask Google. They will tell if it is allowed or not.
Google replied that the requirement is, that all ads are unique (Adsense takes care of this automatically), so there is a chance with more than one ad block that one of the blocks is only showing PSA's. Unfortunately that is often mine :-(