XAUserData Class Reference
| Inherits from | NSObject |
|---|---|
| Conforms to | NSCopying |
| Declared in | XAUserData.h |
Overview
User data is optional and can be used to better target an ad when targeting is available for an ad.
Location Data
– setLocationWithDescription:
If location of the application user cannot be expressed in coordinates and the general location is known, it can be set with a string description, such as “101 Broad St, City, State” or “City, State”
- (void)setLocationWithDescription:(NSString *)locationDescriptionParameters
locationDescription |
The location description as a string |
|---|
Discussion
If location of the application user cannot be expressed in coordinates and the general location is known, it can be set with a string description, such as “101 Broad St, City, State” or “City, State”
Declared In
XAUserData.h
Demographic Data
email
The email of the current application user
@property (nonatomic, retain) NSString *emailDiscussion
The email of the current application user
Declared In
XAUserData.h
firstName
The first name of the current application user
@property (nonatomic, retain) NSString *firstNameDiscussion
The first name of the current application user
Declared In
XAUserData.h
lastName
The last name of the current application user
@property (nonatomic, retain) NSString *lastNameDiscussion
The last name of the current application user
Declared In
XAUserData.h
streetAddress
The street address of the current application user
@property (nonatomic, retain) NSString *streetAddressDiscussion
The street address of the current application user
Declared In
XAUserData.h
city
The city of the current application user
@property (nonatomic, retain) NSString *cityDiscussion
The city of the current application user
Declared In
XAUserData.h
state
The state of the current application user
@property (nonatomic, retain) NSString *stateDiscussion
The state of the current application user
Declared In
XAUserData.h
zipCode
The zip code of the current application user
@property (nonatomic, retain) NSString *zipCodeDiscussion
The zip code of the current application user
Declared In
XAUserData.h
county
The county of the current application user
@property (nonatomic, retain) NSString *countyDiscussion
The county of the current application user
Declared In
XAUserData.h
homePhone
The home phone of the current application user
@property (nonatomic, retain) NSString *homePhoneDiscussion
The home phone of the current application user
Declared In
XAUserData.h
mobilePhone
The mobile phone of the current application user
@property (nonatomic, retain) NSString *mobilePhoneDiscussion
The mobile phone of the current application user
Declared In
XAUserData.h
maritalStatus
The marital status of the current application user
@property (nonatomic, retain) NSString *maritalStatusDiscussion
The marital status of the current application user
Declared In
XAUserData.h
gender
The gender of the current application user, either “male” or “female”
@property (nonatomic, retain) NSString *genderDiscussion
The gender of the current application user, either “male” or “female”
Declared In
XAUserData.h
education
The education level of the current application user
@property (nonatomic, retain) NSString *educationDiscussion
The education level of the current application user
Declared In
XAUserData.h
children
The number of children the current user has
@property (nonatomic, retain) NSNumber *childrenDiscussion
The number of children the current user has
Declared In
XAUserData.h
politics
The political affiliation of the application user
@property (nonatomic, retain) NSString *politicsDiscussion
The political affiliation of the application user
Declared In
XAUserData.h
demographicData
Holds developer added demographic data as a key value store
@property (nonatomic, retain) NSMutableDictionary *demographicDataDiscussion
Holds developer added demographic data as a key value store
Declared In
XAUserData.h
– addDemographicData:forKey:
Adds a new peice of demographic data by key.
- (void)addDemographicData:(NSString *)data forKey:(NSString *)keyParameters
data |
The demographic data |
|---|---|
key |
The category for the data |
Discussion
Adds a new peice of demographic data by key.
Used when demographic data exists that does not fit one of the class properites. Add the data as a key value pair, for example “DOG” and “TRUE” for someone that has a dog.
Declared In
XAUserData.h
age
The age of the listener
@property (nonatomic, retain) NSNumber *ageDiscussion
The age of the listener
Declared In
XAUserData.h
birthday
The birthday of the application user
@property (nonatomic, retain) NSDate *birthdayDiscussion
The birthday of the application user
Declared In
XAUserData.h
– setBirthdayWithMonth:day:year:
A helper method to set the birthday of the current applicaton user
- (void)setBirthdayWithMonth:(NSInteger)month day:(NSInteger)day year:(NSInteger)yearParameters
month |
The month |
|---|---|
day |
The day |
year |
The year |
Discussion
A helper method to set the birthday of the current applicaton user
Declared In
XAUserData.h
Contextual Data
– addKeyword:
Add contextual keywords to the request for the current application context
- (void)addKeyword:(NSString *)keywordParameters
keyword |
A contextual keyword string |
|---|
Discussion
Add contextual keywords to the request for the current application context
Declared In
XAUserData.h
– keywordsAsCommaDelimitedString
Get the keywords as a comma delimited string
- (NSString *)keywordsAsCommaDelimitedStringReturn Value
Returns nil if keywords have not been set or the keywords as a comma delimited string
Discussion
Get the keywords as a comma delimited string
Declared In
XAUserData.h