【问题标题】:Adsense ads are not displayed on cordova webviewAdsense 广告未显示在 cordova webview 上
【发布时间】: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 ()

【问题讨论】:

    标签: android cordova adsense


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 2018-06-29
      • 2013-01-21
      • 1970-01-01
      • 2016-09-25
      • 1970-01-01
      • 2017-11-09
      • 2014-10-14
      • 2016-07-01
      • 2013-08-11
      相关资源
      最近更新 更多