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: GADCustomNativeAd)
Objective-C
- (void)adLoader:(nonnull GADAdLoader *)adLoader didReceiveCustomNativeAd:(nonnull GADCustomNativeAd *)customNativeAd;