Can i use iframe to display google ads

Discussion in 'AdSense' started by vaakash, Sep 26, 2008.

  1. #1
    can i use <iframe> tag to display ads. As when my account is disabled to some accident clicks or anything else, it will be easy to remove the adsense code immediately
     
    vaakash, Sep 26, 2008 IP
  2. Adpubster

    Adpubster Peon

    Messages:
    4,017
    Likes Received:
    153
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Depending upon what you are using, you could just include the ad-code with a <!--#include virtual="/adcode.html"--> statement in your html. There are varieties of that that can be used for other situations, but I find the #include the easiest for my particular situation.

    I think you can use an IFRAME, but be careful of getting non-relevant ads. See here: https://www.google.com/adsense/support/bin/answer.py?answer=10035&ctx=en:contact

    Specifically:

     
    Adpubster, Sep 26, 2008 IP
  3. sitemedia

    sitemedia Peon

    Messages:
    33
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    why would you need to place ads in iframe? i dont get it ..
     
    sitemedia, Oct 2, 2008 IP
  4. sultanofseo

    sultanofseo Notable Member

    Messages:
    9,930
    Likes Received:
    405
    Best Answers:
    0
    Trophy Points:
    265
    #4
    it would not be a good idea to use adsense on iFrame. since the iFrame page itself will not have any content, you will not get targeted ads. if you want to use a common page for adsense and dont want to code each page for adsense, then best way to do it will be by using PHP include or SSI (server side include). you can google for these term to learn more
     
    sultanofseo, Oct 2, 2008 IP