Google AdSense and XHTML1.1

Visitors using older browsers like IE might have noticed that I recently started serving advertisements through Google. People using more modern browsers as Mozilla or Firebird might not have noticed this, since these advertisements are not visible for them. This is not because I want to tease IE users –everybody is free to use any software to visit my site–, or give compliments to Moz users –their clicks are also worth some money–, but only because Google’s scripts are not working when send as application/xhtml+xml. I found the following errors in my Javascript console:
Error: w.google_ad_client has no properties
Source File: http://pagead2.googlesyndication.com/pagead/show_ads.js
Line: 37
Error: google_ad_width is not defined
Source File: http://pagead2.googlesyndication.com/pagead/show_ads.js
Line: 128

Of course I reported these errors to Google, but all I received was the following reply:
> Hello Jeroen,
> The errors that you were experiencing last night were due to an AdSense system upgrade yesterday evening. This upgrade unfortunately created some technical difficulties and were temporarily unable to serve ads to sites in certain browsers. Not all browsers were effected.
> However, our engineers have identified the problem, and I am happy to inform you that the issue is now resolved. Ads are now running on AdSense websites and you should not be seeing these errors anymore.
> We value you as an AdSense publisher, and sincerely apologize for any inconvenience we may have caused you. If you are continuing to have problems with this or have any other questions or concerns, please let us know by replying to this email. One of our AdSense specialists would be happy to assist you. Thank you for your patience in this matter.
> Sincerely,
> The Google Team
Of course I answered them that the problem still exists, but until now I haven’t received an answer.
**[Update 2003.09.26]** Answer from Google:
>Hello Jeroen,
> Thank you for writing us about this issue you are experiencing with your AdSense code. Unfortunately we are unable to replicate this problem. We taking your page, http://braintags.com/archives/2003/08/applicationxhtmlxml/, and running it through the W3C’s XML validator tool ( http://validator.w3.org/), we find that the entire page including our JavaScript code is currently XML complaint. (See Results: http://validator.w3.org/check?uri=http%3A%2F%2Fjeroensangers.com%2Farchives%2F2003%2F08%2Fapplicationxhtmlxml%2F). Unfortunately we are unable to replicate this problem you are experiencing.

> From previous emails it appears you state you are having this problem in Mozilla 1.4. Here is a list of browsers that supports our code https://www.google.com/adsense/faq-tech#q10. Are there other browsers on this list that you are having difficulty with? Also can you include a screenshot of the error since we are unable to replicate this problem on our end. Please include any additional information you may find may be useful in helping to resolve this issue.

> Sincerely,
> The Google Team
It looks like they don’t understand anything about specifying the MIME type when sending a page, so I send the following reply.
> Hello,
>I know that my page is XML compliant, that surely is not the problem.
> You have not been able to replicate the problem, because you have not used a gecko-based browser. Normally I send my pages with MIME type `text/html`. This is what IE and the W3C validator get. Only to browsers which tell me in their request headers that they accept the MIME type `application/xhtml+xml` (like Mozilla and Firebird), I use this MIME type to send my files.
> Note that even though the validator did not complain, I did not send it a valid page, since the specification tells that XHTML1.1 _should_ be delivered as `application/xhtml+xml`.
> To reproduce the error, just visit my page with Mozilla or Firebird, and you will see that the AdSense box will not appear. The only screenshot I can send you is the JavaScript console, but it only contains the two
messages I have send before.
> Kind regards,
> Jeroen Sangers
**[Update 2003.10.01]** And finally Google realizes that their script is not working:
> Hello Jeroen,
> We appreciate your taking the time to offer us this feedback and encourage you to continue to let us know how we can improve Google AdSense. As AdSense is still a young program, new features are under consideration and your feedback is very helpful. This information has been passed on to our engineers and they will look into allowing our ads to be served in `xhtml+xml` pages.
> Sincerely,
> The Google Team
It took them almost a month –I reported this problem on September 4th— to realize that something is wrong. Let’s see how long it will take them to fix this problem.

6 thoughts on “Google AdSense and XHTML1.1”

  1. By the look of your home page in FireFox it doesn’t look like they have fixed the problem.
    It doesn’t really look like they care about web standards at all. Their home page doesn’t even validate! This is a poor effort.
    Sure their search engine works pretty well (for some) but Google is highly influential to a lot of budding young web developers and this lack of standards really reflects on on their attention to detail, both client and server side.
    Two thumbs down Google!

  2. After spending a couple of weeks with the brain-dead support staff that Google uses for the AdWords program, I finally managed to get them to see and understand the issue.
    Their response?
    “We optimize the code sent from our ad servers to deliver ads as quickly as possible to the largest selection of browsers. We regret that we are unable to serve ads to your particular browser configuration.”
    They better do that IPO fast before their business dies….

  3. But I don’t care about the users of Internet, I only care about the visitors of this site. And of those visitors only 46% use Internet Explorer.

  4. Just take IE as your browser, already 96% of all internet users uses this….
    Happy browsing!
    Ruud

Comments are closed.