Can i use php include function with adsense ?

Discussion in 'Guidelines / Compliance' started by smilex, Apr 11, 2007.

  1. #1
    Hello every old member , :) i'm just adsense newbie user , i just wanna know , can i use php include function to insert adsense into template blog's systems .. it right to do it ? or wrong adsense policy ?

    thank you very much :D
     
    smilex, Apr 11, 2007 IP
  2. Claudek

    Claudek Well-Known Member

    Messages:
    1,379
    Likes Received:
    81
    Best Answers:
    0
    Trophy Points:
    165
    #2
    IF you are using php just to insert the javascript generated by Google, it should be ok. You aren't changing the generated code which is basically where any TOS violation will happen.

    I am assuming you are echoing each line from the Google Adsense javascript code in your php include.
     
    Claudek, Apr 11, 2007 IP
  3. Colbyt

    Colbyt Notable Member

    Messages:
    3,224
    Likes Received:
    185
    Best Answers:
    0
    Trophy Points:
    210
    #3
    It is fine as long as you place all the code and always include that page on a page with content.

    Paste nothing but the google code on a blank page and save it as adsense.php or any name you choose and then include adsense.php where you want the ads to appear.
     
    Colbyt, Apr 12, 2007 IP