AI-generated Key Takeaways
-
GADAdSizeDelegate is a protocol that notifies when a GADBannerView's ad content changes size.
-
This protocol allows other views affected by the banner size change to adjust.
-
The
adView:willChangeAdSizeTo:method is called before the ad view changes to the new size.
GADAdSizeDelegate
@protocol GADAdSizeDelegate <NSObject>The class implementing this protocol will be notified when the GADBannerView’s ad content changes size. Any views that may be affected by the banner size change will have time to adjust.
-
Called before the ad view changes to the new size.
Declaration
Swift
func adView(_ bannerView: GADBannerView, willChangeAdSizeTo size: AdSize)Objective-C
- (void)adView:(nonnull GADBannerView *)bannerView willChangeAdSizeTo:(GADAdSize)size;