-
Notifications
You must be signed in to change notification settings - Fork 0
Targeting options
You can now easily tailor the way you serve your ads to fit a specific audience!
You’ll need to inform our servers of the users’ details so the SDK will know to serve ads according
to the segment the user belongs to.
The userID is a unique identifier supplied by your application and must be static for each user across sessions.
CAS.getTargetingOptions().setUserID("user-hash-code");
Warning
Your userID should not contain any personally identifiable information such as an email address, screen name, IDFV (identifier for vendor) or IDFA (Apple’s Advertising Identifier).
Set user age. Limitation: 1-99. By default 0 is 'unknown'.
CAS.targetingOptions.age = 12
Set user gender.
CAS.targetingOptions.gender = Gender.male
Set the user's current location. Location data is not used to CAS; however, it may be used by third party ad networks.
CAS.targetingOptions.setLocation(latitude: userLatitude, longitude: userLongitude)
Warning
Do not use Location just for advertising. Your app should have a valid use case for it as well.
Collect from the device the latitude and longitude coordinated truncated to the hundredths decimal place.
- Collect only if your application already has the relevant end-user permissions.
- Does not collect if the target audience is children.
- Disabled by default.
CAS.targetingOptions.locationCollectionEnabled = true
Set a list of keywords, interests, or intents related to your application. Words or phrases describe the current activity of the user for targeting purposes.
CAS.targetingOptions.keywords = keywords
Set the content URL for a website whose content matches the app's primary content. This website content is used for targeting and brand safety purposes. Limitation: max URL length 512.
CAS.targetingOptions.contentUrl = contentUrl
🔗 Next
Ad errors
- Integration
- Initialization
- Additional mediation steps
- AppStore data disclosure
- App-ads.txt🔗
- App Open Ad
- Banner Ad
- Interstitial Ad
- Rewarded Ad
- Native Ad