Skip to main content

Audience Targeting

You can target ads based on user properties.

1. Create Targeting

First, create audience targeting in Ad Control Console.

Create Targeting

Check how to create audience targeting in the console

2. Set User ID

You must set appKey and uid before rendering ads.
Complete the setup before rendering the ad placement for targeted ads to work properly.

3. Set User Properties

Setting user properties enables more sophisticated targeting.
You must call commit() to save properties to the server. It overwrites rather than merges with existing data, so send all properties together when updating.

Built-in Properties

App Properties

Device Properties (Auto-collected)

The SDK automatically collects the following device properties. You do not need to set these manually.

Custom Properties

You can set additional properties registered in the console. Values must match the type defined in Ad Control Console.

Contextual Targeting

You can target ads based on page or content context.

1. Create Targeting

First, create contextual targeting in Ad Control Console.

Create Contextual Targeting

Check how to create contextual targeting in the console

2. Set Value on Ad Placement

Pass the Context Value configured in the console when requesting ads.

Data Attributes Method

renderAd Method

Dynamic Context Setting

You can set context dynamically based on page or content.

Reference > AdropConfig

Initialization option definitions

Reference > AdropAdRequest

Ad request parameter definitions