-
Notifications
You must be signed in to change notification settings - Fork 4
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.
Set user age. Limitation: 1-99 and 0 is 'unknown'.
CAS.getTargetingOptions().setAge(12);
Set user gender.
CAS.getTargetingOptions().setGender(TargetingOptions.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.getTargetingOptions().setLocation(userLocation);
Warning
Do not use Location just for advertising. Your app should have a valid use case for it as well.
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.getTargetingOptions().setKeywords(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.getTargetingOptions().setContentUrl(contentUrl);
🔗 Done! What’s Next?
- Initialize Ads before using ad formats.
- Project Setup
- Advanced integration
- Additional mediation steps
- Link the project
- App-ads.txt🔗