about collapsible banner

92 views
Skip to first unread message

Takashi Umeki

unread,
Aug 5, 2023, 8:39:17 PM8/5/23
to Google Mobile Ads SDK Developers
I know collapsible banner at session by admob.
I hope to use collapsible banner.
But I can not find how to set parameter for collapsible banner.
Please tell me how to use collapsible banner.

This is my code at swift in iOS App.
I use AdaptiveBanner.
AdSize is GADAdSizeBanner.

admobView = GADBannerView()
admobView = GADBannerView(adSize:GADAdSizeBanner)
admobView.adUnitID = BannerID
admobView.rootViewController = self
let safeArea = self.view.safeAreaInsets.bottom
let frame = { () -> CGRect in
  return view.frame.inset(by: view.safeAreaInsets)
}()
let viewWidth = frame.size.width
admobView.adSize = GADCurrentOrientationAnchoredAdaptiveBannerAdSizeWithWidth(viewWidth)
admobView.frame.origin = CGPoint(x:0, y:self.view.frame.size.height - safeArea - admobView.frame.height)
admobView.load(GADRequest())

Mobile Ads SDK Forum Advisor

unread,
Aug 7, 2023, 6:00:53 AM8/7/23
to google-adm...@googlegroups.com
Hello,

Welcome to Mobile Ads SDK Support team. Thank you for reaching out to us.

Based on our documentation (https://developers.google.com/admob/ios/banner), it appears that we do not have official support this Collapsible Banner functionality. However, this might still be possible with your own code implementation. On doing so, kindly take note that you need to ensure that you're following the recommended banner implementations (https://support.google.com/admob/answer/6275335?hl=en&ref_topic=2936214) and avoid the Discourage banner implementations (https://support.google.com/admob/answer/6275345?hl=en&ref_topic=2936214). You may also try to reach out to other related forums, like Stack Overflow or Github, for further assistance on this.

 
This message is in relation to case "ref:_00D1U1174p._5004Q2nbpbo:ref"

Thanks,
 
Google Logo Mobile Ads SDK Team


Reply all
Reply to author
Forward
0 new messages