Overview
Targeting settings allow you to show personalized ads to specific user groups. The Adrop SDK provides audience targeting.- Audience Targeting: Display ads based on user attributes (properties).
To collect targeting data, you must set UID and properties before loading ads.
UID Setup
Set a user identifier (UID) to distinguish users. UID is the foundation for targeted advertising.Usage
Parameters
| Parameter | Type | Description |
|---|---|---|
uid | string | Unique user identifier (e.g., service member ID) |
Pass an empty string (
"") on logout to reset the UID.Audience Targeting
Collect user attribute information (properties) to show ads to specific user groups.Setting Properties
Use theAdropMetrics.setProperty() method to collect user attribute information.
Parameters
| Parameter | Type | Description |
|---|---|---|
key | string | Property key (max 64 characters) |
value | any | Property value (string, number, boolean, null) |
Built-in Properties
The Adrop SDK provides built-in properties for targeting. UseAdropProperties and AdropGender enums to set values.
Age (Birthday)
When you pass birthday information, age is automatically calculated.| Format | Example | Description |
|---|---|---|
yyyy | ”1990” | Year only |
yyyyMM | ”199003” | Year and month |
yyyyMMdd | ”19900315” | Full date |
Gender
| Constant | Value | Description |
|---|---|---|
AdropGender.MALE | "M" | Male |
AdropGender.FEMALE | "F" | Female |
AdropGender.OTHER | "O" | Other |
AdropGender.UNKNOWN | "U" | Unknown |
Setting Age Directly
You can also set age directly instead of birthday.You only need to set one of
BIRTH or AGE. If both are set, BIRTH takes priority.Custom Properties
You can set custom properties for your service. Custom properties must be defined first in the Ad Control Console under the Targeting menu.Property Usage Example
Example of setting properties when a user logs into the app.Best Practices
1. Set UID Before Loading Ads
2. Update Properties When They Change
3. Reset UID on Logout
Related Documentation
Create Audience Targeting
Create audience targeting in the console
Sell Targeting
Set up targeting category sales
Banner Ads
Implementing banner ads
Native Ads
Implementing native ads
FAQ
If I don't set a UID, will targeted ads not be shown?
If I don't set a UID, will targeted ads not be shown?
Ads will still be shown without setting a UID, but audience targeting won’t be applied. Only default targeting (country, language, etc.) will be used. UID setup is essential for precise targeting.
I set properties but don't see data in the console.
I set properties but don't see data in the console.
Property data is reflected in the console within 24 hours of collection. If data is not showing:
- Verify the property is correctly defined in the console.
- Check that the property key passed from the SDK exactly matches the console (case-sensitive).
- Verify
AdropMetrics.setProperty()is called before loading ads.
How do I delete a property value?
How do I delete a property value?
Pass
null as the property value to delete it:Can I set array-type properties?
Can I set array-type properties?
The React Native SDK does not currently support array types directly. If needed, convert to a string or split into multiple individual properties.