/// Protocol for ads that present full screen content. @protocolGADFullScreenPresentingAd <NSObject>
/// Delegate object that receives full screen content messages. @property(nonatomic, weak, nullable) id<GADFullScreenContentDelegate> fullScreenContentDelegate;
@end
/// 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. @protocolGADFullScreenContentDelegate <NSObject>
@optional
/// Tells the delegate that an impression has been recorded for the ad. - (void)adDidRecordImpression:(nonnullid<GADFullScreenPresentingAd>)ad;
/// Tells the delegate that the ad failed to present full screen content. - (void)ad:(nonnullid<GADFullScreenPresentingAd>)ad didFailToPresentFullScreenContentWithError:(nonnullNSError *)error;
/// Tells the delegate that the ad presented full screen content. - (void)adDidPresentFullScreenContent:(nonnullid<GADFullScreenPresentingAd>)ad;
/// Tells the delegate that the ad dismissed full screen content. - (void)adDidDismissFullScreenContent:(nonnullid<GADFullScreenPresentingAd>)ad;
@end
@classGADInterstitialAd;
/// A block to be executed when the ad request operation completes. On success, /// interstitialAd is non-nil and |error| is nil. On failure, interstitialAd is nil /// and |error| is non-nil. typedefvoid (^GADInterstitialAdLoadCompletionHandler)(GADInterstitialAd *_Nullable interstitialAd, NSError *_Nullable error);
/// An interstitial ad. This is a full-screen advertisement shown at natural transition points in /// your application such as between game levels or news stories. See /// https://developers.google.com/admob/ios/interstitial to get started. @interfaceGADInterstitialAd : NSObject <GADFullScreenPresentingAd>
/// The ad unit ID. @property(nonatomic, readonly, nonnull) NSString *adUnitID;
/// Information about the ad response that returned the ad. @property(nonatomic, readonly, nonnull) GADResponseInfo *responseInfo;
/// Delegate for handling full screen content messages. @property(nonatomic, weak, nullable) id<GADFullScreenContentDelegate> fullScreenContentDelegate;
/// Loads an interstitial ad. /// /// @param adUnitID An ad unit ID created in the AdMob or Ad Manager UI. /// @param request An ad request object. If nil, a default ad request object is used. /// @param completionHandler A handler to execute when the load operation finishes or times out. + (void)loadWithAdUnitID:(nonnullNSString *)adUnitID request:(nullable GADRequest *)request completionHandler:(nonnull GADInterstitialAdLoadCompletionHandler)completionHandler;
/// Returns whether the interstitial ad can be presented from the provided root view /// controller. Sets the error out parameter if the ad can't be presented. Must be called on the /// main thread. - (BOOL)canPresentFromRootViewController:(nonnullUIViewController *)rootViewController error:(NSError *_Nullable __autoreleasing *_Nullable)error;
/// Presents the interstitial ad. Must be called on the main thread. /// /// @param rootViewController A view controller to present the ad. - (void)presentFromRootViewController:(nonnullUIViewController *)rootViewController;