AI-generated Key Takeaways
-
GADMediationBannerAd is a protocol for rendered banner ads that provides a single subview to add to a banner view's hierarchy.
-
The
viewproperty provides access to the banner ad view. -
The
-changeAdSizeTo:method tells the ad to resize the banner and should be implemented if the banner content is resizable.
GADMediationBannerAd
@protocol GADMediationBannerAd <GADMediationAd>Rendered banner ad. Provides a single subview to add to the banner view’s view hierarchy.
-
The banner ad view.
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;