GoogleMobileAds Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
Rendered banner ad. Provides a single subview to add to the banner view’s view hierarchy.
-
Declaration
Swift
var view: UIView { get }
Objective-C
@property (nonatomic, readonly, nonnull) UIView *view;
-
Tells the ad to resize the banner. Implement if banner content is resizable.
Declaration
Swift
optional func changeSize(to adSize: AdSize)
Objective-C
- (void)changeAdSizeTo:(GADAdSize)adSize;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-20 UTC.
[null,null,["Last updated 2025-08-20 UTC."],[],["The `GADMediationBannerAd` protocol defines a rendered banner ad with a single subview. Key features include: a `view` property (read-only UIView) representing the banner ad view, and an optional `changeAdSizeTo:` method. This method allows the banner ad to resize itself when needed, specifically if the banner's content is resizable. The protocol is available in both Swift and Objective-C.\n"],null,[]]