简体   繁体   中英

Determine banner ad size on android

I am using appodeal to create the banner ads in my android application. I want to reduce the height of my view so as to make space for the banner in bottom. But, I am not able to find any way to get the size of banner ad. How are people dealing with appodeal in their apps then? Did someone find a way to do that? Any help is much appreciated.

Thanks in advance.

Oleg from Appodeal said:

Hi. Banner can have height 50dp or its height will be determined as follows:

32: device screen height <= 400

50: 400 < device screen height <= 720

90: device screen height > 720

I also noticed that for some 90dp height banners, the image does not take up the entire height and the bottom part of the banner stays transparent. It could be mistaken as a 50dp height banner with a bottom margin.

--- Answering @Anonymous ---

I think you are testing only on small devices. The following screen shots were taken today on a AsusME172 tablet.

Landscape:

横幅景观模式

Portrait:

横幅肖像模式

The case mentioned when the banner seems to be 50dp but is a 90dp with a transparent part:

横幅与透明的部分

The link to the app on google play in case you want to test yourself. (It's only in portugueese since is a words game, anyway, for sake of testing maybe it could be useful):

link on google play

regards

If understand you correctly - you mean banner ad, it's standard size is 320x50 and u can't change it. Also, I wouldn't recommend using banner ads - it goes on users' nerves. Stick to interstitials or videos, they perform better from all points, people perceive them better. BTW appodeal has a cool live chat with tech guys on their homepage, take a look at it. The easiest way to cope with all issues

All smart banners have height = 50 dp in PORTRAIT mode.

In LANDSCAPE mode:

32 dp : device screen height <= 400
50 dp : 400 < device screen height <= 720
90 dp : device screen height > 720

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM