AdMob的adSize时对广告的高度 [英] admob adsize for ad height

查看:1277
本文介绍了AdMob的adSize时对广告的高度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道,AdMob的大小可以采取例如'的旗帜,这是320×50不同的价值观,但是我在那个广告已经做得更小,尤其是压扁高一些应用程序都看到了。我一直在使用,而不是为adSize时'的旗帜等价值观尝试,但它不工作。怎样才能让比50低高度的AdMob的旗帜?

I am aware of the different values that the admob size can take for example 'BANNER' which is 320 x 50, however I have seen in some apps that the ad has been made smaller, in particular squashed in height. I have tried using other values instead of 'BANNER' for adsize but it does not work. How can I make a admob banner with a lower height than 50?

谢谢!

推荐答案

您将永远不会低于50像素的AdMob的旗帜。如果你试图把它放在下面50像素它将注册一个错误的布局(检查logcat中)。

you will never get an admob banner below 50px. If you try to put it in a layout below 50px it will register an error (check your logcat).

这是可以显示的AdMob为 50像素而不是默认的 50dip ,有一些聪明的编辑,但IM相当肯定你不应该做的是,占AdMob的服务类型,所以我不会进入这里:)

It is possible to display the admob as 50px instead of the default 50dip, with some clever editing, but im fairly sure you're not supposed to do that per the admob ToS, so I won't get into it here :)

这篇关于AdMob的adSize时对广告的高度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆