commit | author | age
|
96fe76
|
1 |
// |
L |
2 |
// GADAdValue.h |
|
3 |
// Google Mobile Ads SDK |
|
4 |
// |
|
5 |
// Copyright 2019 Google LLC. All rights reserved. |
|
6 |
// |
|
7 |
|
|
8 |
#import <Foundation/Foundation.h> |
|
9 |
|
|
10 |
typedef NS_ENUM(NSInteger, GADAdValuePrecision) { |
|
11 |
/// An ad value with unknown precision. |
|
12 |
GADAdValuePrecisionUnknown = 0, |
|
13 |
/// An ad value estimated from aggregated data. |
|
14 |
GADAdValuePrecisionEstimated = 1, |
|
15 |
/// A publisher-provided ad value, such as manual CPMs in a mediation group. |
|
16 |
GADAdValuePrecisionPublisherProvided = 2, |
|
17 |
/// The precise value paid for this ad. |
|
18 |
GADAdValuePrecisionPrecise = 3 |
|
19 |
}; |
|
20 |
|
|
21 |
@class GADAdValue; |
|
22 |
|
|
23 |
/// Handles ad events that are estimated to have earned money. |
|
24 |
typedef void (^GADPaidEventHandler)(GADAdValue *_Nonnull value); |
|
25 |
|
|
26 |
/// The monetary value earned from an ad. |
|
27 |
@interface GADAdValue : NSObject <NSCopying> |
|
28 |
|
|
29 |
/// The precision of the reported ad value. |
|
30 |
@property(nonatomic, readonly) GADAdValuePrecision precision; |
|
31 |
|
|
32 |
/// The ad's value. |
|
33 |
@property(nonatomic, nonnull, readonly) NSDecimalNumber *value; |
|
34 |
|
|
35 |
/// The value's currency code. |
|
36 |
@property(nonatomic, nonnull, readonly) NSString *currencyCode; |
|
37 |
|
|
38 |
@end |