SMART banner on android 10" table sometimes takes full width in landscape mode

182 views
Skip to first unread message

Oleksiy Chekin

unread,
Jan 21, 2014, 5:24:14 PM1/21/14
to google-adm...@googlegroups.com
Hi there!


I tested SMART banner today with SDK 6.4.1. on several phones (S2, S4, etc) and tablets (7", 10")

It seems very smart :) except of situation that seems as bug for me: on 10" android tablet (Asus Infinity 1920x1080) in landscape mode sometimes it takes full width. For me it seems like image banners works correctly - its takes only part of width and centered, but for text banners we have completely different situation - they takes full width and aligned to left. I sure that my users will not like it.

Any workaround for the issue?

I tried android:layout_width="wrap_content"  for LinearLayout that contains the banner - nothing happens, it still takes full width. I also tried to set  android:layout_width="1300dp"  for the linear layout, it makes the banner not showing at all.

Currently I thinking about of detecting 10" tablets programmaticaly and force AdView to use FULL_BANNER or simple BANNER in such case.


Thanks,
Oleksiy.

Eric Leichtenschlag

unread,
Jan 23, 2014, 7:09:00 PM1/23/14
to google-adm...@googlegroups.com
Hi Oleksiy,

If you see this issue again, could you take a screenshot of it, as well as provide the ad request url from the logs that was used to make the request. This is almost certainly an ad rendering issue that can't be worked around in the SDK. wrap_content probably isn't working because a smart_banner AdView does take up the full width, but the rendered ad doesn't fill the full space of the AdView.

Thanks,
Eric

Oleksiy Chekin

unread,
Jan 24, 2014, 6:41:12 AM1/24/14
to google-adm...@googlegroups.com
Sure, it happens all the time. There are 3 screenshots from my tests, I tried different locations for the adView - nothing changes. The adView container is linear layout with android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical". Similar linear layout is the view root layout.

 
The request is (all ids replaced with XXXX, please ask if need any of them) :

Oleksiy Chekin

unread,
Jan 24, 2014, 6:50:11 AM1/24/14
to google-adm...@googlegroups.com
Rest of the log:

&js=afma-sdk-a-v6.4.1&bas_off=0&net=wi&app_name=39.android.mycodefab.aleph.weather&hl=en&smart_w=full&gnt=0
&u_audio=1&u_sd=1.5&ms=XXXXXX&mv=XXXX.com.android.vending&format=1280x90_mb&oar=0&smart_h=auto&u_h=752&bas_on=0&ptime=0&imbf=%40installed_markets%40&cap=t&u_so=l&output=html&region=mobile_app&u_tz=120&client_sdk=1&ex=1&client=XXXX&slotname=XXXX&gsb=wi
&caps=inlineVideo_interactiveVideo_mraid1_th_autoplay_mediation_sdkAdmobApiForAds_di&jsv=66&urll=952" type: "admob" afmaNotifyDt: "null" activationOverlayUrl: "null" useWebViewLoadUrl: "false">
01-24 13:19:31.611: I/Ads(11371): Ad url modified to http://googleads.g.doubleclick.net:80/mads/gma?preqs=0&session_id=XXXX&seq_num=1&u_w=1280&msid=mycodefab.aleph.weather
&js=afma-sdk-a-v6.4.1&bas_off=0&net=wi&app_name=39.android.mycodefab.aleph.weather&hl=en&smart_w=full&gnt=0&u_audio=1&u_sd=1.5&ms=XXXX&mv=XXXX.com.android.vending&format=1280x90_mb
&oar=0&smart_h=auto&u_h=752&bas_on=0&ptime=0&imbf=8009&cap=t&u_so=l&output=html&region=mobile_app&u_tz=120&client_sdk=1&ex=1&client=XXXXXX&slotname=XXXXX
&gsb=wi&caps=inlineVideo_interactiveVideo_mraid1_th_autoplay_mediation_sdkAdmobApiForAds_di&jsv=66&urll=952
01-24 13:19:31.611: I/Ads(11371): Request scenario: Online server request.
01-24 13:19:35.841: I/Ads(11371): onReceiveAd()

So currently in my app on google play I detecting screen size > 8" and in such case display AdSize.BANNER

Eric Leichtenschlag

unread,
Jan 24, 2014, 7:21:33 PM1/24/14
to google-adm...@googlegroups.com
Hi Oleksiy,

This behavior is actually working as intended, for the most part. Smart banner is supposed to be full-width, and these ads are full-width. Perhaps there could be a second ad in the case of your 3rd example though. There is definitely some unused precious real-estate. I've made a note of this for the backend team to think about what to do with this large space.

If you choose to stay away from SMART_BANNER on 10" tablets, you may also consider the AdSize.LEADERBOARD 728x90 option.

Thanks,
Eric

Oleksiy Chekin

unread,
Jan 25, 2014, 9:24:58 AM1/25/14
to google-adm...@googlegroups.com
Hi Eric,


Thank you, will try AdSize.LEADERBOARD. on 10"

There is no second ad in my 3rd example, I know the rule about only one ad on a page. 

I think it will be good if the 1280x90 banner will take only 1280 width with rest of space transparent (the tablet screen width is 1920). In such case the banner will not seems so big, as it looks now. The screen width (1920 and more) currently very common for 10" tablet, so it will be great to have some fix for such situations. Another way can be make another banner type that will use full width, but less height (as we have on phones in landscape mode with SMART banner). The 1280x90 seems OK in portrait mode, but not in landscape mode.


Thank you for your help,
Oleksiy.
-----

Eric Leichtenschlag

unread,
Jan 27, 2014, 4:30:21 PM1/27/14
to google-adm...@googlegroups.com
Hi Oleksiy,

Thanks for the feedback. A agree that in your exmaples the 1280dp x 90dp banner isn't taking advantage of all the screen real estate provided to it. And if the more common use case for developers is to prefer the leaderboard for 10" tablets, perhaps we need to redesign the smart banner sizes to make it a desirable option on all device sizes.

Eric
Reply all
Reply to author
Forward
0 new messages