GADCustomEventNativeAdDelegate
@protocol GADCustomEventNativeAdDelegate <NSObject>
The delegate of the GADCustomEventNativeAd object must adopt the GADCustomEventNativeAdDelegate protocol. Methods in this protocol are used for native ad’s custom event communication with the Google Mobile Ads SDK.
-
Tells the delegate that the custom event ad request succeeded and loaded a native ad.
Declaration
Objective-C
- (void)customEventNativeAd: (nonnull id<GADCustomEventNativeAd>)customEventNativeAd didReceiveMediatedNativeAd: (nonnull id<GADMediatedNativeAd>)mediatedNativeAd;
-
Tells the delegate that the custom event ad request failed.
Declaration
Objective-C
- (void)customEventNativeAd: (nonnull id<GADCustomEventNativeAd>)customEventNativeAd didFailToLoadWithError:(nonnull NSError *)error;
-
Tells the delegate that the custom event ad request succeeded and loaded a unified native ad.
Declaration
Objective-C
- (void)customEventNativeAd: (nonnull id<GADCustomEventNativeAd>)customEventNativeAd didReceiveMediatedUnifiedNativeAd: (nonnull id<GADMediatedUnifiedNativeAd>)mediatedUnifiedNativeAd;