GoogleMobileAds Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
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-08-20 UTC.
[null,null,["Last updated 2025-08-20 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eGADCustomNativeAdLoaderDelegate\u003c/code\u003e protocol enables receiving \u003ccode\u003eGADCustomNativeAd\u003c/code\u003e objects when using a \u003ccode\u003eGADAdLoader\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt requires implementing a method to provide custom native ad format IDs to the ad loader.\u003c/p\u003e\n"],["\u003cp\u003eUpon successfully receiving an ad, the delegate is notified through the \u003ccode\u003eadLoader:didReceiveCustomNativeAd:\u003c/code\u003e method.\u003c/p\u003e\n"]]],[],null,["# GoogleMobileAds Framework Reference\n\nGADCustomNativeAdLoaderDelegate\n===============================\n\n @protocol GADCustomNativeAdLoaderDelegate \u003c../Protocols/GADAdLoaderDelegate.html\u003e\n\nThe delegate of a GADAdLoader object implements this protocol to receive\nGADCustomNativeAd ads.\n- `\n ``\n ``\n `\n\n ### [-customNativeAdFormatIDsForAdLoader:](#/c:objc(pl)GADCustomNativeAdLoaderDelegate(im)customNativeAdFormatIDsForAdLoader:)\n\n `\n ` \n Called when requesting an ad. Asks the delegate for an array of custom native ad format ID\n strings. \n\n #### Declaration\n\n Swift \n\n func customNativeAdFormatIDs(for adLoader: ../Classes/GADAdLoader.html) -\u003e [String]\n\n Objective-C \n\n - (nonnull NSArray\u003cNSString *\u003e *)customNativeAdFormatIDsForAdLoader:\n (nonnull ../Classes/GADAdLoader.html *)adLoader;\n\n- `\n ``\n ``\n `\n\n ### [-adLoader:didReceiveCustomNativeAd:](#/c:objc(pl)GADCustomNativeAdLoaderDelegate(im)adLoader:didReceiveCustomNativeAd:)\n\n `\n ` \n Tells the delegate that a custom native ad was received. \n\n #### Declaration\n\n Swift \n\n func adLoader(_ adLoader: ../Classes/GADAdLoader.html, didReceive customNativeAd: CustomNativeAd)\n\n Objective-C \n\n - (void)adLoader:(nonnull ../Classes/GADAdLoader.html *)adLoader\n didReceiveCustomNativeAd:(nonnull ../Classes/GADCustomNativeAd.html *)customNativeAd;"]]