Admob的旗帜,插播式广告不加载的启动活动 [英] Admob banner and interstitial ads not loading on launcher activity

查看:920
本文介绍了Admob的旗帜,插播式广告不加载的启动活动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我打开我的应用程序的横幅广告和全屏插页式广告不加载第一次。每隔时候,我打的(或任何其他)活动的广告负荷罚款。这使我相信,它不是一个填充的问题。另外,我没有使用任何调解,只是标准Admob的网络。

The first time when I load my app the banner ad and the full screen interstitial ad does not load. Every other time when i hit that (or any other) Activity the ads load fine. This leads me to believe that its not a fill issue. Also i am not using any mediation, just the standard Admob network.

下面是codeI使用加载横幅广告

Below is the code i use to load the banner ad

AdView bannerAdView = (AdView)this.findViewById(R.id.adView);
    if (Settings.SHOW_ADS) {
        AdRequest adRequestBanner = new AdRequest.Builder().build();
        bannerAdView.loadAd(adRequestBanner);
    }

登录猫报告回以下错误

Log cat reports back the following error

10-11 21:33:51.749  19409-19439/ W/Ads﹕ There was a problem getting an ad response. ErrorCode: 0
10-11 21:33:51.839  19409-19409/ W/Ads﹕ Failed to load ad: 0
10-11 21:33:47.039  19409-19409/ E/Ads﹕ JS: Uncaught ReferenceError: AFMA_ReceiveMessage is not defined (:1)

有什么我可以做,使广告负荷接近100%的时间,特别是全屏的广告?

Is there anything i can do to make the ad load close to 100% of the time, especially the full screen ad?

推荐答案

在我的摇篮文件升级到最新的谷歌播放服务的lib时,此问题已经消失了。

This issue has disappeared when upgrading to the latest google play services lib in my Gradle file.

在撰写本书的时候,最新的版本是 71年6月1日和扶养看起来是这样的:

At the time of writing this, the latest version is 6.1.71 and the dependancy looks like this:

compile 'com.google.android.gms:play-services:6.1.71'

这篇关于Admob的旗帜,插播式广告不加载的启动活动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆