GoogleMobileAds Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
GAMBannerAdLoaderDelegate
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;
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."],[[["\u003cp\u003e\u003ccode\u003eGAMBannerAdLoaderDelegate\u003c/code\u003e helps in receiving \u003ccode\u003eGAMBannerViews\u003c/code\u003e using a \u003ccode\u003eGADAdLoader\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003eIt defines methods to specify the desired banner ad sizes and handle the successful reception of a \u003ccode\u003eGAMBannerView\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# GoogleMobileAds Framework Reference\n\nGAMBannerAdLoaderDelegate\n=========================\n\n @protocol GAMBannerAdLoaderDelegate \u003c../Protocols/GADAdLoaderDelegate.html\u003e\n\nThe delegate of a GADAdLoader object must conform to this protocol to receive GAMBannerViews.\n- `\n ``\n ``\n `\n\n ### [-validBannerSizesForAdLoader:](#/c:objc(pl)GAMBannerAdLoaderDelegate(im)validBannerSizesForAdLoader:)\n\n `\n ` \n Asks the delegate which banner ad sizes should be requested. \n\n #### Declaration\n\n Swift \n\n func validBannerSizes(for adLoader: AdLoader) -\u003e [NSValue]\n\n Objective-C \n\n - (nonnull NSArray\u003cNSValue *\u003e *)validBannerSizesForAdLoader:\n (nonnull ../Classes/GADAdLoader.html *)adLoader;\n\n- `\n ``\n ``\n `\n\n ### [-adLoader:didReceiveGAMBannerView:](#/c:objc(pl)GAMBannerAdLoaderDelegate(im)adLoader:didReceiveGAMBannerView:)\n\n `\n ` \n Tells the delegate that a Google Ad Manager banner ad was received. \n\n #### Declaration\n\n Swift \n\n func adLoader(_ adLoader: AdLoader, didReceive bannerView: AdManagerBannerView)\n\n Objective-C \n\n - (void)adLoader:(nonnull ../Classes/GADAdLoader.html *)adLoader\n didReceiveGAMBannerView:(nonnull ../Classes/GAMBannerView.html *)bannerView;"]]