AI-generated Key Takeaways
- 
          GADCustomEventInterstitialDelegateis deprecated and should be replaced withGADMediationInterstitialAdEventDelegate.
- 
          Custom event objects must call customEventInterstitialDidReceiveAd:upon successful ad reception or creation, orcustomEventInterstitial:didFailAd:if an ad fails.
- 
          Failure to call the appropriate method after a request can lead to a timeout and the SDK moving to the next ad network. 
- 
          The delegate includes methods to notify the SDK when an interstitial is clicked, will present, will dismiss, or has dismissed. 
- 
          Several methods within the delegate, including customEventInterstitial:didReceiveAd:andcustomEventInterstitialWillLeaveApplication:, are deprecated.
GADCustomEventInterstitialDelegate
Deprecated
Use GADMediationInterstitialAdEventDelegate instead.
@protocol GADCustomEventInterstitialDelegate <NSObject>Call back to this delegate in your custom event. You must call customEventInterstitialDidReceiveAd: when there is an ad to show, or customEventInterstitial:didFailAd: when there is no ad to show. Otherwise, if enough time passed (several seconds) after the SDK called the requestInterstitialAdWithParameter: method of your custom event, the mediation SDK will consider the request timed out, and move on to the next ad network.
- 
                  
                  Deprecated Use GADMediationInterstitialAdEventDelegate instead. Your Custom Event object must call this when it receives or creates an interstitial ad. DeclarationSwift func customEventInterstitialDidReceiveAd(_ customEvent: any GADCustomEventInterstitial)Objective-C - (void)customEventInterstitialDidReceiveAd: (nonnull id<GADCustomEventInterstitial>)customEvent;
- 
                  
                  Deprecated Use GADMediationInterstitialAdEventDelegate instead. Your Custom Event object must call this when it fails to receive or create the ad. Pass along any error object sent from the ad network’s SDK, or an NSError describing the error. Pass nil if not available. DeclarationSwift func customEventInterstitial(_ customEvent: any GADCustomEventInterstitial, didFailAd error: (any Error)?)Objective-C - (void)customEventInterstitial: (nonnull id<GADCustomEventInterstitial>)customEvent didFailAd:(nullable NSError *)error;
- 
                  
                  Deprecated Use GADMediationInterstitialAdEventDelegate instead. Your Custom Event object should call this when the user touches or “clicks” the ad to initiate an action. When the SDK receives this callback, it reports the click back to the mediation server. DeclarationSwift func customEventInterstitialWasClicked(_ customEvent: any GADCustomEventInterstitial)Objective-C - (void)customEventInterstitialWasClicked: (nonnull id<GADCustomEventInterstitial>)customEvent;
- 
                  
                  Deprecated Use GADMediationInterstitialAdEventDelegate instead. Your Custom Event should call this when the interstitial is being displayed. DeclarationSwift func customEventInterstitialWillPresent(_ customEvent: any GADCustomEventInterstitial)Objective-C - (void)customEventInterstitialWillPresent: (nonnull id<GADCustomEventInterstitial>)customEvent;
- 
                  
                  Deprecated Use GADMediationInterstitialAdEventDelegate instead. Your Custom Event should call this when the interstitial is about to be dismissed. DeclarationSwift func customEventInterstitialWillDismiss(_ customEvent: any GADCustomEventInterstitial)Objective-C - (void)customEventInterstitialWillDismiss: (nonnull id<GADCustomEventInterstitial>)customEvent;
- 
                  
                  Deprecated Use GADMediationInterstitialAdEventDelegate instead. Your Custom Event should call this when the interstitial has been dismissed. DeclarationSwift func customEventInterstitialDidDismiss(_ customEvent: any GADCustomEventInterstitial)Objective-C - (void)customEventInterstitialDidDismiss: (nonnull id<GADCustomEventInterstitial>)customEvent;
- 
                  
                  Deprecated Use GADMediationInterstitialAdEventDelegate instead. Deprecated. Use customEventInterstitialDidReceiveAd:. DeclarationSwift func customEventInterstitial(_ customEvent: any GADCustomEventInterstitial, didReceiveAd ad: NSObject)Objective-C - (void)customEventInterstitial: (nonnull id<GADCustomEventInterstitial>)customEvent didReceiveAd:(nonnull NSObject *)ad;
- 
                  
                  Deprecated Use GADMediationInterstitialAdEventDelegate instead. Deprecated. No replacement. DeclarationSwift func customEventInterstitialWillLeaveApplication(_ customEvent: any GADCustomEventInterstitial)Objective-C - (void)customEventInterstitialWillLeaveApplication: (nonnull id<GADCustomEventInterstitial>)customEvent;