AI-generated Key Takeaways
- 
          The GADCustomEventNativeAdprotocol is deprecated and should be replaced withGADMediationNativeAdandGADMediationAdapter.
- 
          The delegateproperty is used for receiving custom native ad load request progress and is deprecated.
- 
          The initmethod returns an initialized custom event native ad and is deprecated.
- 
          The requestNativeAdWithParameter:request:adTypes:options:rootViewController:method is called when the custom event is scheduled to be executed and is deprecated.
- 
          The handlesUserClicksmethod indicates whether the custom event handles user clicks and is deprecated.
- 
          The handlesUserImpressionsmethod indicates whether the custom event handles user impressions tracking and is deprecated.
GADCustomEventNativeAd
Deprecated
Use GADMediationNativeAd and GADMediationAdapter instead.
@protocol GADCustomEventNativeAd <NSObject>Native ad custom event protocol. Your native ad custom event handler class must conform to this protocol.
- 
                  
                  Deprecated Use GADMediationNativeAd and GADMediationAdapter instead. Delegate object used for receiving custom native ad load request progress. DeclarationSwift weak var delegate: (any GADCustomEventNativeAdDelegate)? { get set }Objective-C @property (nonatomic, weak, nullable) id<GADCustomEventNativeAdDelegate> delegate;
- 
                  
                  Deprecated Use GADMediationNativeAd and GADMediationAdapter instead. Returns an initialized custom event native ad. DeclarationSwift init()Objective-C - (nonnull instancetype)init;
- 
                  
                  Deprecated Use GADMediationNativeAd and GADMediationAdapter instead. Called when the custom event is scheduled to be executed. DeclarationSwift func request(withParameter serverParameter: String, request: CustomEventRequest, adTypes: [Any], options: [Any], rootViewController: UIViewController)Objective-C - (void)requestNativeAdWithParameter:(nonnull NSString *)serverParameter request:(nonnull GADCustomEventRequest *)request adTypes:(nonnull NSArray *)adTypes options:(nonnull NSArray *)options rootViewController: (nonnull UIViewController *)rootViewController;ParametersserverParameterA value configured in the mediation UI for the custom event. requestAd targeting information. adTypesList of requested native ad types. See GADAdLoaderAdTypes.h for available ad types. optionsAdditional options configured by the publisher for requesting a native ad. See GADNativeAdImageAdLoaderOptions.h for available image options. rootViewControllerPublisher-provided view controller. 
- 
                  
                  Deprecated Use GADMediationNativeAd and GADMediationAdapter instead. Indicates whether the custom event handles user clicks. Return YES if the custom event should handle user clicks. In this case, the Google Mobile Ads SDK doesn’t track user clicks and the custom event must notify the Google Mobile Ads SDK of clicks using +[GADMediatedNativeAdNotificationSource mediatedNativeAdDidRecordClick:]. Return NO if the custom event doesn’t handles user clicks. In this case, the Google Mobile Ads SDK tracks user clicks itself and the custom event is notified of user clicks through -[GADMediatedUnifiedNativeAd didRecordClickOnAssetWithName:view:viewController:]. DeclarationSwift func handlesUserClicks() -> BoolObjective-C - (BOOL)handlesUserClicks;
- 
                  
                  Deprecated Use GADMediationNativeAd and GADMediationAdapter instead. Indicates whether the custom event handles user impressions tracking. If this method returns YES, the Google Mobile Ads SDK will not track user impressions and the custom event must notify the Google Mobile Ads SDK of impressions using +[GADMediatedNativeAdNotificationSource mediatedNativeAdDidRecordImpression:]. If this method returns NO, the Google Mobile Ads SDK tracks user impressions and notifies the custom event of impressions using -[GADMediatedUnifiedNativeAd didRecordImpression]. DeclarationSwift func handlesUserImpressions() -> BoolObjective-C - (BOOL)handlesUserImpressions;