Forum Moderators: martinibuster

Message Too Old, No Replies

PHP Include Statement with Adsense

         

rsn2k

11:44 pm on Jul 27, 2005 (gmt 0)

10+ Year Member



Hi all,

I tried to browse through to see if anything similar has been posted but couldn't see anything. Basically, I have some pages with Adsense always on them and some pages which I change the banners on. On the pages I change the banners on I have used php includes to a file banner.php which has the banner on. Is it ok to put my Adsense code on the banner.php page? Obviously none of the Adsense code would be modified.

Also is there a way of making the ads on the banner.php page to be more relevant? Could I add a title to the page which is relevant to my site? Would an iframe need to be ticked?

Sorry for all the questions and your help would be very much appreciated.

Many thanks

arrowman

1:31 am on Jul 28, 2005 (gmt 0)

10+ Year Member



You're on the wrong track. Adsense is Javascript code, which is a client side concept. If and how you generate this code on the server is not important. All that counts is what the generated HTML/CSS/Javascript code looks like.

rsn2k

1:47 am on Jul 28, 2005 (gmt 0)

10+ Year Member



Thanks for your reply.

I am not quite sure what you mean. I was basically asking if it would be against the TOS if I used a Php include statement to a page (banner.php) which just has on it the adsense source code. This will allow me to change between Adsense ads and banners by just changing one file (banner.php) rather than changing the source code on each individual page.

Regards

Mister_Tut

2:00 am on Jul 28, 2005 (gmt 0)

10+ Year Member



Should be fine. I do it with my header, which includes google ads. Can't see how that would violate the TOS.

jatar_k

2:01 am on Jul 28, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



since php is server side no one would know anyway.

it's fine

castar

2:12 am on Jul 28, 2005 (gmt 0)

10+ Year Member



I do it too with my header and nav bars on both sides of my three column layout and have had them since they came out with adsense. Never had a problem so should be fine.