GADCustomEventInterstitialDelegate
@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.
-
Your Custom Event object must call this when it receives or creates an interstitial ad.
Declaration
Objective-C
- (void)customEventInterstitialDidReceiveAd: (nonnull id<GADCustomEventInterstitial>)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.
Declaration
Objective-C
- (void)customEventInterstitial: (nonnull id<GADCustomEventInterstitial>)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.
Declaration
Objective-C
- (void)customEventInterstitialWasClicked: (nonnull id<GADCustomEventInterstitial>)customEvent;
-
Your Custom Event should call this when the interstitial is being displayed.
Declaration
Objective-C
- (void)customEventInterstitialWillPresent: (nonnull id<GADCustomEventInterstitial>)customEvent;
-
Your Custom Event should call this when the interstitial is about to be dismissed.
Declaration
Objective-C
- (void)customEventInterstitialWillDismiss: (nonnull id<GADCustomEventInterstitial>)customEvent;
-
Your Custom Event should call this when the interstitial has been dismissed.
Declaration
Objective-C
- (void)customEventInterstitialDidDismiss: (nonnull id<GADCustomEventInterstitial>)customEvent;
-
Deprecated. Use customEventInterstitialDidReceiveAd:.
Declaration
Objective-C
- (void)customEventInterstitial: (nonnull id<GADCustomEventInterstitial>)customEvent didReceiveAd:(nonnull NSObject *)ad;
-
Deprecated. No replacement.
Declaration
Objective-C
- (void)customEventInterstitialWillLeaveApplication: (nonnull id<GADCustomEventInterstitial>)customEvent;