Forum Moderators: martinibuster
But using SSI or similar you must also be cautious not changing their code by editing the file(s).
I understod their answer: "Do not change the code" means "always use the AdSense Interface to change it".
When your AdSense code is within a SSI, you just delete the complete AdSense code within that file and the change you made is site-wide instantly. When you want your ads back on you only have to change one file.
For myself I use three SSI files. Two for different ad placements. One for no ads at all on the page. This way to wipe out the ads, in my case, I have to edit two files.
Sample extract code:
google_ad_type = "text";
//2006-10-23: WHHHD
google_ad_channel =
Now that they embed the date in the code, than can also archive the code generated and detect any change anyone makes. I'm surprised they didn't add a time too! I just noted that apparently they are only embedding the date if you use channels.
IFrames used to work well, and still are working for some! I used to have the Adsense code first thing in the page before all content in an IFrame, this did work till about a year ago, then it went haywire with bad targeting, but I suspect if the IFrame and code are after the content IFrames may still work. The TOS did not specifically say no IFrames it just says you may have problems with them. In fact at the time I was having troubles AdsenseAdvisor wrote me and offered to help debug! But I had to tell him I couldn't afford the lack of income due to bad targeting and had already pulled the IFrame.
The IFrames were great because they got rid of all Adsense server delays, delays which prevent page rendering on some browsers even with careful coding. Fetching the Adsense Javascript itself can be a big delay, but fortunately it's often already in the browsers cache. Probably the most copied piece of javascript in the world!