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
optional func adDidRecordImpression(_ ad: any GADFullScreenPresentingAd)
Objective-C
- (void)adDidRecordImpression:(nonnull id<GADFullScreenPresentingAd>)ad;
-
Tells the delegate that a click has been recorded for the ad.
Declaration
Swift
optional func adDidRecordClick(_ ad: any GADFullScreenPresentingAd)
Objective-C
- (void)adDidRecordClick:(nonnull id<GADFullScreenPresentingAd>)ad;
-
Tells the delegate that the ad failed to present full screen content.
Declaration
Swift
optional func ad(_ ad: any GADFullScreenPresentingAd, 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
optional func adWillPresentFullScreenContent(_ ad: any GADFullScreenPresentingAd)
Objective-C
- (void)adWillPresentFullScreenContent: (nonnull id<GADFullScreenPresentingAd>)ad;
-
Tells the delegate that the ad will dismiss full screen content.
Declaration
Swift
optional func adWillDismissFullScreenContent(_ ad: any GADFullScreenPresentingAd)
Objective-C
- (void)adWillDismissFullScreenContent: (nonnull id<GADFullScreenPresentingAd>)ad;
-
Tells the delegate that the ad dismissed full screen content.
Declaration
Swift
optional func adDidDismissFullScreenContent(_ ad: any GADFullScreenPresentingAd)
Objective-C
- (void)adDidDismissFullScreenContent:(nonnull id<GADFullScreenPresentingAd>)ad;
-
Unavailable
Unsupported. Delegates should implement adWillPresentFullScreenContent: instead.
Declaration
Objective-C
- (void)adDidPresentFullScreenContent:(nonnull id<GADFullScreenPresentingAd>)ad;