AI-generated Key Takeaways
-
GAMInterstitialAd is a full-screen advertisement typically displayed at natural transition points within 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:method, providing the ad unit ID, an optional request object, and a completion handler.
GAMInterstitialAd
@interface GAMInterstitialAd : GADInterstitialAdGoogle 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 -> AdManagerInterstitialAdObjective-C
+ (void)loadWithAdManagerAdUnitID:(nonnull NSString *)adUnitID request:(nullable GAMRequest *)request completionHandler: (nonnull GAMInterstitialAdLoadCompletionHandler) completionHandler;Parameters
adUnitIDAn ad unit ID created in the Ad Manager UI.
requestAn ad request object. If nil, a default ad request object is used.
completionHandlerA 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;