Click to See Complete Forum and Search --> : sites with adsense ads


mike444
06-04-2006, 07:31 PM
I've heard that google's adsense ad codes are not valid mark up and have been causing many errors for my pages in the validator. which css doc type should I use for a site with adsense ads as well as various php rss feeds which have inherited the mistakes of their sources? is there a way to have these things on your site and not bring up validation errors?


thank you

mike444
06-04-2006, 08:30 PM
btw - the syndicated rss feed i use on my site validates here:

http://rss.scripting.com/?url=http%3A%2F%2Fwww.tvsquad.com%2Fcategory%2Fthe-colbert-report%2Frss.xml

but when i put it through the this converter at www.rss-info.com and and add it to my site and then test it, it brings up errors. is it the rss converter i'm using?

ray326
06-04-2006, 09:03 PM
When I look at that page through Tidy all the errors I see appear to be yours although I admit to just skimming over it.

mike444
06-04-2006, 10:45 PM
that can't be. i admit i can have made errors myself but they can't primarily be mine. there's over 200+ errors at least and they appear mainly connected to the rss feeds. my css document validates. it's only when i check the site pages that contain the php rss codes and the adsense that errors are detected.

is it possible to validate with no or little errors with my sites' content? thank you

ray326
06-05-2006, 08:59 PM
Sorry. I was looking at rss-info. Got link?

wamboid
06-06-2006, 11:54 AM
I've had the same problem. Pages totally validate pre-adsense, but don't after putting them in. Some of those errors could easily be fixed, others maybe not. They do seem to be appearing properly in all browsers and I seem to be getting credit at google in all browsers, so I've stopped worrying about it for now.

felgall
06-06-2006, 03:24 PM
All of the Google adsense code is Javascript. Adding Javascript to a page correctly will not change whether it validates or not provided that you insert the Javascript in a spot where Javascript is allowed to go. It comes down to what tags you place around the adsense supplied code as to whether it will be accepted as valid in the spot where you put it. Try enclosing it within <div> tags.

wamboid
06-06-2006, 04:16 PM
All of the Google adsense code is Javascript. Adding Javascript to a page correctly will not change whether it validates or not provided that you insert the Javascript in a spot where Javascript is allowed to go. It comes down to what tags you place around the adsense supplied code as to whether it will be accepted as valid in the spot where you put it. Try enclosing it within <div> tags.
Not exactly, mine are all in their own <div> tags. The errors depend some on your doctype. For example, xhtml will hate it because of things like capitalization and tags such as <br> rather than </ br>, and not ending <img> tags. There are also some depracated items used sometimes. I think everything could be very simply fixed, but you do agree not to change their code in any way when you sign up. I doubt they would really have a problem with a customer actually fixing their code, but you never know.