Link to home
Start Free TrialLog in
Avatar of SabreCEO
SabreCEO

asked on

Stop Adsense Security Error: Content at http://googleads.g.doubleclick.net/ may not load data from...

Google has been aware for over a year that their Adsense code causes FireFox to report a security error:

Security Error: Content at http://googleads.g.doubleclick.net/ may not load data from...

However, they have done nothing about it, and refuse to even acknowledge the issue despite massive amounts of complaints from Adsense publishers. My question is there anyway around this? Normally I would not care, but...

On my website, I load all the adsense ads at the bottom of the page. Then I use javascript to reposition them. I do it basically instantly, so you can't even tell. I can't use css because the layout is too complicated. However, moving the ads instantly seems to cause this security error about 50 times a second for 10 seconds! Meaning any page I load I get 500 errors! It I delay the moving of the ads by a second, or add it to the onload event, then I get 2 errors, not 500. However, delaying the ads 1 second is not feasible and would descrease revenue. So, does anyone have a solution?
Avatar of SabreCEO
SabreCEO

ASKER

Well I'd still like to fix the error. But I have a solution not to cause it 500 times by moving the ad. Now what I do is immediately calculate the position of the holder for the ad, then position the ad absolutely inside the holder. Then, since some parts of the page expand (which would cause the ads to be in the wrong place when positioned absolutely) I then move those inside the holder and set their position to static when onload is fired.

-Mark
Maybe loading adsense in an iframe will stop the errors
http://www.jguru.com/forums/view.jsp?EID=1305379
 
Same errors, just they come from the iframe (which FireFox still reports). Doesn't make a difference. The errors are caused by the javascript that Google Adsense uses since it try to access content across domains, which is not allowed. I'm going to assume there's no way to stop the errors completely, since you're not allowed to change Google's code anyway per their terms and conditions, and that's where the issue is.

-Mark
ASKER CERTIFIED SOLUTION
Avatar of SabreCEO
SabreCEO

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Has any one ever found a solution to the original problem posted in this thread?  By this and other discussion, this problem seems prevalent and without resolution.

I'm most interested in knowing if this error is effecting revenue.  Are there impressions or clicks that are not being recorded because of this error?