commit | author | age
|
96fe76
|
1 |
// |
L |
2 |
// GADInitializationStatus.h |
|
3 |
// Google Mobile Ads SDK |
|
4 |
// |
|
5 |
// Copyright 2018 Google LLC. All rights reserved. |
|
6 |
// |
|
7 |
|
|
8 |
#import <Foundation/Foundation.h> |
|
9 |
|
|
10 |
typedef NS_ENUM(NSInteger, GADAdapterInitializationState) { |
|
11 |
/// The mediation adapter is less likely to fill ad requests. |
|
12 |
GADAdapterInitializationStateNotReady = 0, |
|
13 |
/// The mediation adapter is ready to service ad requests. |
|
14 |
GADAdapterInitializationStateReady = 1 |
|
15 |
}; |
|
16 |
|
|
17 |
/// An immutable snapshot of a mediation adapter's initialization status. |
|
18 |
@interface GADAdapterStatus : NSObject <NSCopying> |
|
19 |
|
|
20 |
/// Initialization state of the adapter. |
|
21 |
@property(nonatomic, readonly) GADAdapterInitializationState state; |
|
22 |
|
|
23 |
/// Detailed description of the status. |
|
24 |
@property(nonatomic, readonly, nonnull) NSString *description; |
|
25 |
|
|
26 |
/// The adapter's initialization latency in seconds. 0 if initialization has not yet ended. |
|
27 |
@property(nonatomic, readonly) NSTimeInterval latency; |
|
28 |
|
|
29 |
@end |
|
30 |
|
|
31 |
/// An immutable snapshot of the Google Mobile Ads SDK's initialization status, categorized by |
|
32 |
/// mediation adapter. |
|
33 |
@interface GADInitializationStatus : NSObject <NSCopying> |
|
34 |
/// Initialization status of each ad network available to the Google Mobile Ads SDK, keyed by its |
|
35 |
/// GADMAdapter's class name. The list of available ad networks may be incomplete during early |
|
36 |
/// phases of SDK initialization. |
|
37 |
@property(nonatomic, readonly, nonnull) |
|
38 |
NSDictionary<NSString *, GADAdapterStatus *> *adapterStatusesByClassName; |
|
39 |
@end |