android - Android 中的 AdMob 方向问题

标签 android layout admob

我的应用程序集成了 AdMob广告。当我改变方向时,它应该根据方向适合屏幕。在纵向模式下它工作正常,但当我更改为横向模式时,我在纵向模式下获得的广告尺寸与在横向模式下显示的广告尺寸相同。

我正在布局页面中添加以下内容。

<com.admob.android.ads.AdView
   android:id="@+id/ad"
   android:layout_width="fill_parent"
   android:layout_height="wrap_content"
   myapp:backgroundColor="#000000"
   myapp:primaryTextColor="#FFFFFF"
   myapp:secondaryTextColor="#CCCCCC"
/>

最佳答案

看来这里的答案来自admob:

http://groups.google.com/group/admob-publisher-discuss/browse_thread/thread/17451c55258de1ec?pli=1

Unfortunately we don't support 480 dip wide ads at this time. We have unified the presentation of our ads across the network, and we have not extended our ad formats to a 480 pixels wide format at this time. We hope to add support for them soon. Our SDK is built in such a way that when we introduce the wider ad unit for landscape phones and other larger screens, the new ads will already be supported and you will not need to update to a new SDK.

很遗憾,似乎无法延长广告。

关于android - Android 中的 AdMob 方向问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3059322/

相关文章:

java - AsyncTask 一段时间后停止

java - 如何在 AutoCompleteTextView 上设置文本

javascript - 调整元素与容器面板相同的高度

css - 自动大小列取决于 css/angular 中多行的最大大小

android - 我可以加快 Admob 在 Android 上的加载速度吗?

iPhone - 如何在 ios 中添加 AdSupport.framework?

android - 为 ActionBar Sherlock 选项卡设置自定义 View

android - 如何通过单击图像按钮显示全屏图像

android - 平均划分屏幕android

ionic-framework - admob plus 和 ionic 导致运行时错误(plugin.constructor.getPluginRef 不是函数)