commit | author | age
|
96fe76
|
1 |
// |
L |
2 |
// GADRTBAdapter.h |
|
3 |
// Google Mobile Ads SDK |
|
4 |
// |
|
5 |
// Copyright 2018 Google LLC. All rights reserved. |
|
6 |
// |
|
7 |
|
|
8 |
#import <GoogleMobileAds/Mediation/GADMediationAdapter.h> |
|
9 |
#import <GoogleMobileAds/RTBMediation/GADRTBRequestParameters.h> |
|
10 |
#import <UIKit/UIKit.h> |
|
11 |
|
|
12 |
/// Completion handler for signal generation. Returns either signals or an error object. |
|
13 |
typedef void (^GADRTBSignalCompletionHandler)(NSString *_Nullable signals, |
|
14 |
NSError *_Nullable error); |
|
15 |
|
|
16 |
/// Adapter that provides signals to the Google Mobile Ads SDK to be included in an auction. |
|
17 |
@protocol GADRTBAdapter <GADMediationAdapter> |
|
18 |
|
|
19 |
/// Returns an initialized RTB adapter. |
|
20 |
- (nonnull instancetype)init; |
|
21 |
|
|
22 |
/// Asks the receiver for secure signals. Signals are provided to the 3PAS at request time. The |
|
23 |
/// receiver must call completionHandler with signals or an error. |
|
24 |
/// |
|
25 |
/// This method is called on a non-main thread. The receiver should avoid using the main thread to |
|
26 |
/// prevent signal collection timeouts. |
|
27 |
- (void)collectSignalsForRequestParameters:(nonnull GADRTBRequestParameters *)params |
|
28 |
completionHandler:(nonnull GADRTBSignalCompletionHandler)completionHandler; |
|
29 |
|
|
30 |
@end |