Admob Unity标语无法加载“广告无法加载:0”

时间:2019-07-15 05:31:27

标签: android unity3d admob

我目前正在制作游戏,但仍停留在AdMob部分。未按请求加载广告。我正在使用的AppID和AdUnitID来自Google的测试单元。我也尝试过自己的方法,但是返回相同的错误。

  

主要错误:未重试获取应用设置。广告加载失败:   0。

我尝试了AdMob插件3.18.0和3.17.0。都失败了。

这是日志。

07-15 12:08:58.031 9847-9847/com.N1C3K.adtestplain D/AdsUnity: Calling loadAd() on Android
07-15 12:08:58.039 9847-9847/com.N1C3K.adtestplain D/DynamitePackage: Instantiating com.google.android.gms.ads.ChimeraAdManagerCreatorImpl
07-15 12:08:58.045 9847-9847/com.N1C3K.adtestplain I/Ads: This request is sent from a test device.
07-15 12:08:58.055 9847-11219/com.N1C3K.adtestplain I/AudioManager: In isSpeakerphoneOn(), calling application: com.N1C3K.adtestplain
07-15 12:08:58.059 9847-11219/com.N1C3K.adtestplain D/AudioManager: getStreamVolume isRestricted mode = 0
07-15 12:08:58.061 9847-11219/com.N1C3K.adtestplain D/AudioManager: getStreamVolume isRestricted mode = 0
07-15 12:08:58.089 9847-10176/com.N1C3K.adtestplain W/Ads: Not retrying to fetch app settings
07-15 12:08:58.262 9847-9847/com.N1C3K.adtestplain I/Ads: Ad failed to load : 0
07-15 12:08:58.274 9847-11248/com.N1C3K.adtestplain I/Unity: HandleFailedToReceiveAd event received with message: Internal error
                                                             UnityEngine.DebugLogHandler:Internal_Log(LogType, LogOption, String, Object)
                                                             UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
                                                             UnityEngine.Logger:Log(LogType, Object)
                                                             UnityEngine.Debug:Log(Object)
                                                             UnityEngine.MonoBehaviour:print(Object)
                                                             AdManager:HandleOnAdFailedToLoad(Object, AdFailedToLoadEventArgs) (at C:\Users\nicho\Desktop\AdTestPlain\Assets\AdManager.cs:113)
                                                             GoogleMobileAds.Api.BannerView:<ConfigureBannerEvents>b__26_1(Object, AdFailedToLoadEventArgs) (at C:\Users\nicho\Desktop\AdTestPlain\Assets\GoogleMobileAds\Api\BannerView.cs:127)
                                                             GoogleMobileAds.Android.BannerClient:onAdFailedToLoad(String) (at C:\Users\nicho\Desktop\AdTestPlain\Assets\GoogleMobileAds\Platforms\Android\BannerClient.cs:136)
                                                             System.Reflection.MonoMethod:InternalInvoke(Object, Object[], Exception&)
                                                             System.Reflection.MonoMethod:Invoke(Object, BindingFlags, Binder, Object[], CultureInfo)
                                                             System.Reflection.MethodBase:Invoke(Object, Object[])
                                                             Unity
07-15 12:09:06.931 9847-9847/com.N1C3K.adtestplain V/MediaRouter: onRestoreRoute() : route=RouteInfo{ name=Phone, description=null, status=null, category=RouteCategory{ name=System types=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO  groupable=false }, supportedTypes=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO , presentationDisplay=null }
07-15 12:09:06.932 9847-9847/com.N1C3K.adtestplain V/MediaRouter: Selecting route: RouteInfo{ name=Phone, description=null, status=null, category=RouteCategory{ name=System types=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO  groupable=false }, supportedTypes=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO , presentationDisplay=null }
07-15 12:09:16.728 9847-9847/com.N1C3K.adtestplain V/MediaRouter: onRestoreRoute() : route=RouteInfo{ name=Phone, description=null, status=null, category=RouteCategory{ name=System types=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO  groupable=false }, supportedTypes=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO , presentationDisplay=null }
07-15 12:09:16.730 9847-9847/com.N1C3K.adtestplain V/MediaRouter: Selecting route: RouteInfo{ name=Phone, description=null, status=null, category=RouteCategory{ name=System types=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO  groupable=false }, supportedTypes=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO , presentationDisplay=null }

1 个答案:

答案 0 :(得分:0)

在以下情况下会发生:

  • 您的单位ID不正确。
  • 如果您刚刚创建了单位ID,请等待几个小时,因为这需要一段时间才能生效。
  • 如果您的广告以前显示过但不是现在显示,那么您是否正在测试实时广告并单击测试设备上的实时广告?如果是,则Admob可能已将其检测为垃圾邮件,并阻止了您应用的单位ID。
  • 未为AdView提供所需的空间来显示负载和显示广告