Javascript errors from Google Adsense

后端 未结 9 2279
无人共我
无人共我 2020-11-30 22:44

On several of my adsense running sites, I have been getting the following errors:

Unable to post message to [http://]googleads.g.doubleclick.n

9条回答
  •  心在旅途
    2020-11-30 23:18

    For those who land on this page after searching for the domain and protocol error code:

    AdSense has released a new async version of their javascript that addressed the cross-domain errors being generated when we used their older embed code. When we used their standard embed code on our AJAX-heavy site, we got the cross-domain error. When we implemented their async code, and in combination with a properly defined crossdomain.xml the cross-domain error went away.

提交回复
热议问题