GoogleMobileAds Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
AI-generated Key Takeaways
-
GAMBannerAdLoaderDelegate
is a protocol for the delegate of aGADAdLoader
object to receiveGAMBannerViews
. -
The
-validBannerSizesForAdLoader:
method asks the delegate which banner ad sizes should be requested. -
The
-adLoader:didReceiveGAMBannerView:
method tells the delegate that a Google Ad Manager banner ad was received.
GAMBannerAdLoaderDelegate
@protocol GAMBannerAdLoaderDelegate <GADAdLoaderDelegate>
The delegate of a GADAdLoader object must conform to this protocol to receive GAMBannerViews.
-
Asks the delegate which banner ad sizes should be requested.
Declaration
Swift
func validBannerSizes(for adLoader: AdLoader) -> [NSValue]
Objective-C
- (nonnull NSArray<NSValue *> *)validBannerSizesForAdLoader: (nonnull GADAdLoader *)adLoader;
-
Tells the delegate that a Google Ad Manager banner ad was received.
Declaration
Swift
func adLoader(_ adLoader: AdLoader, didReceive bannerView: AdManagerBannerView)
Objective-C
- (void)adLoader:(nonnull GADAdLoader *)adLoader didReceiveGAMBannerView:(nonnull GAMBannerView *)bannerView;