// // GADCustomEventInterstitialDelegate.h // Google Mobile Ads SDK // // Copyright 2012 Google LLC. All rights reserved. // #import #import @protocol GADCustomEventInterstitial; /// 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. GAD_DEPRECATED_MSG_ATTRIBUTE("Use GADMediationInterstitialAdEventDelegate instead.") @protocol GADCustomEventInterstitialDelegate /// Your Custom Event object must call this when it receives or creates an interstitial ad. - (void)customEventInterstitialDidReceiveAd:(nonnull id)customEvent; /// 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. - (void)customEventInterstitial:(nonnull id)customEvent didFailAd:(nullable NSError *)error; /// 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. - (void)customEventInterstitialWasClicked:(nonnull id)customEvent; // When you call any of the following methods, the call will be propagated back to the // GADInterstitialDelegate that you implemented and passed to GADInterstitial. /// Your Custom Event should call this when the interstitial is being displayed. - (void)customEventInterstitialWillPresent:(nonnull id)customEvent; /// Your Custom Event should call this when the interstitial is about to be dismissed. - (void)customEventInterstitialWillDismiss:(nonnull id)customEvent; /// Your Custom Event should call this when the interstitial has been dismissed. - (void)customEventInterstitialDidDismiss:(nonnull id)customEvent; #pragma mark Deprecated /// Deprecated. Use customEventInterstitialDidReceiveAd:. - (void)customEventInterstitial:(nonnull id)customEvent didReceiveAd:(nonnull NSObject *)ad GAD_DEPRECATED_MSG_ATTRIBUTE("Use customEventInterstitialDidReceiveAd:."); /// Deprecated. No replacement. - (void)customEventInterstitialWillLeaveApplication: (nonnull id)customEvent GAD_DEPRECATED_MSG_ATTRIBUTE("Deprecated. No replacement."); @end