I am currently integrating AdMob into my Android game.
I have difficulty integrating smart banners into my framelayout-based layout because they take up different amounts of screen real estate on different devices.
For example, if I display a smart banner on my Acer A500 (MDPI 1280x800), I get one of the sizes 1280x90px, whereas on my Nexus 7 I get one with 1279x66px (TVDPI 1280x800) and on my Galaxy Nexus (HDPI 1280x720) with a resolution 1196x64 pixels.
According to the AdMob documentation, this can be an understandable behavior, given that the values ββgiven in the documentation are dp: https://developers.google.com/mobile-ads-sdk/docs/admob/smart-banners
However, this behavior is a big problem for me, since a smart banner with a height of 90 pixels on an MDPI 1200x800px screen takes up much more screen real estate than a smart banner with a height of 64 pixels on an HDPI screen (see screenshots below).
So, here are my questions: - How much space should I reserve, at least for a smart banner? βHas anyone tried something like this, and how did you deal with this?β
Note. Unfortunately, using a layout other than framelayout is currently not an option. In addition, XML layouts cannot be used to integrate ads.
Best wishes,
Lorenz
Screenshots:
http://imgur.com/qGAk77Y (A500)
source share