# GoogleMobileAds Framework Reference

# GADCustomEventInterstitial

Deprecated

Use GADMediationInterstitialAd and GADMediationAdapter instead.

    @protocol GADCustomEventInterstitial <NSObject>

The interstitial custom event protocol. Your interstitial custom event handler must implement
this protocol.
- `


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


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

  #### Declaration

  Swift

      weak var delegate: (any https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Protocols/GADCustomEventInterstitialDelegate.html)? { get set }

  Objective-C

      @property (nonatomic, weak, nullable) id<https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Protocols/GADCustomEventInterstitialDelegate.html> delegate;

- `


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


  ` Deprecated

  Use GADMediationInterstitialAd and GADMediationAdapter instead.
  Returns an initialized custom event interstitial.

  #### Declaration

  Swift

      init()

  Objective-C

      - (nonnull instancetype)init;

- `


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


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

  #### Declaration

  Swift

      func requestAd(withParameter serverParameter: String?, label serverLabel: String?, request: CustomEventRequest)

  Objective-C

      - (void)requestInterstitialAdWithParameter:(nullable NSString *)serverParameter
                                           label:(nullable NSString *)serverLabel
                                         request:
                                             (nonnull https://developers.google.com/ad-manager/mobile-ads-sdk/ios/api/reference/Classes/GADCustomEventRequest.html *)request;

  #### Parameters

  |---|---|
  | ` serverParameter ` | Parameter configured in the mediation UI. |
  | ` serverLabel ` | Label configured in the mediation UI. |
  | ` request ` | Contains ad request information. |

- `


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


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

  #### Declaration

  Swift

      func present(fromRootViewController rootViewController: UIViewController)

  Objective-C

      - (void)presentFromRootViewController:
          (nonnull UIViewController *)rootViewController;