Problem with Adaptive Banners iOS

599 views
Skip to first unread message

Alex Tatarinchik

unread,
Oct 6, 2019, 6:18:22 AM10/6/19
to Google Mobile Ads SDK Developers
Hi

I could not use new adaptive banner feature for iOS.

Here is documentation link:

iOS SDK: Google-Mobile-Ads-SDK 7.50.0

Below APIs for adaptive banners were not found:

GADPortraitBannerAdSizeWithWidth, GADLandscapeBannerAdSizeWithWidth, GADCurrentOrientationBannerAdSizeWithWidth


FYI: Latest Android SDK doesn't have such problem.

Thanks.

Mobile Ads SDK Forum Advisor Prod

unread,
Oct 7, 2019, 2:27:37 AM10/7/19
to alexander....@gmail.com, google-adm...@googlegroups.com
Hi Alex,

Thank you for reporting this. I randomly tried the versions of the SDK starting from 7.45.0 and I can confirm that the methods you mentioned were indeed missing.
With this, I'll raise this to the rest of the team and get back to you the soonest they provide their feedback.

Regards,
Teejay Pimentel
Mobile Ads SDK Team

ref:_00D1U1174p._5001UKMJq7:ref

Eric Lund

unread,
Oct 8, 2019, 2:38:48 PM10/8/19
to Google Mobile Ads SDK Developers
Hi Teejay,

I am having the same issue I am using Google-Mobile-Ads-SDK 7.50.0. Per the documentation, I am trying to set the adSize to 
self.bannerView.adSize = GADCurrentOrientationBannerAdSizeWithWidth(viewWidth);

But receive the error when building:
Undefined symbol: _GADCurrentOrientationBannerAdSizeWithWidth

Let us know if you get any updates from the team! It would be greatly appreciated.

Thank you,
Eric

Mobile Ads SDK Forum Advisor Prod

unread,
Oct 9, 2019, 12:43:18 PM10/9/19
to lillyh...@gmail.com, google-adm...@googlegroups.com

Hi there,

Sorry for this confusion.  In recent versions of the SDK the API was updated.

The new APIs are:

GADAdSize GADCurrentOrientationAnchoredAdaptiveBannerAdSizeWithWidth(CGFloat width);
GADAdSize GADPortraitAnchoredAdaptiveBannerAdSizeWithWidth(CGFloat width);
GADAdSize GADLandscapeAnchoredAdaptiveBannerAdSizeWithWidth(CGFloat width);

I am updating the early access documentation to reflect this. We will be making these APIs public in the next version of the SDK (7.51.0).
 

Regards
 

Sam



ref:_00D1U1174p._5001UKMJq7:ref

Eric Lund

unread,
Oct 9, 2019, 11:53:08 PM10/9/19
to Google Mobile Ads SDK Developers
Hi Sam,

Thanks so much! This solved my issues! 

Best,
Eric
Reply all
Reply to author
Forward
0 new messages