AI-generated Key Takeaways
- 
          The GADCustomEventNativeAdDelegateprotocol is deprecated andGADMediationNativeAdEventDelegateshould be used instead.
- 
          This protocol is for native ad's custom event communication with the Google Mobile Ads SDK. 
- 
          The customEventNativeAd:didFailToLoadWithError:method tells the delegate that the custom event ad request failed.
- 
          The customEventNativeAd:didReceiveMediatedUnifiedNativeAd:method tells the delegate that the custom event ad request succeeded and loaded a unified native ad.
GADCustomEventNativeAdDelegate
Deprecated
Use GADMediationNativeAdEventDelegate instead.
@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.
- 
                  
                  Deprecated Use GADMediationNativeAdEventDelegate instead. Tells the delegate that the custom event ad request failed. DeclarationSwift func customEventNativeAd(_ customEventNativeAd: any GADCustomEventNativeAd, didFailToLoadWithError error: any Error)Objective-C - (void)customEventNativeAd: (nonnull id<GADCustomEventNativeAd>)customEventNativeAd didFailToLoadWithError:(nonnull NSError *)error;
- 
                  
                  Deprecated Use GADMediationNativeAdEventDelegate instead. Tells the delegate that the custom event ad request succeeded and loaded a unified native ad. DeclarationSwift func customEventNativeAd(_ customEventNativeAd: any GADCustomEventNativeAd, didReceive mediatedUnifiedNativeAd: any MediatedUnifiedNativeAd)Objective-C - (void)customEventNativeAd: (nonnull id<GADCustomEventNativeAd>)customEventNativeAd didReceiveMediatedUnifiedNativeAd: (nonnull id<GADMediatedUnifiedNativeAd>)mediatedUnifiedNativeAd;