To discuss and provide feedback on our products, join the official AdMob Discord channel in the Google Advertising and Measurement Community server.

GoogleMobileAds Framework Reference

  • GAMBannerAdLoaderDelegate is a protocol for the delegate of a GADAdLoader object to receive GAMBannerViews.

  • 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;

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.