在窗口的手机上看不到令人耳目一新的广告

5 admob windows-phone-7

我已经在我的窗口手机7应用程序中实现了admob.广告显示正常.但由于某些原因,它不会刷新.因此,只要用户使用该应用,相同的广告就会保留在屏幕上.

我检查了我的admob页面,刷新率设置为每20秒左右.

有谁遇到过同样的问题?这是我实现admob的方式:

shell:SystemTray.IsVisible="True" xmlns:my="clr-namespace:Google.AdMob.Ads.WindowsPhone7.WPF;assembly=Google.AdMob.Ads.WindowsPhone7">
Run Code Online (Sandbox Code Playgroud)

<my:BannerAd AdUnitID="a1508671d491d11" HorizontalAlignment="Left" Margin="0,-15,0,0" Name="bannerAd1" VerticalAlignment="Top" Height="80" Width="480" Grid.ColumnSpan="2" DataContext="{Binding}" />
Run Code Online (Sandbox Code Playgroud)

rah*_*202 0

尝试在指定的时间间隔后创建新的广告单元。这将是这个问题的解决方法,但不是解决方案。

            AdView bannerAd = new AdView
            {
                Format = AdFormats.Banner,
                AdUnitID = "MY_AD_UNIT_ID"  // Replace your AD Unit ID 
            };
            bannerAd.ReceivedAd += OnAdReceived;
            bannerAd.FailedToReceiveAd += OnFailedToReceiveAd;
            LayoutRoot.Children.Add(bannerAd);
            AdRequest adRequest = new AdRequest();
            adRequest.ForceTesting = true;
            bannerAd.LoadAd(adRequest);
Run Code Online (Sandbox Code Playgroud)