GoogleMobileAds Framework Reference

  • GADFullScreenContentDelegate provides methods to receive notifications about the presentation and dismissal of full screen content, such as ads or ad interactions.

  • This delegate allows you to control application behavior during full screen content presentation, such as pausing animations or time-sensitive interactions.

  • Key delegate methods include signals for impression and click recording, full screen presentation success or failure, and the start and end of full screen content display.

  • It is important to note that the adDidPresentFullScreenContent: method is unavailable and developers should instead use adWillPresentFullScreenContent:.

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:

  1. A full screen ad is presented.
  2. 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;