admob Smartbanner广告始终在模拟器/设备Windows中返回NoFill错误

时间:2015-12-30 14:18:34

标签: windows-phone-8 admob unity-container windows-phone-8-emulator

Windows Phone 8.0中的Admob广告整合
Admob SDK版本:6.5.13
visual studio 2015 IDE:4.6.00079

测试1:
Ad formart:横幅广告
forceTesting = true;
结果:工作。

测试2:
Ad formart:横幅广告
forceTesting = false;
结果:工作。

测试3:
Ad formart:smartBanner Ad
forceTesting = true;
结果:工作。

测试4:
Ad formart:smartBanner Ad
forceTesting = false;
结果:无填充错误 - 始终。

使用Admob在其网站上提供的Sample。 GoogleAds.E​​xampleApps.BannerExampleCode:
https://github.com/googleads/googleads-mobile-wp8-examples/tree/master/examples/GoogleAds.ExampleApps.BannerExampleCode

   private void CreateAd()
    {
        Debug.WriteLine(" CreateAd ");

        Dispatcher.BeginInvoke(() =>
        {
            // NOTE: Edit "MY_AD_UNIT_ID" with your ad unit id.
            bannerAd = new AdView
            {
                Format = AdFormats.Banner,
                AdUnitID = "AdUnit ID here"
            };
            bannerAd.VerticalAlignment = VerticalAlignment.Bottom;
            bannerAd.ReceivedAd += OnAdReceived;
            bannerAd.FailedToReceiveAd += OnFailedToReceiveAd;
            DrawingSurfaceBackground.Children.Add(bannerAd);

            AdRequest adRequest = new AdRequest();
            adRequest.ForceTesting = false;
            bannerAd.LoadAd(adRequest);

        });

    }

我们是否可以控制“NoFill rate error”,请帮帮我。

0 个答案:

没有答案