commit | author | age
|
96fe76
|
1 |
// |
L |
2 |
// GADCustomEventInterstitial.h |
|
3 |
// Google Mobile Ads SDK |
|
4 |
// |
|
5 |
// Copyright 2012 Google LLC. All rights reserved. |
|
6 |
// |
|
7 |
|
|
8 |
#import <GoogleMobileAds/GADCustomEventInterstitialDelegate.h> |
|
9 |
#import <GoogleMobileAds/GADCustomEventRequest.h> |
|
10 |
#import <UIKit/UIKit.h> |
|
11 |
|
|
12 |
/// The interstitial custom event protocol. Your interstitial custom event handler must implement |
|
13 |
/// this protocol. |
|
14 |
GAD_DEPRECATED_MSG_ATTRIBUTE("Use GADMediationInterstitialAd and GADMediationAdapter instead.") |
|
15 |
@protocol GADCustomEventInterstitial <NSObject> |
|
16 |
|
|
17 |
/// Inform |delegate| with the custom event execution results to ensure mediation behaves correctly. |
|
18 |
/// |
|
19 |
/// In your class, define the -delegate and -setDelegate: methods or use "@synthesize delegate". The |
|
20 |
/// Google Mobile Ads SDK sets this property on instances of your class. |
|
21 |
@property(nonatomic, weak, nullable) id<GADCustomEventInterstitialDelegate> delegate; |
|
22 |
|
|
23 |
/// Returns an initialized custom event interstitial. |
|
24 |
- (nonnull instancetype)init; |
|
25 |
|
|
26 |
/// Called by mediation when your custom event is scheduled to be executed. Your implementation |
|
27 |
/// should start retrieving the interstitial ad. Report execution results to the delegate. You must |
|
28 |
/// wait until -presentFromRootViewController is called before displaying the interstitial ad. |
|
29 |
/// |
|
30 |
/// @param serverParameter Parameter configured in the mediation UI. |
|
31 |
/// @param serverLabel Label configured in the mediation UI. |
|
32 |
/// @param request Contains ad request information. |
|
33 |
- (void)requestInterstitialAdWithParameter:(nullable NSString *)serverParameter |
|
34 |
label:(nullable NSString *)serverLabel |
|
35 |
request:(nonnull GADCustomEventRequest *)request; |
|
36 |
|
|
37 |
/// Present the interstitial ad as a modal view using the provided view controller. Called only |
|
38 |
/// after your class calls -customEventInterstitialDidReceiveAd: on its custom event delegate. |
|
39 |
- (void)presentFromRootViewController:(nonnull UIViewController *)rootViewController; |
|
40 |
|
|
41 |
@end |