AI-generated Key Takeaways
-
GAMInterstitialAd
displays full-screen advertisements at natural transition points within your application. -
It can be loaded using an Ad Manager ad unit ID and an optional
GAMRequest
object. -
An optional delegate,
appEventDelegate
, can be set to receive notifications when creatives send app events. -
The
loadWithAdUnitID:request:completionHandler:
method is unavailable and undocumented.
GAMInterstitialAd
@interface GAMInterstitialAd : GADInterstitialAd
Google Ad Manager interstitial ad, a full-screen advertisement shown at natural transition points in your application such as between game levels or news stories.
-
Optional delegate that is notified when creatives send app events.
Declaration
Swift
weak var appEventDelegate: (any AppEventDelegate)? { get set }
Objective-C
@property (nonatomic, weak, nullable) id<GADAppEventDelegate> appEventDelegate;
-
Loads an interstitial ad.
Declaration
Swift
class func load(with adUnitID: String, request: AdManagerRequest?) async throws -> AdManagerInterstitialAd
Objective-C
+ (void)loadWithAdManagerAdUnitID:(nonnull NSString *)adUnitID request:(nullable GAMRequest *)request completionHandler: (nonnull GAMInterstitialAdLoadCompletionHandler) completionHandler;
Parameters
adUnitID
An ad unit ID created in the Ad Manager UI.
request
An ad request object. If nil, a default ad request object is used.
completionHandler
A handler to execute when the load operation finishes or times out.
-
Unavailable
Undocumented
Declaration
Objective-C
+ (void)loadWithAdUnitID:(nonnull NSString *)adUnitID request:(nullable GADRequest *)request completionHandler: (nonnull GADInterstitialAdLoadCompletionHandler)completionHandler;