有时我会在控制台中收到此错误
无法加载资源:服务器的状态为400()
有时候没有错误!
我听说显示广告需要一些时间!但是即使在本地主机中,我也必须等待?
代码如下:
<!-- inside header -->
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js">
</script>
<!-- at the place where I want to show -->
<ins class="adsbygoogle"
style="display:inline-block;width:336px;height:280px"
data-ad-client="ca-pub-XXXXXXXXXXXX"
data-adtest="on"
data-ad-slot="XXXXXX">
</ins>
<!-- inside scripts tag -->
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>