Skip to main content

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

UID is hashed with SHA-256 before transmission. Do not pass personal information (email, phone number, etc.) directly.
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 the AdropMetrics.setProperty() method to collect user property information.

Parameters

  • Property keys can be up to 64 characters.
  • String values can be up to 256 characters.
  • Numeric values can be up to 9007199254740991.
  • You can set up to 256 properties.

Default Properties

The Adrop SDK provides default properties for targeting.

Age (Birth Date)

When you pass birth date information, age is automatically calculated.
Date Formats

Gender

Gender Values
You can also use the AdropProperties and AdropGender enums provided by the SDK:

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.
Custom property names must exactly match the names defined in the console. They are case-sensitive.

Event Tracking

You can send events to track user behavior.

Sending Events

Parameters

You can set up to 20 parameters per event.
logEvent() is deprecated since version 1.8.0. Use sendEvent() instead.

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


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

UID is optional. Property-based and event-based targeting work normally without setting UID. UID is used for sharing targeting data across platforms.
Property data is reflected in the console within 24 hours after collection. If data is not showing:
  1. Check that the property is correctly defined in the console.
  2. Verify that the property key passed in the SDK exactly matches the console (case-sensitive).
  3. Confirm that AdropMetrics.setProperty() is called before ad loading.
Pass null to the property value to delete that property:
Supported types are String, int, double, and bool. Arrays and complex objects are not supported. Convert to string if needed.