【发布时间】:2019-06-18 07:08:20
【问题描述】:
我正在构建一个 Cordova 应用程序,我想在其中显示 AdSense 广告。但是没有显示广告。
尝试检查代码并喜欢以下警告
index.html 代码:
<div class="card1">
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- wasd-1 -->
<ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-9663169732625617" data-ad-slot="7097833261" data-ad-format="auto" data-full-width-responsive="true"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
错误:
Failed to load resource: the server responded with a status of 403 ()
ads:1
Failed to load resource: the server responded with a status of 403 ()
The resource https://pagead2.googlesyndication.com/pagead/js/r20190612/r20190131/show_ads_impl.js was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.
ads:1
Failed to load resource: the server responded with a status of 403 ()
【问题讨论】: