我们如何用新的AdSense代码提高广告性能呢?
我们最近发布了新版本的AdSense代码。通过新的AdSense代码,AdSense可以更早地触发优化,以提高您网站上的广告效果。新的广告代码对自动广告和广告单元都适用。
我需要做什么吗?
你不需要采取任何行动。在你下次登录AdSense的时候,你就可以获得新的广告代码,并可以通过你的账户访问它们。
我必须用新的广告代码替换旧的广告代码吗?
你不需要替换你网站上现有的广告代码。但是,如果你想利用新的优化功能,你可能希望更新广告代码。
提示:如果你选择更新你的广告代码,请确保
更新您网站上的所有广告代码。为了达到最佳效果,建议你避免在同一页面上混合使用新旧广告代码。
你的出版商ID在所有新的广告代码中都是正确的。
新的广告代码是什么样子的
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-1234" crossorigin="anonymous"></script>
广告单元代码示例:
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-1234" crossorigin="anonymous"></script>
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-1234"
data-ad-slot="5678"
data-ad-format="auto"
data-full-width-responsive="true"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-1234"
data-ad-slot="5678"
data-ad-format="auto"
data-full-width-responsive="true"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
目录 返回
首页