GADSwipeableInterstitialAdDelegate
@protocol GADSwipeableInterstitialAdDelegate <NSObject>Delegate for receiving lifecycle event messages from a GADSwipeableInterstitialAd.
-
Called when an impression is recorded for an ad.
Declaration
Swift
@MainActor optional func swipeableInterstitialAdDidRecordImpression(_ swipeableInterstitialAd: GADSwipeableInterstitialAd)Objective-C
- (void)swipeableInterstitialAdDidRecordImpression: (nonnull GADSwipeableInterstitialAd *)swipeableInterstitialAd; -
Called when a click is recorded for an ad.
Declaration
Swift
@MainActor optional func swipeableInterstitialAdDidRecordClick(_ swipeableInterstitialAd: GADSwipeableInterstitialAd)Objective-C
- (void)swipeableInterstitialAdDidRecordClick: (nonnull GADSwipeableInterstitialAd *)swipeableInterstitialAd; -
Tells the delegate that a full screen view will be presented in response to the user interacting with an ad. The delegate may want to pause animations and time sensitive interactions.
Declaration
Swift
@MainActor optional func swipeableInterstitialAdWillPresentScreen(_ swipeableInterstitialAd: GADSwipeableInterstitialAd)Objective-C
- (void)swipeableInterstitialAdWillPresentScreen: (nonnull GADSwipeableInterstitialAd *)swipeableInterstitialAd; -
Tells the delegate that a full screen view will be dismissed.
Declaration
Swift
@MainActor optional func swipeableInterstitialAdWillDismissScreen(_ swipeableInterstitialAd: GADSwipeableInterstitialAd)Objective-C
- (void)swipeableInterstitialAdWillDismissScreen: (nonnull GADSwipeableInterstitialAd *)swipeableInterstitialAd; -
Tells the delegate that a full screen view has been dismissed. The delegate should restart anything paused while handling swipeableInterstitialAdWillPresentScreen:.
Declaration
Swift
@MainActor optional func swipeableInterstitialAdDidDismissScreen(_ swipeableInterstitialAd: GADSwipeableInterstitialAd)Objective-C
- (void)swipeableInterstitialAdDidDismissScreen: (nonnull GADSwipeableInterstitialAd *)swipeableInterstitialAd;
-
Called when the SDK detects that the ad is visible and stabilized on screen, marking the start of the SDK’s internal screen hold timer.
This is an informational callback provided for debugging and alignment purposes. You are expected to manage your own screen hold timers and lifecycle monitoring to enforce the ad’s
minScreenHoldDurationproperty. There is no corresponding “end” callback.This delegate is not triggered if
minScreenHoldDurationis 0.Declaration
Swift
@MainActor optional func swipeableInterstitialAdDidStartScreenHoldTimer(_ swipeableInterstitialAd: GADSwipeableInterstitialAd)Objective-C
- (void)swipeableInterstitialAdDidStartScreenHoldTimer: (nonnull GADSwipeableInterstitialAd *)swipeableInterstitialAd;