Forum Moderators: open
<script type="text/javascript">
var isnav=(navigator.appName=="Netscape")?1:0;
if (isnav) {
document.write('<' + 'script');
document.write(' type="text/javascript"');
document.write(' src="http://pagead2.googlesyndication.com/pagead/show_ads.js"' + '>');
document.write('</' + 'script' + '>');
}
</script>
People rotate google ads with other ads and other content all the time - the code is intact, it's a non-issue.
With the usual "to be certain ask Google....." proviso of course, though quite honestly I think they must be sick of answering this sort of question when it is obviously not relevant.
People rotate google ads with other ads and other content all the time - the code is intact, it's a non-issue.
People rotate google ads with other ads using server-side scripting which is allowed. In those cases, a Google employee would always be able to validate, when it appears, the adsense code on the page source to valid code provided by Google. I wouldn't depend on the person doing a hand check to understand javascript enough to realize that this modification has the same practical effect as using server side user agent sniffing.
Basically, I understand the TOS to be that the code they provide must be copied and pasted without modification. Splitting it up into a handful of document.write statements would be modification -- even though the modification has no effect on the functioning of the code. I'd definitely ask Google if you choose to proceed with this approach.
If you'd like to use PHP to target your delivery, you could use something like this:
<?php
if( strpos($_SERVER['HTTP_USER_AGENT'], 'Netscape') !== false){
echo '<script...></script>';
}
?>