Solved

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

Posted on 2009-04-10
5
4,759 Views
Last Modified: 2012-05-06
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?
0
Comment
Question by:SabreCEO
  • 3
5 Comments
 
LVL 2

Author Comment

by:SabreCEO
Comment Utility
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
0
 
LVL 31

Expert Comment

by:gwkg
Comment Utility
Maybe loading adsense in an iframe will stop the errors
http://www.jguru.com/forums/view.jsp?EID=1305379
 
0
 
LVL 2

Author Comment

by:SabreCEO
Comment Utility
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
0
 
LVL 2

Accepted Solution

by:
SabreCEO earned 0 total points
Comment Utility
This doesn't solve the Google Adsense errors, which there doesn't seem to be a solution to. However, as per my first post on how to load the ads at the bottom of the page, and then move them via javascript and css. I realized that actually moving the element in the dom causes it to refresh, which is a violation of Google's tos. However, if you just move the ads relative to the holder by using javascript to absolutely position them (but leave them where they are in the dom) that works fine. And if any part of the page expands, just have the ads repositioned again when you do that.

This seems like a better solution than an iframe, since it's on the same page, and Google can easily crawl it for content and relative ads. It also works with any ads, not just Google.

-Mark
0
 

Expert Comment

by:Jay1607
Comment Utility
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?
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to choose which pages of your form are visible to your users based on their inputs. The page rules feature provides you with an opportunity to create if:then statements for y…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now