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.
[[["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\u003eGAMBannerAdLoaderDelegate\u003c/code\u003e helps in receiving \u003ccode\u003eGAMBannerViews\u003c/code\u003e when using a \u003ccode\u003eGADAdLoader\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThis delegate protocol requires you to specify the valid banner ad sizes that should be requested.\u003c/p\u003e\n"],["\u003cp\u003eUpon successfully receiving a Google Ad Manager banner ad, the delegate is notified through the \u003ccode\u003eadLoader:didReceiveGAMBannerView:\u003c/code\u003e method.\u003c/p\u003e\n"]]],["The `GAMBannerAdLoaderDelegate` protocol requires its delegate to receive `GAMBannerViews`. It specifies two key actions: First, the delegate must define `validBannerSizesForAdLoader:`, which determines the acceptable banner ad sizes for the request. Second, the delegate must implement `adLoader:didReceiveGAMBannerView:`, a method that is invoked when a Google Ad Manager banner ad is received, providing the loaded `GAMBannerView` and the related `AdLoader` object.\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;"]]