Smart Banner size

847 views
Skip to first unread message

saradamcs

unread,
Mar 25, 2019, 10:27:47 AM3/25/19
to Google Mobile Ads SDK Developers
Hi,
I have a question regarding Smart Banner - using Google Mobile Ads Unity Plugin. I've noticed a problem that on some devices in portrait screen orientation the Banner size is 320x100 instead of 320x50. I didn't found any information about the conditions when the 320x100 Large Banner will be shown. Can you please tell me when the Large Banner is shown instead of the normal Banner? Is it because of the resolution, dpi, aspect ratio, if so, what are the conditions?
Thank you.

mobileadssdk...@google.com

unread,
Mar 25, 2019, 4:11:05 PM3/25/19
to saradamcs, Google Mobile Ads SDK Developers
Hello there,

Thanks for reaching out to us. What is the available screen width for your device when you are making this Banner AdRequest? You need to check the returned AdSize and make sure that the AdView inside your container has sufficient space to render out the ad. I would suggest that you go through our sample apps and see if you are able to load. Then get the returned AdSize and make sure to provide sufficient space to render out the AdView. And, You can refer to our Banner sizes and their supportability here and refer to this Smart Banner documentation. Also, note that Smart Banners on iPhones have a height of 50 points in portrait and 32 points in landscape. On iPads, height is 90 points in both portrait and landscape. Are you not noticing this? What is the ad size being requested? Can you please share the code snippets of your implementation?

Regards,
Deepika Uragayala
Mobile Ads SDK Team
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

--

---
You received this message because you are subscribed to the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.
To post to this group, send email to google-admob-ads-sdk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-admob-ads-sdk/ba74795d-464b-4df7-9cf2-545879faec6f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

saradam

unread,
Mar 25, 2019, 6:00:23 PM3/25/19
to google-adm...@googlegroups.com
Hi,
okay, to clarify my issue I created new empty Unity project, imported Google Mobile Ads Unity Plugin and run this script:

MobileAds.Initialize("ca-app-pub-3940256099942544~3347511713");
BannerView bannerView = new BannerView("ca-app-pub-3940256099942544/6300978111", AdSize.SmartBanner, AdPosition.Bottom);
bannerView
.LoadAd(new AdRequest.Builder().Build());

Then I started two Android emulators (Pixel 2 API 28, Pixel 2 XL API 28) and run the project.

Screenshot_1553549744.png

Screenshot_1553549709.png


As you can see on the screenshots, Pixel 2 shows 320x50 Smart Banner, Pixel 2 XL shows 320x100 Smart Banner. I got confirmed that the same 320x100 Smart Banner will appear on Redmi Note 5 with same display aspect ratio as Pixel 2 XL, so it is not only Emulator or single device issue.
Because Google Mobile Ads Unity Plugin always returns 0 height for banners, I have to myself find out the banner height and reposition UI elements so that banner won't overlaps any elements. So now I need to know when exactly the 320x100 Smart Banner can appear?

Smart Banner Documentation says that the Ad height can be 32dp, 50dp or 90dp. But I got 100dp Smart Banner which is not mentioned anywhere.

Thank you.

mobileadssdk...@google.com

unread,
Mar 26, 2019, 3:51:52 PM3/26/19
to saradam, Google Mobile Ads SDK Developers
Hello there,

Thanks for sharing additional details. I was able to reproduce this and relayed this to the team. We will keep you posted when we have any update from the team.

Regards,
Deepika Uragayala
Mobile Ads SDK Team
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Smart Banner Documentation says that the Ad height can be 32dp, 50dp or 90dp. But I got 100dp Banner which is never mentioned anywhere.

Thank you.



On Monday, March 25, 2019 at 9:11:05 PM UTC+1, mobileadssdk-forumadvisor wrote:
Hello there,

Thanks for reaching out to us. What is the available screen width for your device when you are making this Banner AdRequest? You need to check the returned AdSize and make sure that the AdView inside your container has sufficient space to render out the ad. I would suggest that you go through our sample apps and see if you are able to load. Then get the returned AdSize and make sure to provide sufficient space to render out the AdView. And, You can refer to our Banner sizes and their supportability here and refer to this Smart Banner documentation. Also, note that Smart Banners on iPhones have a height of 50 points in portrait and 32 points in landscape. On iPads, height is 90 points in both portrait and landscape. Are you not noticing this? What is the ad size being requested? Can you please share the code snippets of your implementation?

Regards,
Deepika Uragayala
Mobile Ads SDK Team
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

On 03/25/19 10:27:47 sara...@gmail.com wrote:
Hi,
I have a question regarding Smart Banner - using Google Mobile Ads Unity Plugin. I've noticed a problem that on some devices in portrait screen orientation the Banner size is 320x100 instead of 320x50. I didn't found any information about the conditions when the 320x100 Large Banner will be shown. Can you please tell me when the Large Banner is shown instead of the normal Banner? Is it because of the resolution, dpi, aspect ratio, if so, what are the conditions?
Thank you.

--

---
You received this message because you are subscribed to the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsubscrib...@googlegroups.com.

--

---
You received this message because you are subscribed to the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.
To post to this group, send email to google-admob-ads-sdk@googlegroups.com.

mobileadssdk...@google.com

unread,
Mar 27, 2019, 3:45:41 PM3/27/19
to saradam, Google Mobile Ads SDK Developers
Hello there,

I have shared this with our team and upon our further investigation the AdSize's height will be 90dp but the creative here is not showing the proper dimensions. You can determine the height of the AdView when onAdLoaded() callback is fired.

Regards,
Deepika Uragayala
Mobile Ads SDK Team
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

saradam

unread,
Mar 27, 2019, 5:15:41 PM3/27/19
to google-adm...@googlegroups.com
Hi,
okay, thank you for the information.

smrtp...@gmail.com

unread,
Oct 27, 2021, 1:23:59 AM10/27/21
to Google Mobile Ads SDK Developers
Still wrong

Mobile Ads SDK Forum Advisor

unread,
Oct 27, 2021, 6:00:43 AM10/27/21
to smrtp...@gmail.com, google-adm...@googlegroups.com
Hi smrtp,

Could you kindly provide more details of your concern for us to assist you further?

Regards,
Google Logo
Teejay Wennie Pimentel
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2QFZ1L:ref
Reply all
Reply to author
Forward
0 new messages