谷歌广告暴民显示在安卓模拟器上,但不在真实设备中

问题描述

我遵循这一趋势来配置 google mob 广告,我可以看到测试广告显示在模拟器中,但不在真实设备上。 https://forums.xamarin.com/discussion/184725/admob-and-xamarin-forms

配置 1:MainActivity.cs

MobileAds.Initialize(Android.App.Application.Context);

2:AndroidManifest.xml

<application android:label="TigrinyaDictionary.Android" android:icon="@drawable/xamarin_logo">
    <activity android:name="com.google.android.gms.ads.AdActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" android:theme="@android:style/Theme.Translucent" />
    <Meta-data android:name="com.google.android.gms.ads.APPLICATION_ID" android:value="ca-app-pub-3805403853199645~**********" />
    <Meta-data android:name="com.google.android.gms.ads.AD_MANAGER_APP" android:value="true" />
</application>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

3:我添加自定义控件并添加到 .xaml 文件

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
         xmlns:local="clr-namespace:AdMobSample.controls"
         xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
         x:Class="AdMobSample.MainPage">
  <StackLayout>
    <Label Text="display an Admob Banner!" 
       HorizontalOptions="Center"
       VerticalOptions="CenterandExpand" />
    <!-- Place the Admob controls here -->
    <local:AdMobView AdUnitId="ca-app-pub-3940256099942544/6300978111" WidthRequest="320" 
      HeightRequest="50"/>
 </StackLayout>

enter image description here

模拟器图片底部显示广告):

三星真机图片(无广告)

任何帮助将不胜感激?

enter image description here

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)