{"id":112,"date":"2011-12-11T12:40:13","date_gmt":"2011-12-11T20:40:13","guid":{"rendered":"http:\/\/shanelabs.com\/blog\/?p=112"},"modified":"2011-12-11T12:43:33","modified_gmt":"2011-12-11T20:43:33","slug":"adsense-error-unable-to-post-message-to-httpgoogleads-g-doubleclick-net-recipient-has-origin-domain","status":"publish","type":"post","link":"https:\/\/shanelabs.com\/blog\/2011\/12\/11\/adsense-error-unable-to-post-message-to-httpgoogleads-g-doubleclick-net-recipient-has-origin-domain\/","title":{"rendered":"Adsense error: Unable to post message to http:\/\/googleads.g.doubleclick.net. Recipient has origin [domain]."},"content":{"rendered":"<p>I noticed this error when adding google adsense code to one of my sites. I thought it was just happening on my new site, until I checked my other sites and realized it was happening everywhere! I had no idea how long this had been going on for, but wanted to get it fixed ASAP.<\/p>\n<p>I scoured the web and researched the hell out of it. Here are the facts:<\/p>\n<ul>\n<li>It has happened to lots of people. There are numerous posts on google&#8217;s message boards (Ex:\u00a0<a href=\"http:\/\/www.google.com\/support\/forum\/p\/AdSense\/thread?tid=18890327279dad00&amp;hl=en\">http:\/\/www.google.com\/support\/forum\/p\/AdSense\/thread?tid=18890327279dad00&amp;hl=en<\/a>). Google has not acknowledged it or proposed a fix.<\/li>\n<li>It happens only on Chrome and Safari browsers. Internet Explorer and Firefox are immune to it. I have not tested specific versions, just the most recent release of each.<\/li>\n<li>Sometimes it is accompanied with an additional error &#8220;Unsafe JavaScript attempt to access frame with URL [URL] from frame with URL http:\/\/googleads.g.doubleclick.net\/pagead\/ads?&#8230; Domains, protocols and ports must match.&#8221;<\/li>\n<li>No adsense users have found a reliable fix.<\/li>\n<li>I tried putting the adsense code on a blank page, wondering if my own html or javascript code was conflicting with it. The warnings still popped up.<\/li>\n<li>I tried from a different computer, to see if it was isolated to my environment. Same problem.<\/li>\n<li>I located another website that had adsense on it. Their site was giving me the same errors.<\/li>\n<li>People have reported this as a bug in Chromium (<a href=\"http:\/\/code.google.com\/p\/chromium\/issues\/detail?id=61223\">http:\/\/code.google.com\/p\/chromium\/issues\/detail?id=61223<\/a>). No solution.<\/li>\n<li>Although it does create script errors, it does not seem to affect the functionality. Ads are still displayed, and clicks are still counted.<\/li>\n<\/ul>\n<p>Since I found no solution, I thought about\u00a0dropping\u00a0Adsense, but since the functionality is still there and it&#8217;s still providing income, I decided to wait it out. I&#8217;ll update this post when\/if I find a solution. Please share your experiences in the comments, especially if you found a fix!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I noticed this error when adding google adsense code to one of my sites. I thought it was just happening on my new site, until I checked my other sites and realized it was happening everywhere! I had no idea how long this had been going on for, but wanted to get it fixed ASAP. [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-112","post","type-post","status-publish","format-standard","hentry","category-web"],"_links":{"self":[{"href":"https:\/\/shanelabs.com\/blog\/wp-json\/wp\/v2\/posts\/112","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/shanelabs.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/shanelabs.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/shanelabs.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/shanelabs.com\/blog\/wp-json\/wp\/v2\/comments?post=112"}],"version-history":[{"count":4,"href":"https:\/\/shanelabs.com\/blog\/wp-json\/wp\/v2\/posts\/112\/revisions"}],"predecessor-version":[{"id":115,"href":"https:\/\/shanelabs.com\/blog\/wp-json\/wp\/v2\/posts\/112\/revisions\/115"}],"wp:attachment":[{"href":"https:\/\/shanelabs.com\/blog\/wp-json\/wp\/v2\/media?parent=112"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/shanelabs.com\/blog\/wp-json\/wp\/v2\/categories?post=112"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/shanelabs.com\/blog\/wp-json\/wp\/v2\/tags?post=112"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}