Welcome to WebmasterWorld Guest from 107.22.86.42

Forum Moderators: incrediBILL & martinibuster

Message Too Old, No Replies

AdSense code not allowed in URL used for SSI.

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

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Feb 5, 2003
posts:807
votes: 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)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:May 30, 2002
posts:741
votes: 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)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Feb 5, 2003
posts:807
votes: 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)

Senior Member

WebmasterWorld Senior Member jenstar is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Dec 22, 2002
posts:4663
votes: 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)

Junior Member

10+ Year Member

joined:July 28, 2003
posts:188
votes: 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)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Feb 5, 2003
posts:807
votes: 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.