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.

  • Developers can implement delegate methods to track ad impressions and clicks, as well as handle presentation successes and failures.

  • Methods provide signals for before, during, and after the full screen content is presented and dismissed.

  • Deprecated method adDidPresentFullScreenContent is no longer supported and developers should utilize adWillPresentFullScreenContent instead.

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;