@interface GADAppOpenAd : NSObject <GADFullScreenPresentingAd>
An app open ad. Used to monetize app load screens.
Loads an app open ad.
class func load(withAdUnitID adUnitID: String, request: GADRequest?, orientation: UIInterfaceOrientation) async throws -> GADAppOpenAd
An ad unit ID created in the AdMob or Ad Manager UI.
An ad request object. If nil, a default ad request object is used.
The interface orientation that the ad will be presented in.
A handler to execute when the load operation finishes or times out.
Optional delegate object that receives notifications about presentation and dismissal of full screen content from this ad. Full screen content covers your application’s content. The delegate may want to pause animations and time sensitive interactions. Set this delegate before presenting the ad.
Returns whether the app open ad can be presented from the provided root view controller. Sets the error out parameter if the app open ad can’t be presented. Must be called on the main thread.
func canPresent(fromRootViewController rootViewController: UIViewController) throws
- (BOOL)canPresentFromRootViewController: (nonnull UIViewController *)rootViewController error:(NSError *_Nullable *_Nullable)error;
Presents the app open ad with the provided view controller. Must be called on the main thread.
func present(fromRootViewController rootViewController: UIViewController)
- (void)presentFromRootViewController: (nonnull UIViewController *)rootViewController;