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

  • GADCustomNativeAdLoaderDelegate is a protocol implemented by a GADAdLoader object's delegate to receive GADCustomNativeAd ads.

  • The customNativeAdFormatIDsForAdLoader: method asks the delegate for an array of custom native ad format ID strings when requesting an ad.

  • The adLoader:didReceiveCustomNativeAd: method tells the delegate that a custom native ad was received.

GADCustomNativeAdLoaderDelegate

@protocol GADCustomNativeAdLoaderDelegate <GADAdLoaderDelegate>

The delegate of a GADAdLoader object implements this protocol to receive GADCustomNativeAd ads.

  • Called when requesting an ad. Asks the delegate for an array of custom native ad format ID strings.

    Declaration

    Swift

    func customNativeAdFormatIDs(for adLoader: GADAdLoader) -> [String]

    Objective-C

    - (nonnull NSArray<NSString *> *)customNativeAdFormatIDsForAdLoader:
     (nonnull GADAdLoader *)adLoader;
  • Tells the delegate that a custom native ad was received.

    Declaration

    Swift

    func adLoader(_ adLoader: GADAdLoader, didReceive customNativeAd: CustomNativeAd)

    Objective-C

    - (void)adLoader:(nonnull GADAdLoader *)adLoader
     didReceiveCustomNativeAd:(nonnull GADCustomNativeAd *)customNativeAd;

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.