Android AdView仅在emulator上显示测试横幅
我刚刚在AdMobs上创建了一个帐户,为测试创建了一个横幅 代码来自BannerExample,没有addTestDevice(…) activity_my.xmlAndroid AdView仅在emulator上显示测试横幅,android,admob,Android,Admob,我刚刚在AdMobs上创建了一个帐户,为测试创建了一个横幅 代码来自BannerExample,没有addTestDevice(…) activity_my.xml <com.google.android.gms.ads.AdView android:id="@+id/ad_view" android:layout_width="match_parent" android:layout_height="wrap_content" android:la
<com.google.android.gms.ads.AdView
android:id="@+id/ad_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_alignParentBottom="true"
ads:adSize="BANNER"
ads:adUnitId="ca-app-pub-6784520601040456/7994286128" />
但当我启动应用程序时,我只看到了测试横幅
我是否应该指定其他内容来查看真实的横幅?尝试在真实设备中查看它。添加通常不会显示在emulator中
<com.google.android.gms.ads.AdView
android:id="@+id/ad_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_alignParentBottom="true"
ads:adSize="BANNER"
ads:adUnitId="ca-app-pub-6784520601040456/7994286128" />