Forum Moderators: martinibuster

Message Too Old, No Replies

AdSence in header of cgi script

queston

         

Vlad

2:04 pm on Mar 20, 2004 (gmt 0)

10+ Year Member



Hi guys, I have a question. On one of my sites, I run a cgi script that calls for a header and footer. I would love to run adcence in the header. Just wanted to ask you pro's if its OK to do that. Don't want to run into a problem and get kicked out for braking the rules.

On the page there is enough text and I can see a catch of the whole page. If you say it's OK to run adsence, do I need to use the "frames" option?

Sorry if this sounds dumb and thank you for your answers.

BTW I love the new channels option.

JohnKelly

2:27 pm on Mar 20, 2004 (gmt 0)

10+ Year Member



You can use AdSense in a CGI script outputting HTML, server side includes, PHP, etc. as long as it follows the TOS.

Personally, I use server-side includes written in PHP to make it easier to change across entire site.

richmondsteve

4:38 pm on Mar 20, 2004 (gmt 0)

10+ Year Member



Vlad, you don't need to use the frames option since you're not displaying it in a frame (at least that's the assumption I'm making since you didn't say you were running it in a frame). For modularity including AdSense in a header via a script is advisable and if done via CGI it's server-side so it'll be entirely transparent to Google and users that you're doing so anyway.

robsynnott

5:29 pm on Mar 20, 2004 (gmt 0)

10+ Year Member



Yep, you can do this; just be careful that you don't have a session ID in the URL; if you do Google will find it difficult/impossible to give you suitable ads. If you're interested, there's a simple guide to implementing AdSense on dynamic sites on my website.

Vlad

8:30 pm on Mar 20, 2004 (gmt 0)

10+ Year Member



No the is no session ID in the URL and the script is not in the frame.
Thank you guys for you help!

JollyK

9:20 pm on Mar 20, 2004 (gmt 0)

10+ Year Member



I'm kind of late to answer, Vlad, but I've been running AdSense in the headers of several CGI scripts since I started the program. As long as the AdSense code is not modified (per the TOS) it seems to be fine.