ALTargetingData Class Reference

Inherits from NSObject
Declared in ALTargetingData.h

Overview

This class is used to set more specific targeting data.

Setting User Data

  carrier

Set carrier current device is on.

@property (strong, nonatomic) NSString *carrier

Discussion

Set carrier current device is on.

Declared In

ALTargetingData.h

  country

Set a two-character ISO 3166-1 country code of the device.

@property (strong, nonatomic) NSString *country

Discussion

Set a two-character ISO 3166-1 country code of the device.

Declared In

ALTargetingData.h

  birthYear

Set the year of birth of current user.

@property (assign, nonatomic) NSInteger birthYear

Discussion

Set the year of birth of current user.

Declared In

ALTargetingData.h

  gender

Gender of the current user.

Following constants contain supported values: kALGenderMale and kALGenderFemale.

@property (assign, nonatomic) char gender

Discussion

Gender of the current user.

Following constants contain supported values: kALGenderMale and kALGenderFemale.

Declared In

ALTargetingData.h

  language

The language of the current user. Language is expressed as two-character ISO 639-1 language code.

@property (strong, nonatomic) NSString *language

Discussion

The language of the current user. Language is expressed as two-character ISO 639-1 language code.

Declared In

ALTargetingData.h

  keywords

Keywords for the application.

@property (strong, nonatomic) NSArray *keywords

Discussion

Keywords for the application.

Declared In

ALTargetingData.h

  interests

Interests for the user.

@property (strong, nonatomic) NSArray *interests

Discussion

Interests for the user.

Declared In

ALTargetingData.h

– setLocationWithLatitude:longitude:

Set the location of current user. The location represented as longiture and latitude.

- (void)setLocationWithLatitude:(double)latitude longitude:(double)longitude

Discussion

Set the location of current user. The location represented as longiture and latitude.

Declared In

ALTargetingData.h

– setExtraValue:forKey:

Put an extra targeting parameter

- (void)setExtraValue:(alnullable NSString *)value forKey:(alnullable NSString *)key

Parameters

value

Parameter value.

key

Key of the parameter. Must not be nil.

Discussion

Put an extra targeting parameter

Declared In

ALTargetingData.h

Clearing/Resetting User Data

– clearAll

Clear all saved targeting data

- (void)clearAll

Discussion

Clear all saved targeting data

Declared In

ALTargetingData.h