AI-generated Key Takeaways
-
GAMInterstitialAd
is a Google Ad Manager interstitial ad displayed at natural transition points in an application. -
The
appEventDelegate
is an optional delegate that receives notifications when creatives send app events. -
Interstitial ads can be loaded using the
loadWithAdManagerAdUnitID:request:completionHandler:
class method by providing an ad unit ID, an optional ad request object, and a completion handler.
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;