commit | author | age
|
96fe76
|
1 |
// |
L |
2 |
// GADCustomEventBanner.h |
|
3 |
// Google Mobile Ads SDK |
|
4 |
// |
|
5 |
// Copyright 2012 Google LLC. All rights reserved. |
|
6 |
// |
|
7 |
|
|
8 |
#import <GoogleMobileAds/GADAdSize.h> |
|
9 |
#import <GoogleMobileAds/GADCustomEventBannerDelegate.h> |
|
10 |
#import <GoogleMobileAds/GADCustomEventRequest.h> |
|
11 |
#import <UIKit/UIKit.h> |
|
12 |
|
|
13 |
/// The banner custom event protocol. Your banner custom event handler must implement this protocol. |
|
14 |
GAD_DEPRECATED_MSG_ATTRIBUTE("Use GADMediationBannerAd and GADMediationAdapter instead.") |
|
15 |
@protocol GADCustomEventBanner <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<GADCustomEventBannerDelegate> delegate; |
|
22 |
|
|
23 |
/// Returns an initialized custom event banner. |
|
24 |
- (nonnull instancetype)init; |
|
25 |
|
|
26 |
/// Called by mediation when your custom event is scheduled to be executed. Report execution results |
|
27 |
/// to the delegate. |
|
28 |
/// |
|
29 |
/// @param adSize The size of the ad as configured in the mediation UI for the mediation placement. |
|
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)requestBannerAd:(GADAdSize)adSize |
|
34 |
parameter:(nullable NSString *)serverParameter |
|
35 |
label:(nullable NSString *)serverLabel |
|
36 |
request:(nonnull GADCustomEventRequest *)request; |
|
37 |
|
|
38 |
@end |