-
Notifications
You must be signed in to change notification settings - Fork 4
/
GADInMobiExtras.h
executable file
·110 lines (98 loc) · 2.99 KB
/
GADInMobiExtras.h
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
//
// GADInMobiExtras.h
//
// Copyright (c) 2015 InMobi. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <GoogleMobileAds/GADExtras.h>
#import <GoogleMobileAds/GADRequest.h>
#import <InMobiSDK/IMSdk.h>
@interface GADInMobiExtras : NSObject <GADAdNetworkExtras>
#pragma mark Optional Parameters for targeted advertising during an Ad Request
/**
* User income in USD.
*/
@property (nonatomic, assign) unsigned int income;
/**
* Age of the user may be used to deliver more relevant ads.
*/
@property (nonatomic, assign) NSUInteger age;
/**
* Age group of the user to deliver more relevant ads.
*/
@property (nonatomic, assign) IMSDKAgeGroup ageGroup;
/**
* Postal code of the user may be used to deliver more relevant ads.
*/
@property (nonatomic, copy) NSString *postalCode;
/**
* Area code of the user may be used to deliver more relevant ads.
*/
@property (nonatomic, copy) NSString *areaCode;
/**
* Education of the user may be used to deliver more relevant ads.
*/
@property (nonatomic, assign) IMSDKEducation educationType;
/**
* Ethnicity of the user may be used to deliver more relevant ads.
*/
@property (nonatomic, assign) IMSDKEthnicity ethnicityType;
/**
* Nationality of the user may be used to deliver more relevant ads.
*/
@property (nonatomic, copy) NSString *nationality;
/**
* User's household income to deliver more relevant ads.
*/
@property (nonatomic, assign) IMSDKHouseholdIncome householdIncome;
/**
Set InMobi SDK logLevel.
*/
@property (nonatomic, assign) IMSDKLogLevel logLevel;
/**
* Year of birth of the user may be used to deliver more relevant ads.
*/
@property (nonatomic, assign) NSInteger yearOfBirth;
/**
* Language preference of the user may be used to deliver more relevant ads.
*/
@property (nonatomic, copy) NSString *language;
#pragma mark Setting Contextual Information
/**
* Use contextually relevant strings to deliver more relevant ads.
* Example: @"offers sale shopping"
*/
@property (nonatomic, copy) NSString *keywords;
/**
* Use contextually relevant strings to deliver more relevant ads.
* Example: @"cars bikes racing"
*/
@property (nonatomic, copy) NSString *interests;
/**
* Provide additional values to be passed in the ad request as key-value pair.
*/
@property (nonatomic, retain) NSDictionary *additionalParameters;
#pragma mark Setting User Location
/**
* Provide user's city in the format "city-state-country" for
* city-level targetting.
*/
- (void)setLocationWithCity:(NSString *)_city
state:(NSString *)_state
country:(NSString *)_country;
/**
* Provide the user's location to the SDK for targetting purposes
*/
- (void)setLocation:(CLLocation*)location;
#pragma mark Setting User IDs
/**
* User ids such as facebook, twitter, etc may be provided to deliver more
* relevant ids.
*/
@property (nonatomic, copy) NSString *loginId;
/**
* Useful for maintaining different sessions with same login id.
*/
@property (nonatomic, copy) NSString *sessionId;
#pragma mark Setting Device Id Mask
@end