DCTReporter.h
1.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
//
// DCTReporter.h
// DoubleClick for Publishers (DFP) Conversion Tracking.
// Copyright 2011 Google Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "ACTReporter.h"
/// Reports a DoubleClick for Publisher (DFP) conversion to Google.
@interface DCTConversionReporter : ACTReporter
/// String representation of conversion value. Example: @"3.99".
@property(nonatomic, copy) NSString *value;
/// Reports conversion information to Google.
+ (void)reportWithConversionID:(NSString *)conversionID
value:(NSString *)value
isRepeatable:(BOOL)isRepeatable;
/// Returns an initialized conversion ACTConversionReporter object for conversion ID/label
/// reporting. Use this method to separate conversion tracker initialization and reporting.
- (instancetype)initWithConversionID:(NSString *)conversionID
value:(NSString *)value
isRepeatable:(BOOL)isRepeatable;
@end
/// Reports a DoubleClick for Publisher (DFP) activity event for audience segmentation.
@interface DCTActivityReporter : ACTReporter
/// Report activity targeted at adUnitID with optional publisher identifier and recording
/// parameters.
+ (void)reportWithAdUnitID:(NSString *)adUnitID
publisherProvidedID:(NSString *)publisherProvidedID
customParameters:(NSDictionary *)customParameters;
/// Returns an initialized DCTActivityReporter object. Use this method to separate activity tracker
/// initialization and reporting. The ad unit is the only required parameter, other parameters may
/// be nil.
- (instancetype)initWithAdUnitID:(NSString *)adUnitID
publisherProvidedID:(NSString *)publisherProvidedID
customParameters:(NSDictionary *)customParameters;
@end