Adaptive Inline banners - validAdSizes

786 views
Skip to first unread message

Angela M

unread,
Apr 22, 2020, 5:32:52 PM4/22/20
to Google Mobile Ads SDK Developers

My team is working on implementing adaptive inline banners for our apps. 

 

Here is the link to the Google article about inline adaptive banners.

 

https://developers.google.com/ad-manager/mobile-ads-sdk/ios/early-access/inline-adaptive-banners

 

If switching to inline adaptive banners, should the “validAdSizes” array sent with each ad request be changed to use the new “adaptive size”? 

 

Currently, for mids, the app sends the following validAdSizes value w/ each ad request, which tells the ad server to respond with an ad that fits either one of the two ad sizes.

 

-mobile: [“banner”, “mediumRectangle”] aka 320x50 & 300x250

 

-tablet:["mediumRectangle", "leaderboard"] aka 300x250 & 728x90

 

The GAM help page at https://support.google.com/admanager/answer/9464128 states “In app: Only write adaptive size in ValidAdSize”

 

The GAM documentation at https://developers.google.com/ad-manager/mobile-ads-sdk/ios/early-access/inline-adaptive-banners states otherwise:

 

“For Ad Manager, the `adSize` property is used for the adaptive banner ad size. The `validAdSizes` property is used as normal for the supported reservation// sizes for the ad placement.

This is optional and only needed if you wish to support reservation ad sizes.”

 

bannerView.validAdSizes = @[ NSValueFromGADAdSize(kGADAdSizeBanner) ];

Mobile Ads SDK Forum Advisor Prod

unread,
Apr 23, 2020, 3:28:36 AM4/23/20
to amai...@gmail.com, google-adm...@googlegroups.com
Hi there,

Thank you for providing an extensive rundown of your concern. Let me raise this to the rest of the team to get their insight as well. In the meantime, you may want to check our Smart Banners implementation. This is an alternative to inline Adaptive Banners.

Regards,
Teejay Pimentel
Mobile Ads SDK Team

ref:_00D1U1174p._5001UaRzFg:ref

Mobile Ads SDK Forum Advisor Prod

unread,
Apr 30, 2020, 8:17:37 PM4/30/20
to amai...@gmail.com, google-adm...@googlegroups.com
Hi Angela,

Thank you for reaching out to us. The support article is wrong, and we will update that shortly. Please refer to the https://developers.google.com/ad-manager/mobile-ads-sdk/ios/early-access/inline-adaptive-banners for guidance.


If you want to do reservation, set the sizes of your reservation ads in validAdSizes array. Otherwise you don't need to set it. 

Reservation aside, you should set the adSize of the inline adaptive banner as an adaptive size like:

GADAdSize *adSize = GADCurrentOrientationInlineAdaptiveBannerAdSizeWithWidth(viewWidth);
DFPBannerView bannerView = [[DFPBannerView alloc] initWithAdSize:adSize]; 

Hope it helps,
Jill
Google Mobile Ads SDK Team

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