【问题标题】:Google Adsense error -adsbygoogle.push() error: Only one AdSense head tag supported per page. The second tag is ignoredGoogle Adsense 错误 -adsbygoogle.push() 错误:每页仅支持一个 AdSense 头部标签。第二个标签被忽略
【发布时间】:2021-07-15 17:41:53
【问题描述】:

我将我的脚本标签添加到导航栏组件。下次使用 js 构建时,我的网站上出现此错误:

Google Adsense error -adsbygoogle.push() error: Only one AdSense head tag supported per page. The second tag is ignored

         <Head>
        <script data-ad-client="ca-pub-********" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
        </Head>

【问题讨论】:

  • 您是否在网页中多次添加 AdSense 脚本?您能否为它的来源提供额外的代码?

标签: javascript html next.js


【解决方案1】:

不需要在所有 AdSense 单元中调用 https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js。只需在标题中使用一次。 方法 不要在所有单元中使用“”这部分。

【讨论】:

  • 能否详细说明
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2019-08-19
  • 2023-03-28
  • 2011-07-08
  • 1970-01-01
  • 2015-04-05
  • 2016-08-25
  • 1970-01-01
相关资源
最近更新 更多