ACTReporter.h
2.98 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
//
// ACTReporter.h
// Google AdWords Conversion Tracking.
// Copyright 2011 Google Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
/// Information reporting base class.
@interface ACTReporter : NSObject
/// Returns this SDK's version information.
+ (NSString *)SDKVersion;
/// Reports conversion and remarketing information to Google. Call this method on subclass
/// instances. Returns YES if reporting was started successfully.
- (BOOL)report;
@end
/// Reports a Google AdWords conversion to Google.
@interface ACTConversionReporter : ACTReporter
/// String representation of conversion value. Example: @"3.99".
@property(nonatomic, copy) NSString *value;
/// Reports conversion information to Google.
+ (void)reportWithConversionID:(NSString *)conversionID
label:(NSString *)label
value:(NSString *)value
isRepeatable:(BOOL)isRepeatable;
/// Reports an In-App Purchase (IAP) to Google.
+ (void)reportWithProductID:(NSString *)productID
value:(NSString *)value
isRepeatable:(BOOL)isRepeatable;
/// Register a click referrer from a Google ad click URL. Returns YES if the URL was registered
/// successfully.
+ (BOOL)registerReferrer:(NSURL *)clickURL;
/// 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
label:(NSString *)label
value:(NSString *)value
isRepeatable:(BOOL)isRepeatable;
/// Returns an initialized conversion ACTConversionReporter object for In-App Purchase reporting.
/// Use this method to separate conversion tracker initialization and reporting.
- (instancetype)initWithProductID:(NSString *)productID
value:(NSString *)value
isRepeatable:(BOOL)isRepeatable;
@end
/// Reports Google AdWords remarketing information to Google.
@interface ACTRemarketingReporter : ACTReporter
/// Reports remarketing information to Google.
+ (void)reportWithConversionID:(NSString *)conversionID
customParameters:(NSDictionary *)customParameters;
/// Returns an initialized remarketing ACTRemarketingReporter object. Use this method to separate
/// remarketing initialization and reporting.
- (instancetype)initWithConversionID:(NSString *)conversionID
customParameters:(NSDictionary *)customParameters;
@end
/// Automates usage remarketing information reporting.
@interface ACTAutomatedUsageTracker : NSObject
/// Call this method early in the application's lifecycle to start collecting usage data.
+ (void)enableAutomatedUsageReportingWithConversionID:(NSString *)conversionID;
/// Call this method to disable usage reporting for the provided conversion ID.
+ (void)disableAutomatedUsageReportingWithConversionID:(NSString *)conversionID;
@end