Adsense广告未显示在cordova网络视图上

时间:2019-06-17 22:24:06

标签: android cordova adsense

我正在构建一个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 ()

1 个答案:

答案 0 :(得分:1)

您无法将adsense加载到常规Webview中,因为Google本身会阻止它。取而代之的是,获取一个adsense Cordova插件。还要注意,要从中获得相关收入,您每天需要数千次展示和百分之几的点击。