页面加载完成后,再执行Google AdSense代码

<script>
window.addEventListener("load", function() {
  var script = document.createElement("script");
  script.src = "https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-xxxxxxxxxxxxxxxx";
  document.body.appendChild(script);
});
</script>

其中,您需要将 ca-pub-xxxxxxxxxxxxxxxx 替换为您的发布商 ID。

免责声明|Disclaimer:本站信息仅供参考;作者概不负任何责任。This Site's Informations Provide For Reference Only; The Author Do Not Take Any Responsibilities At All.

©理丠

cc by-nc-nd

——作者|Author

联系|Email

本网站使用cookies,隐私政策|Privacy Policy