AI-generated Key Takeaways
- 
          GADCustomEventInterstitialis deprecated.
- 
          Use GADMediationInterstitialAdandGADMediationAdapterinstead ofGADCustomEventInterstitial.
- 
          The delegateproperty is used to report custom event execution results and is also deprecated.
- 
          The -initmethod is deprecated and returns an initialized custom event interstitial.
- 
          The -requestInterstitialAdWithParameter:label:request:method is called by mediation to request an interstitial ad and is deprecated.
- 
          The -presentFromRootViewController:method is used to present the interstitial ad and is deprecated.
GADCustomEventInterstitial
Deprecated
Use GADMediationInterstitialAd and GADMediationAdapter instead.
@protocol GADCustomEventInterstitial <NSObject>The interstitial custom event protocol. Your interstitial custom event handler must implement this protocol.
- 
                  
                  Deprecated Use GADMediationInterstitialAd and GADMediationAdapter instead. Inform |delegate| with the custom event execution results to ensure mediation behaves correctly. In your class, define the -delegate and -setDelegate: methods or use “@synthesize delegate”. The Google Mobile Ads SDK sets this property on instances of your class. DeclarationSwift weak var delegate: (any GADCustomEventInterstitialDelegate)? { get set }Objective-C @property (nonatomic, weak, nullable) id<GADCustomEventInterstitialDelegate> delegate;
- 
                  
                  Deprecated Use GADMediationInterstitialAd and GADMediationAdapter instead. Returns an initialized custom event interstitial. DeclarationSwift init()Objective-C - (nonnull instancetype)init;
- 
                  
                  Deprecated Use GADMediationInterstitialAd and GADMediationAdapter instead. Called by mediation when your custom event is scheduled to be executed. Your implementation should start retrieving the interstitial ad. Report execution results to the delegate. You must wait until -presentFromRootViewController is called before displaying the interstitial ad. DeclarationSwift func requestAd(withParameter serverParameter: String?, label serverLabel: String?, request: CustomEventRequest)Objective-C - (void)requestInterstitialAdWithParameter:(nullable NSString *)serverParameter label:(nullable NSString *)serverLabel request: (nonnull GADCustomEventRequest *)request;ParametersserverParameterParameter configured in the mediation UI. serverLabelLabel configured in the mediation UI. requestContains ad request information. 
- 
                  
                  Deprecated Use GADMediationInterstitialAd and GADMediationAdapter instead. Present the interstitial ad as a modal view using the provided view controller. Called only after your class calls -customEventInterstitialDidReceiveAd: on its custom event delegate. DeclarationSwift func present(fromRootViewController rootViewController: UIViewController)Objective-C - (void)presentFromRootViewController: (nonnull UIViewController *)rootViewController;