Admobs不在Android平板电脑上显示-如何测试?

Admobs不在Android平板电脑上显示-如何测试?,android,android-emulator,admob,Android,Android Emulator,Admob,我的admob广告不会出现在任何Android平板设备上,有点痛苦。我一直在试图解决这个问题,但运气不好 这些广告在标准的安卓手机上看起来不错,但在平板电脑上却不行 也许我没有正确使用下面的SMART_横幅,任何人都有任何提示或想法 android:id="@+id/ad_layout" android:layout_width="fill_parent" android:layout_height="50dp" android:layout_alignParentBottom="true" a

我的admob广告不会出现在任何Android平板设备上,有点痛苦。我一直在试图解决这个问题,但运气不好

这些广告在标准的安卓手机上看起来不错,但在平板电脑上却不行

也许我没有正确使用下面的SMART_横幅,任何人都有任何提示或想法

android:id="@+id/ad_layout"
android:layout_width="fill_parent"
android:layout_height="50dp"
android:layout_alignParentBottom="true"
android:gravity="bottom"
android:orientation="horizontal" >

<com.google.ads.AdView 
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads"
android:id="@+id/adView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
ads:adSize="SMART_BANNER"
ads:adUnitId="xxxxxxxx"
ads:loadAdOnCreate="true"
/>
android:id=“@+id/ad_布局”
android:layout\u width=“fill\u parent”
android:layout_height=“50dp”
android:layout\u alignParentBottom=“true”
android:gravity=“底部”
android:orientation=“horizontal”>
问候,,
莎拉似乎是个布局问题。你用的是RelativeLayout,对吧?尽量使广告贴在顶部/底部

<com.google.ads.AdView android:id="@+id/adView"
                     android:layout_width="match_parent"
                     android:layout_height="wrap_content"
                     ads:adUnitId="xxxxxxxx"
                     ads:adSize="BANNER"
                     ads:testDevices="TEST_EMULATOR"
                     ads:loadAdOnCreate="true"
                      android:layout_alignParentTop="true"
                      android:gravity="center"/

这个问题看起来很常见。我认为您的固定高度50dp对于平板电脑大小的横幅广告来说太小了,并且由于格式不匹配,AdMob SDK拒绝显示广告。请查看您的logcat输出,以获取与AdMob相关的错误消息。当出现格式不匹配时,它会告诉您。如果您的应用程序应同时在手机和平板电脑上运行,请在res/layout large中为平板电脑创建其他布局。尝试将高度设置为60dp。这对我来说很有用。嗨,我厌倦了60dp的快速修复,不走运,我不得不玩它。更多的AdMob通常都是非常冗长的日志猫消息。你应该可以在那里找到解释