Adsense in an include file?

Discussion in 'Guidelines / Compliance' started by Sorbo, May 29, 2008.

  1. #1
    Hello,
    I was wondering if anyone has any information on whether or not having adsense code in a php file, and just using php's include("sideads.php") to add the same ad code to each of my pages is in violation of the TOS?

    I don't believe it would cause any content issues, because google sees the pages after they are processed server side, so it would appear as though the ad code was placed directly in the HTML itself. But if anyone ever navigated to www.website.com/sideads.php, it would display a page with no content and only ads, which is against the TOS as far as I know. Is this ok as long as I never put a link to this page?

    Or is there a better way to do something like this?

    Thanks for any input,
    Kevin
     
    Sorbo, May 29, 2008 IP
  2. domainpubber

    domainpubber Active Member

    Messages:
    319
    Likes Received:
    22
    Best Answers:
    0
    Trophy Points:
    58
    #2
    Since PHP will "assemble" your pages including the adsense code in your sideads.php file it would be no different than having it directly in your main php file. I do this all the time to make it easier to manage multiple adsense placements more easily.
     
    domainpubber, May 29, 2008 IP
  3. rootbinbash

    rootbinbash Peon

    Messages:
    2,198
    Likes Received:
    88
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I always do that kind of stuff
     
    rootbinbash, May 29, 2008 IP