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: GADAdLoader) -> [NSValue]
Objective-C
- (nonnull NSArray<NSValue *> *)validBannerSizesForAdLoader:
(nonnull GADAdLoader *)adLoader;
-
Tells the delegate that a Google Ad Manager banner ad was received.
Declaration
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 2021-02-23 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 2021-02-23 UTC."],[[["`GAMBannerAdLoaderDelegate` helps in receiving `GAMBannerViews` when using a `GADAdLoader`."],["This delegate protocol requires you to specify the valid banner ad sizes that should be requested."],["Upon successfully receiving a Google Ad Manager banner ad, the delegate is notified through the `adLoader:didReceiveGAMBannerView:` method."]]],[]]