# GoogleMobileAds Framework Reference

# 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.
- `


  ### [-customEventInterstitialDidReceiveAd:](https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Protocols/GADCustomEventInterstitialDelegate#/c:objc(pl)GADCustomEventInterstitialDelegate(im)customEventInterstitialDidReceiveAd:)


  ` Deprecated

  Use GADMediationInterstitialAdEventDelegate instead.
  Your Custom Event object must call this when it receives or creates an interstitial ad.

  #### Declaration

  Swift

      func customEventInterstitialDidReceiveAd(_ customEvent: any https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Protocols/GADCustomEventInterstitial.html)

  Objective-C

      - (void)customEventInterstitialDidReceiveAd:
          (nonnull id<https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Protocols/GADCustomEventInterstitial.html>)customEvent;

- `


  ### [-customEventInterstitial:didFailAd:](https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Protocols/GADCustomEventInterstitialDelegate#/c:objc(pl)GADCustomEventInterstitialDelegate(im)customEventInterstitial:didFailAd:)


  ` 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.

  #### Declaration

  Swift

      func customEventInterstitial(_ customEvent: any https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Protocols/GADCustomEventInterstitial.html, didFailAd error: (any Error)?)

  Objective-C

      - (void)customEventInterstitial:
                  (nonnull id<https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Protocols/GADCustomEventInterstitial.html>)customEvent
                            didFailAd:(nullable NSError *)error;

- `


  ### [-customEventInterstitialWasClicked:](https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Protocols/GADCustomEventInterstitialDelegate#/c:objc(pl)GADCustomEventInterstitialDelegate(im)customEventInterstitialWasClicked:)


  ` 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.

  #### Declaration

  Swift

      func customEventInterstitialWasClicked(_ customEvent: any https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Protocols/GADCustomEventInterstitial.html)

  Objective-C

      - (void)customEventInterstitialWasClicked:
          (nonnull id<https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Protocols/GADCustomEventInterstitial.html>)customEvent;

- `


  ### [-customEventInterstitialWillPresent:](https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Protocols/GADCustomEventInterstitialDelegate#/c:objc(pl)GADCustomEventInterstitialDelegate(im)customEventInterstitialWillPresent:)


  ` Deprecated

  Use GADMediationInterstitialAdEventDelegate instead.
  Your Custom Event should call this when the interstitial is being displayed.

  #### Declaration

  Swift

      func customEventInterstitialWillPresent(_ customEvent: any https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Protocols/GADCustomEventInterstitial.html)

  Objective-C

      - (void)customEventInterstitialWillPresent:
          (nonnull id<https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Protocols/GADCustomEventInterstitial.html>)customEvent;

- `


  ### [-customEventInterstitialWillDismiss:](https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Protocols/GADCustomEventInterstitialDelegate#/c:objc(pl)GADCustomEventInterstitialDelegate(im)customEventInterstitialWillDismiss:)


  ` Deprecated

  Use GADMediationInterstitialAdEventDelegate instead.
  Your Custom Event should call this when the interstitial is about to be dismissed.

  #### Declaration

  Swift

      func customEventInterstitialWillDismiss(_ customEvent: any https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Protocols/GADCustomEventInterstitial.html)

  Objective-C

      - (void)customEventInterstitialWillDismiss:
          (nonnull id<https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Protocols/GADCustomEventInterstitial.html>)customEvent;

- `


  ### [-customEventInterstitialDidDismiss:](https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Protocols/GADCustomEventInterstitialDelegate#/c:objc(pl)GADCustomEventInterstitialDelegate(im)customEventInterstitialDidDismiss:)


  ` Deprecated

  Use GADMediationInterstitialAdEventDelegate instead.
  Your Custom Event should call this when the interstitial has been dismissed.

  #### Declaration

  Swift

      func customEventInterstitialDidDismiss(_ customEvent: any https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Protocols/GADCustomEventInterstitial.html)

  Objective-C

      - (void)customEventInterstitialDidDismiss:
          (nonnull id<https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Protocols/GADCustomEventInterstitial.html>)customEvent;

[## Deprecated](https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Protocols/GADCustomEventInterstitialDelegate#/Deprecated)

- `


  ### [-customEventInterstitial:didReceiveAd:](https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Protocols/GADCustomEventInterstitialDelegate#/c:objc(pl)GADCustomEventInterstitialDelegate(im)customEventInterstitial:didReceiveAd:)


  ` Deprecated

  Use GADMediationInterstitialAdEventDelegate instead.
  Deprecated. Use customEventInterstitialDidReceiveAd:.

  #### Declaration

  Swift

      func customEventInterstitial(_ customEvent: any https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Protocols/GADCustomEventInterstitial.html, didReceiveAd ad: NSObject)

  Objective-C

      - (void)customEventInterstitial:
                  (nonnull id<https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Protocols/GADCustomEventInterstitial.html>)customEvent
                         didReceiveAd:(nonnull NSObject *)ad;

- `


  ### [-customEventInterstitialWillLeaveApplication:](https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Protocols/GADCustomEventInterstitialDelegate#/c:objc(pl)GADCustomEventInterstitialDelegate(im)customEventInterstitialWillLeaveApplication:)


  ` Deprecated

  Use GADMediationInterstitialAdEventDelegate instead.
  Deprecated. No replacement.

  #### Declaration

  Swift

      func customEventInterstitialWillLeaveApplication(_ customEvent: any https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Protocols/GADCustomEventInterstitial.html)

  Objective-C

      - (void)customEventInterstitialWillLeaveApplication:
          (nonnull id<https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Protocols/GADCustomEventInterstitial.html>)customEvent;