GoogleMobileAds Framework Reference
GADCustomNativeAdLoaderDelegate
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)
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-02-04 UTC.
[null,null,["Last updated 2025-02-04 UTC."],[[["The `GADCustomNativeAdLoaderDelegate` protocol enables the reception of `GADCustomNativeAd` objects."],["It requires the delegate to provide an array of custom native ad format IDs to the ad loader."],["When a custom native ad is successfully received, the delegate is notified via the `adLoader:didReceiveCustomNativeAd:` method."]]],["The `GADCustomNativeAdLoaderDelegate` protocol enables receiving custom native ads. It requires implementing two methods: `customNativeAdFormatIDsForAdLoader:` and `adLoader:didReceiveCustomNativeAd:`. The first requests an array of custom native ad format ID strings from the delegate. The second method notifies the delegate when a custom native ad, represented by the `GADCustomNativeAd` class, has been received via the `GADAdLoader` object.\n"]]