这引起了我的注意,广告并没有出现在我的网站上与火狐和ABP-插件,只有在我的网站禁用。我有一个经过批准的广告帐户。
这是检查器错误: TagError: adsbygoogle.push()错误: availableWidth=0没有槽大小
我去过AdSense帮助论坛,认为'AdSense帮助论坛‘可能是在没有加载“广告”的情况下寻求帮助的合适地方,但我错了。它是“简单的答案,只有简单的问题”,如果问题是有点复杂,他们会尝试回答问题,告诉你关于其他问题,并避免主要问题!不惜一切代价,甚至在某种程度上,他们都会顺从地忽略你。我不建议从那里寻求帮助,所有的答案'AdSense帮助论坛‘可以给你,可以在网上资金不受侮辱或忽视!
我在我的网站上做的测试列表
风格
.example_responsive_1 { width: 320px; height: 100px; }
@media(min-width: 500px) { .example_responsive_1 { width: 468px; height: 60px; } }
@media(min-width: 800px) { .example_responsive_1 { width: 728px; height: 90px; } }
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- example_responsive_1 -->
<ins class="adsbygoogle example_responsive_1"
style="display:inline-block"
data-ad-client="ca-pub-XXXXXXX11XXX9"
data-ad-slot="8XXXXX1"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>是只有我还是感觉像是一个模式。有什么办法解决这个问题吗?看起来这一切都指向了HTML或CSS中的某些东西,也许是JS。如果可以的话,请指点我。
发布于 2016-06-30 16:35:04
我带着一个更新/回答回来了:导致我的问题的脚本是100%的Adsense问题!下面的移动广告代码是我的问题。
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>
(adsbygoogle = window.adsbygoogle || []).push({
google_ad_client: "ca-pub-xxxxxxxxxxxxx",
enable_page_level_ads: true
});
</script>上面的移动广告代码正在引起下面响应性广告代码的问题。
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- reponsive -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-xxxxxxxxxxxxx"
data-ad-slot="xxxxxxxxxx"
data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>它是一个移动广告的广告脚本,在我的网站标题中,它导致了"error: TagError: adsbygoogle.push() error: No slot size for availableWidth=0“。
我仍然不知道是否可以在不同的设置中一起运行to代码,我将进行更新。
https://stackoverflow.com/questions/38119412
复制相似问题