User Targeting
Pass user targeting information to ad requests
General Information
Some networks support adding additional information to improve the ads for the current app context. In addition to key-value targeting, AATKit supports user targeting, allowing to pass information like:
User ID
Gender
Year of birth
List of keywords
Usage
let userTargeting = AATUserTargeting(userId: "USER_ID", gender: .male, yearOfBirth: 1990, keywords: ["keyword1", "keyword2"])
AATSDK.setUserTargeting(userTargeting: userTargeting)AATUserTargeting *userTargeting = [[AATUserTargeting alloc] initWithUserId:@""
gender:AATGenderMale
yearOfBirth:@1999
keywords:@[@"keyword1", @"keyword2"]];
[AATSDK setUserTargetingWithUserTargeting:userTargeting];The year of birth must be a 4-digit number
Each field in
AATUserTargetingis optional.
Last updated