commit | author | age
|
96fe76
|
1 |
// |
L |
2 |
// GAMInterstitialAd.h |
|
3 |
// Google Mobile Ads SDK |
|
4 |
// |
|
5 |
// Copyright 2020 Google LLC. All rights reserved. |
|
6 |
// |
|
7 |
|
|
8 |
#import <GoogleMobileAds/GADAppEventDelegate.h> |
|
9 |
#import <GoogleMobileAds/GADInterstitialAd.h> |
|
10 |
#import <GoogleMobileAds/GAMRequest.h> |
|
11 |
|
|
12 |
@class GAMInterstitialAd; |
|
13 |
typedef void (^GAMInterstitialAdLoadCompletionHandler)(GAMInterstitialAd *_Nullable interstitialAd, |
|
14 |
NSError *_Nullable error); |
|
15 |
|
|
16 |
/// Google Ad Manager interstitial ad, a full-screen advertisement shown at natural |
|
17 |
/// transition points in your application such as between game levels or news stories. |
|
18 |
@interface GAMInterstitialAd : GADInterstitialAd |
|
19 |
|
|
20 |
/// Optional delegate that is notified when creatives send app events. |
|
21 |
@property(nonatomic, weak, nullable) id<GADAppEventDelegate> appEventDelegate; |
|
22 |
|
|
23 |
/// Loads an interstitial ad. |
|
24 |
/// |
|
25 |
/// @param adUnitID An ad unit ID created in the Ad Manager UI. |
|
26 |
/// @param request An ad request object. If nil, a default ad request object is used. |
|
27 |
/// @param completionHandler A handler to execute when the load operation finishes or times out. |
|
28 |
+ (void)loadWithAdManagerAdUnitID:(nonnull NSString *)adUnitID |
|
29 |
request:(nullable GAMRequest *)request |
|
30 |
completionHandler:(nonnull GAMInterstitialAdLoadCompletionHandler)completionHandler; |
|
31 |
|
|
32 |
+ (void)loadWithAdUnitID:(nonnull NSString *)adUnitID |
|
33 |
request:(nullable GADRequest *)request |
|
34 |
completionHandler:(nonnull GADInterstitialAdLoadCompletionHandler)completionHandler |
|
35 |
NS_UNAVAILABLE; |
|
36 |
|
|
37 |
@end |