How do you get ad codes to validate?

Discussion in 'CSS' started by Browning, Sep 20, 2008.

  1. #1
    site passes without ads but when I put ads up the errors are present:mad:
     
    Browning, Sep 20, 2008 IP
  2. PYT

    PYT Member

    Messages:
    71
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #2
    What advertising company are you using? Google Adsense normally validates fine for me
     
    PYT, Sep 21, 2008 IP
  3. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Yeah, generally you either use someone who has valid code, or you live with the errors. Since they're ads, they shouldn't affect the general page set-up or anything.

    We recently started using this nasty code from a company called TradeDoubler. The Javascript is nasty, it has VBscript in it, and it makes this HTML that is sooooo nasty and invalid, multiple ads means you have multiple boxes with the same id, blah blah. A pox on them! So I just tried to minimise the damage as best I could by wrapping every ad in its own div with its own unique ID so that I could at least position the divs ok. The code inside, I can't do anything about, and yesh, the pages are now invalid. Were browsers unforgiving XML parsers then we'd be in trouble. But, they aren't, and won't be anytime in the future.
     
    Stomme poes, Sep 22, 2008 IP
  4. Browning

    Browning Banned

    Messages:
    1,928
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    0
    #4
    sites now validate 100% with ads:)
     
    Browning, Sep 23, 2008 IP