Overview
Through targeting configuration, you can display customized ads to specific user groups. The Adrop SDK provides Audience Targeting.- Audience Targeting: Displays ads based on user properties (attributes).
To collect targeting data, you must set properties before loading ads.
UID Setup (Optional)
Set a user identifier (UID) to share targeting data across platforms. UID is optional and is not required for property-based or event-based targeting.Usage
Parameters
| Parameter | Type | Description |
|---|---|---|
uid | String | User unique identifier (e.g., service member ID) |
When logging out, pass an empty string (
'') to reset the UID.Audience Targeting
Collect user property information to display ads to specific user groups.Setting Properties
Use theAdropMetrics.setProperty() method to collect user property information.
Parameters
| Parameter | Type | Description |
|---|---|---|
key | String | Property key (max 64 characters) |
value | dynamic | Property value (String, int, double, bool, null) |
Default Properties
The Adrop SDK provides default properties for targeting.Age (Birth Date)
When you pass birth date information, age is automatically calculated.| Format | Example | Description |
|---|---|---|
yyyy | ”1990” | Year only |
yyyyMM | ”199003” | Year and month |
yyyyMMdd | ”19900315” | Year, month, and day |
Gender
| Value | Description |
|---|---|
M | Male |
F | Female |
O | Other |
U | Unknown |
Setting Age Directly
You can also set age directly instead of birth date.You only need to set either
BIRTH or AGE. If both are set, BIRTH takes precedence.Custom Properties
You can set custom properties that fit your service. Custom properties must be defined first in the Targeting menu of Ad Control Console.Event Tracking
You can send events to track user behavior.Sending Events
Parameters
| Parameter | Type | Description |
|---|---|---|
name | String | Event name |
params | Map<String, dynamic>? | Event parameters (optional). Supports String, int, double, bool values. |
You can set up to 20 parameters per event.
Retrieving Properties
You can retrieve all stored properties.Usage Examples
Setting Properties on Login
Resetting on Logout
Updating Properties
Best Practices
1. Set Properties Before Loading Ads
2. Update Properties When Changed
3. Reset Properties on Logout
Related Documentation
Create Audience Targeting
Create audience targeting in the console
Sell Targeting
Configure targeting category sales
Banner Ads
Implement banner ads
Native Ads
Implement native ads
FAQ
Will targeted ads not be displayed if I don't set UID?
Will targeted ads not be displayed if I don't set UID?
UID is optional. Property-based and event-based targeting work normally without setting UID. UID is used for sharing targeting data across platforms.
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 after collection. If data is not showing:
- Check that the property is correctly defined in the console.
- Verify that the property key passed in the SDK exactly matches the console (case-sensitive).
- Confirm that
AdropMetrics.setProperty()is called before ad loading.
How do I delete property values?
How do I delete property values?
Pass
null to the property value to delete that property:Are there type restrictions for property values?
Are there type restrictions for property values?
Supported types are
String, int, double, and bool. Arrays and complex objects are not supported. Convert to string if needed.