gpt4 book ai didi

android - Android 中的 AdMob 方向问题

转载 作者:塔克拉玛干 更新时间:2023-11-02 09:07:29 25 4
gpt4 key购买 nike

我的应用程序集成了 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com