homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / Google / Google AdSense
Forum Library, Charter, Moderators: incrediBILL & jatar k & martinibuster

Google AdSense Forum

AdSense code not allowed in URL used for SSI.

 12:32 am on Oct 9, 2003 (gmt 0)

I got a E-mail from them that said you can't have the code on pages that don't show content, but had no URL. So I E-Mailed them back and they replied with the cgi URL of a script that only has my ads. The script is what I use to make the ads show up through out the site on the content pages, so i don't have to make the changes one page at a time. Is there any way to use SSI with AdSense?



 7:59 am on Oct 9, 2003 (gmt 0)

I use adsense in SSI no problem. I just "include" the javascript code using an external file.


 10:06 pm on Oct 9, 2003 (gmt 0)

That's exactly what I did. I had the ad content in a cgi file and only use it to bring the ads up at the top of every file on the site. But for some reason they don't like that.


 10:13 pm on Oct 9, 2003 (gmt 0)

Did you explain to them that the page they were viewing was related to your use of SSI? I know there are many who use this to add AdSense to their pages, and I would be suprised if they were to disallow it.


 10:48 pm on Oct 9, 2003 (gmt 0)

There are two ways you could be doing this.

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.


 12:44 am on Oct 10, 2003 (gmt 0)

Here's there newest reply. I'm not sure how they found the script URL. They must really check there logs, BIG time, if they found a time that I viewed the script URL! (It's perl, so if you go to the script URL, it shows the ads.)

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.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Google / Google AdSense
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved