1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Using Iframes or display:none ?

Discussion in 'Placement / Reviews / Examples' started by White40thGT, Oct 5, 2007.

  1. #1
    Hey Guys, I'm stumped here.

    I have multiple member groups setup on my site, some of which see adsense and some dont.

    Normally I just do a PHP if statement and if the users membergroup is one that sees ads, I show ads. Otherwise I don't do anything.

    However I want to add some adsense to a page that will not allow me to execute PHP, it has to be HTML.


    Which of these can I do to still check the users group and then display or not display the adsense code...


    Wrap the adsense in a div tag and do the if statement in my header. Then if they are not to be shown ads send a display:none command.

    OR

    Put the adsense in an iframe that does the if statement, and also put the if statement in my header to add display:none to the iframe if needed.


    The only reason I'm thinking about doing the iframe is because otherwise my impressions are going to be higher then normal and a false reading which I do not want. An iframe would avoid this and I could hide the entire iframe if needed but it may be against googles TOS and also may screw up the adsense spider. I'm stuck here guys.

    Your thoughts ?
     
    White40thGT, Oct 5, 2007 IP
  2. Adpubster

    Adpubster Peon

    Messages:
    4,017
    Likes Received:
    153
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Best to contact Google on this one and explain the situation. Generally, IFRAMES and Adsense don't mix RE: TOS.
     
    Adpubster, Oct 5, 2007 IP
  3. White40thGT

    White40thGT Peon

    Messages:
    29
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I read that the iframe was not against the TOS but because the adsense spider would crawl the iframe page my ads would not be relevant.

    Crap....
     
    White40thGT, Oct 5, 2007 IP
  4. ljastangs21

    ljastangs21 Banned

    Messages:
    894
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #4
    No Iframes are NOT against google TOS. I used them on my site which was up for 5 months and made $1000 bucks with them :)

    One thing that iframes does allow you to do those is have more then 3 ads per page. Usually if more then 3 adsense codes are on a page then it still only shows 3 when the site is live. However if you use Iframes you can have on the normal page and then 3 more in each iframe so when the site is live the visitor will see 6 ad boxes. This IS against google TOS. So if you use Iframes just make sure you only have a max of 3 ads per page showing.

    hope that help. :)
     
    ljastangs21, Oct 5, 2007 IP
  5. Adpubster

    Adpubster Peon

    Messages:
    4,017
    Likes Received:
    153
    Best Answers:
    0
    Trophy Points:
    0
    #5
    IFRAME just by itself is not,though you run the risk of irrelevant ads, but when it is used in any way, shape, or form to alter the delivery of the ads, then you run into trouble. Many implementations not all, but many) do just that. The problem is that ad-targeting is altered with the IFRAME which, depending upon the seriousness and intent may cause problems.
     
    Adpubster, Oct 5, 2007 IP