IMConstants.h
3.5 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
//
// IMConstants.h
// InMobi Monetization SDK
//
// Copyright (c) 2013 InMobi. All rights reserved.
//
#import <CoreGraphics/CoreGraphics.h>
#import <Foundation/Foundation.h>
/**
* Console log levels
*/
typedef enum {
// No logs.
IMLogLevelNone = 0,
// Minimal set of logs for debugging.
IMLogLevelDebug = 1,
// Log everything
// @note: Please turn off verbose mode before wide distribution like
// AppStore. Keeping the verbose mode turned on might impact performance.
IMLogLevelVerbose = 2,
} IMLogLevel;
/**
* Device Id collection masks
*/
typedef enum {
// Use default ids for sdk device id collection. (default)
IMDeviceIdMaskIncludeDefaultIds = 0,
// Exclude odin1 identifier from sdk device id collection.
IMDeviceIdMaskExcludeODIN1 = 1<<0,
// Exclude advertiser identifier from sdk device id collection. (iOS 6+)
IMDeviceIdMaskExcludeAdvertisingId = 1<<1,
// Exclude vendor identifier from sdk device id collection. (iOS 6+)
IMDeviceIdMaskExcludeVendorId = 1<<2,
// @deprecated
// @note: This flag is deprecated as sdk does not collect UDID any more.
// Exclude udid identifier from sdk device id collection.
IMDeviceIdMaskExcludeUDID = 1<<3,
// Exclude facebook's attribution id from sdk device id collection.
IMDeviceIdMaskExcludeFacebookAttributionId = 1<<4,
} IMDeviceIdMask;
/**
* User ids to help deliver more relevant ads.
*/
typedef enum {
// User login id such as facebook, twitter, etc.
kIMUserIdLogin,
// For maintaining different sessions within the same login id.
kIMUserIdSession,
} IMUserId;
/**
* User Gender
*/
typedef enum {
kIMGenderMale = 1,
kIMGenderFemale,
kIMGenderUnknown,
} IMGender;
/**
* User Ethnicity
*/
typedef enum {
kIMEthnicityHispanic = 1,
kIMEthnicityCaucasian,
kIMEthnicityAsian,
kIMEthnicityAfricanAmerican,
kIMEthnicityOther,
kIMEthnicityUnknown,
} IMEthnicity;
/**
* User Education
*/
typedef enum {
kIMEducationHighSchoolOrLess = 1,
kIMEducationCollegeOrGraduate,
kIMEducationPostGraduateOrAbove,
kIMEducationUnknown,
} IMEducation;
/**
* Different Interstitial states
*/
typedef enum {
// The state of interstitial cannot be determined.
kIMInterstitialStateUnknown = 0,
// The default state of an interstitial.
// If an interstitial ad request fails, or if the user dismisses the
// interstitial, the state will be changed back to init.
kIMInterstitialStateInit,
// Indicates that an interstitial ad request is in progress.
kIMInterstitialStateLoading,
// Indicates that an interstitial ad is ready to be displayed.
// An interstitial ad can be displayed only if the state is ready.
// You can call presentFromRootViewController: to display this ad.
kIMInterstitialStateReady,
// Indicates that an interstitial ad is displayed on the user's screen.
kIMInterstitialStateActive
} IMInterstitialState;
/**
* User HasChildren
*/
typedef enum {
kIMHasChildrenTrue = 1,
kIMHasChildrenFalse,
kIMHasChildrenUnknown,
} IMHasChildren;
/**
* User Marital Status
*/
typedef enum {
kIMMaritalStatusSingle = 1,
kIMMaritalStatusDivorced,
kIMMaritalStatusEngaged,
kIMMaritalStatusRelationship,
kIMMaritalStatusUnknown,
} IMMaritalStatus;
/**
* User Sexual Orientation
*/
typedef enum {
kIMSexualOrientationStraight = 1,
kIMSexualOrientationBisexual,
kIMSexualOrientationGay,
kIMSexualOrientationUnknown,
} IMSexualOrientation;