Forum Moderators: martinibuster

Message Too Old, No Replies

can i do this?

         

im286 Deanzhang

10:39 am on Jan 16, 2005 (gmt 0)

10+ Year Member



<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>

david_uk

11:03 am on Jan 16, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can't alter the javascript - the TOS is very clear on that.

Mad4it

12:00 pm on Jan 16, 2005 (gmt 0)

10+ Year Member



I think by doing this, in addition to breaking the TOS by altering the javascript, you'd be against the TOS by effectively having more then one publisher ID on the same page (admittedly not all at the same time, but I dont think it would take G long to notice!)

BeeDeeDubbleU

12:06 pm on Jan 16, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



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?

elguapo

3:21 pm on Jan 16, 2005 (gmt 0)

10+ Year Member



Because many people CAN'T be bothered to read the terms and conditions. Oh well ...

lammert

5:05 pm on Jan 16, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Mad4it,

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.

walrus

5:20 pm on Jan 16, 2005 (gmt 0)

10+ Year Member



oops wrong thread, sorry

Mad4it

6:23 pm on Jan 16, 2005 (gmt 0)

10+ Year Member



Lammert,

Thank you for your clarification - I stand corrected :)

lammert

10:29 pm on Jan 16, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I was first also a little bit affraid putting an Adsense ad on a page which had already an Adsense block with another publisher on it. Therefore I mailed Google just to be sure.

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 :-(

DMacedo

9:09 pm on Jan 20, 2005 (gmt 0)

10+ Year Member



You are not allowed to change javascript code, but you can implement server side code to include the desired javascript code (or in this case change the client id)

Note that this has been confirmed by Google staff!