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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-20 UTC."],[[["\u003cp\u003e\u003ccode\u003eGADMediationBannerAd\u003c/code\u003e protocol represents a rendered banner ad with a single subview for integration into the view hierarchy.\u003c/p\u003e\n"],["\u003cp\u003eIt provides a \u003ccode\u003eview\u003c/code\u003e property to access the banner ad's view for display.\u003c/p\u003e\n"],["\u003cp\u003eIt offers an optional \u003ccode\u003echangeAdSizeTo:\u003c/code\u003e method to resize the banner, allowing for adaptable banner content.\u003c/p\u003e\n"]]],[],null,["# GoogleMobileAds Framework Reference\n\nGADMediationBannerAd\n====================\n\n @protocol GADMediationBannerAd \u003c../Protocols.html#/c:objc(pl)GADMediationAd\u003e\n\nRendered banner ad. Provides a single subview to add to the banner view's view hierarchy.\n- `\n ``\n ``\n `\n\n ### [view](#/c:objc(pl)GADMediationBannerAd(py)view)\n\n `\n ` \n The banner ad view. \n\n #### Declaration\n\n Swift \n\n var view: UIView { get }\n\n Objective-C \n\n @property (nonatomic, readonly, nonnull) UIView *view;\n\n- `\n ``\n ``\n `\n\n ### [-changeAdSizeTo:](#/c:objc(pl)GADMediationBannerAd(im)changeAdSizeTo:)\n\n `\n ` \n Tells the ad to resize the banner. Implement if banner content is resizable. \n\n #### Declaration\n\n Swift \n\n optional func changeSize(to adSize: AdSize)\n\n Objective-C \n\n - (void)changeAdSizeTo:(../Structs/GADAdSize.html)adSize;"]]