谷歌Adsense广告不应用

2024-05-14 21:52:55 发布

您现在位置:Python中文网/ 问答频道 /正文

我有关于Adsense广告的问题,当我点击我的网页源代码,广告脚本在这里,但广告没有出现,见下面的链接。在

广告可能会出现在话题的顶部。在

链接到页面: http://improveyourself.sk/article_2

更新: 我的脚本代码:

<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
    <!-- Test ad -->
    <ins class="adsbygoogle"
         style="display:inline-block;width:728px;height:90px"
         data-ad-client="ca-pub-5699588432146886"
         data-ad-slot="8670387053"></ins>
    <script>
    (adsbygoogle = window.adsbygoogle || []).push({});
    </script>

Tags: 脚本http网页data源代码链接jsscript
2条回答

广告事实上是加载了,但空间塌陷了。这主要是由于AdSense无法检测到广告的可用空间

这里有一个artikel可以帮你解决问题。在

https://webgilde.com/en/adsense-auto-resizing-error/

你的脚本应该是这样的:

<script  src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
<ins class="adsbygoogle"
 style="display:block"
 data-ad-client="ca-pub-xxxx"
 data-ad-slot="xxxx"
 data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>

更改第一个脚本地址。使用show_广告js而不是adsbygoogle.js. 在

相关问题 更多 >

    热门问题