Question About Placing Adsense Code in PHP File

Discussion in 'Guidelines / Compliance' started by danfirst, Nov 24, 2007.

  1. #1
    Hi, just wanted to make sure so that I don't violate the TOS.

    I know Google doesn't allow placing the Adsense ads on pages without any content.
    My question is, can I place the adsense code (only the code, nothing else) in a php (or even html) file. And then other pages will call the file using a <?php include ("page.php"); ?> etc.

    So the adsense code exists in a file, but with absolutely no content in it.
    However, the page is never loaded on its own. As other pages (with content of course) will load it using the include.

    The reason I do this is because if I have many pages, and I want to update the adsense code, I don't have to manually update all the pages 1 by 1.

    Is this ok?
     
    danfirst, Nov 24, 2007 IP
  2. birdsq

    birdsq Peon

    Messages:
    810
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Yes you can !!
    I think most of ppl do this ...
     
    birdsq, Nov 24, 2007 IP
  3. brewerweb

    brewerweb Peon

    Messages:
    32
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Yep, not a problem at all. Actually, if you decide to scrap adsense later then the include file will make it easy to swap in Yahoo or other affiliate link.
     
    brewerweb, Nov 24, 2007 IP
  4. qprojects

    qprojects Peon

    Messages:
    1,901
    Likes Received:
    103
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Google by no chance can even get to know if you are using php to generate page or not. Its sure allowed ;)
     
    qprojects, Nov 24, 2007 IP