<script type="text/javascript"><!-- if(!document.location.href.match(/^https:\/\//) && !document.location.href.match(/\/resources\//)) { google_ad_client = "pub-5788134792509840"; google_ad_width = 468; google_ad_height = 60; google_ad_format = "468x60_as"; google_ad_type = "text"; google_ad_channel =""; google_color_border = "FFFFFF"; google_color_bg = "FFFFFF"; google_color_link = "0000FF"; google_color_url = "FFFFFF"; google_color_text = "000000"; document.write('<' + 'script'); document.write(' language="javascript"'); document.write(' type="text/javascript"'); document.write(' src="http://pagead2.googlesyndication.com/pagead/show_ads.js">'); document.write('</' + 'script' + '>'); } //--></script> PHP: Thanks! I don't get it. Saw it on a website.
It says, if the document is NOT secure AND if the url DOES NOT contain "resources" directory, then show the google adsense ads. Means, don't show google ads in secure pages or resources section.
the script does alot more than that. The top line Jim Karter handled appropriately, but there are a BUNCH of things that the google adsense script does, and damn if we'd all like to know.. Here are a few things that it does: 1) It shows google where the person came from when clicking on the adsense ad- not your page but your page referrer 2) It tells google if your adsense page has people hitting the back button to get out, hence a bad or wasted visit.. thereby hurting your adsense income. 3) Bounce time is also measured...meaning if your users click on the ads too quickly, your page will be deemed an MFA page...which will once again hurt you. And theres ALOT more....
This is all inside the google's part of code which is not mentioned in the first post. I posted what sss3d wanted to know and was posted in the code above.