广告没有显示在我的页面上,我该怎么办?

时间:2018-11-01 20:50:13

标签: html ads adsense google-admob adsense-api

这是代码

<ins class="adsbygoogle"
     style="display:block; text-align:center;"
     data-ad-layout="in-article"
     data-ad-format="fluid"
     data-ad-client="ca-pub-9121789382833091"
     data-ad-slot="5430801878"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script></div>

我将其放入体内并禁用了adblocker(是的,我等待了2个小时)。网站访问者数量是否有限制,或者我输入的代码有误?

1 个答案:

答案 0 :(得分:1)

您缺少加载库的脚本标签:

<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>

<ins class="adsbygoogle"
     style="display:block; text-align:center;"
     data-ad-layout="in-article"
     data-ad-format="fluid"
     data-ad-client="ca-pub-9121789382833091"
     data-ad-slot="5430801878"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script></div>