Forum Moderators: martinibuster
One is ok, the other Google won't like.
If the Adsense javascript is on a "page" that you are including in your other pages. (A page in the sense of, you could view it by itself by typing in a URL in your browser), then that's going to be the "bad" way.
If you are using SSI to include the text of the file within all your other files (the adsense containing file doesn't have <html> or <body> tags, it's just basically a text file that gets added by the server to each real page), then that would be the "good" way.
Thank you for clarifying this issue with us. The use of this server side include file will not be a problem as long as you do not direct traffic to the page [widget.com...] Your current implementation of this SSI will allow ads to be targeted to the content of your pages rather than the script page since the final HTML document contains the AdSense ad code.