GADFullScreenContentDelegate
@protocol GADFullScreenContentDelegate <NSObject>
Delegate methods for receiving notifications about presentation and dismissal of full screen content. Full screen content covers your application’s content. The delegate may want to pause animations or time sensitive interactions. Full screen content may be presented in the following cases:
- A full screen ad is presented.
- An ad interaction opens full screen content.
-
Tells the delegate that an impression has been recorded for the ad.
Declaration
Swift
@MainActor optional func adDidRecordImpression(_ ad: any FullScreenPresentingAd)
Objective-C
- (void)adDidRecordImpression:(nonnull id<GADFullScreenPresentingAd>)ad;
-
Tells the delegate that a click has been recorded for the ad.
Declaration
Swift
@MainActor optional func adDidRecordClick(_ ad: any FullScreenPresentingAd)
Objective-C
- (void)adDidRecordClick:(nonnull id<GADFullScreenPresentingAd>)ad;
-
Tells the delegate that the ad failed to present full screen content.
Declaration
Swift
@MainActor optional func ad(_ ad: any FullScreenPresentingAd, didFailToPresentFullScreenContentWithError error: any Error)
Objective-C
- (void)ad:(nonnull id<GADFullScreenPresentingAd>)ad didFailToPresentFullScreenContentWithError:(nonnull NSError *)error;
-
Tells the delegate that the ad will present full screen content.
Declaration
Swift
@MainActor optional func adWillPresentFullScreenContent(_ ad: any FullScreenPresentingAd)
Objective-C
- (void)adWillPresentFullScreenContent: (nonnull id<GADFullScreenPresentingAd>)ad;
-
Tells the delegate that the ad will dismiss full screen content.
Declaration
Swift
@MainActor optional func adWillDismissFullScreenContent(_ ad: any FullScreenPresentingAd)
Objective-C
- (void)adWillDismissFullScreenContent: (nonnull id<GADFullScreenPresentingAd>)ad;
-
Tells the delegate that the ad dismissed full screen content.
Declaration
Swift
@MainActor optional func adDidDismissFullScreenContent(_ ad: any FullScreenPresentingAd)
Objective-C
- (void)adDidDismissFullScreenContent:(nonnull id<GADFullScreenPresentingAd>)ad;
-
Unavailable
Unsupported. Delegates should implement adWillPresentFullScreenContent: instead.
Declaration
Objective-C
- (void)adDidPresentFullScreenContent:(nonnull id<GADFullScreenPresentingAd>)ad;