1

I am getting an error while trying to display Google DFP ad banners in my website. The ads are showing in all browsers except IE9. You can view a simple test page with the banner here: (demo taken offline). The error is "Exception thrown and not caught" (google_ads.js, line 34 char 474).

I can view the ad in IE9 if I switch to IE7/8 compatibility view, so the problem appears to be with IE9. I am not sure if this is restricted to my computer, or if this is a universal problem. If it's the latter, this is a very serious concern for anybody running Google ads!

Your ads might not be showing on any of the newer computers with IE9 installed!

Can somebody please have a look, and confirm if this is a Google issue, or an issue with the my code?

Wild Thing

2
  • Do you have a repro URL? I haven't seen any problems here. Commented Jan 7, 2011 at 0:48
  • Hi Eric, you can see the HTML here: pastebin.com/1i9Z636e. Keep in mind that this is a live DFP account, so please don't click on the ads. The version of IE9 I tested against was 9.0.7930.16406. Commented Jan 7, 2011 at 2:57

1 Answer 1

2

I couldn't really find a permanent solution, but if anybody runs across this problem, you can just add

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" /> 

in your header to force your browser to emulate the IE8 document mode. This seems to fix the JS errors as well.

Sign up to request clarification or add additional context in comments.

2 Comments

This will not work for all situations. I found a bug where IE9 does not allow you to update event.keyCode in js. Switching to IE8 document mode through developer tools fixed it, but adding this header did not work, so there's more to it than that.
I see. I'm sure Google would've updated support for their ad platform for IE9, so I will do another test to see if my site supports IE9 perfectly.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.