-
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.MobileAds.targetingOptions.age = 12;
Set user gender.
CAS.MobileAds.targetingOptions.gender = Gender.Male;
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.MobileAds.targetingOptions.SetKeywords(new[] { "words" });
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.MobileAds.targetingOptions.contentUrl = contentUrl;
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.
By default selected in Assets > CleverAdsSolutions > iOS Settings > Other Settings
menu:
- Location targeting if allowed
Change the flag at any time using the following method:
CAS.MobileAds.targetingOptions.locationCollectionEnabled = true;
🔗 Done! What’s Next?
- Initialize CAS before using ad formats using UnityEditor or Script C#
- Project Setup
- Configuring SDK
- Include Android
- Include iOS
- Additional mediation steps
- App-ads.txt🔗