Skip to main content
POST
Request recommendations

Path Parameters

tagid
string<uuid>
required

The ID of the ad unit.

Get from the advertising manager.

Body

application/json
app
object | null

Optional application context. Ad requests use this object to identify the app environment; site is unnecessary. If both are sent, app takes precedence. Recommendation requests currently ignore it. All fields inside this object are optional.

device
object | null

The user's IP address (ip) and User-Agent (ua). For ad requests, direct browser requests can omit this object; when your server requests ads on behalf of a user, send that user's values. Add geo if location information is available. Recommendation requests currently ignore it. This object and all its fields are optional.

Example:
filter
any

Optional exclusion conditions. For webtoon catalogs, rating excludes items above the supplied rating and exclusion_tags excludes items sharing any supplied tag. Conditions combine as exclusions: a match on either condition removes the item. Creative catalog filtering is not implemented. Unknown fields, null values, and empty arrays do not filter candidates. Every top-level array is limited to 100 values, including arrays under unknown fields; exceeding the limit returns HTTP 400 with errorcode 1304.

Example:
seed_item_id
string | null

Optional catalog ID used by seed-based sources, such as Association and Pinned.

site
object | null

Optional website context. For ad requests from the web, send the page and domain when available; app is unnecessary. Providing this object without app identifies a web ad request. Recommendation requests currently ignore it. All fields inside this object are optional.

user
object | null

Optional user context. Send the same stable user.id for the same user.

Example:

Response

Successfully served recommendation

Recommendation wire response. Unlike an ad response, it never echoes user.

items
object[]
required

Recommended catalog IDs, zero-based positions, and scores when supplied by the candidate source. Empty on error; success may also contain no items.

version
string
required

Version of the SDK API.

errorcode
string | null

Application error code on an error response: 1300 invalid tagid; 1301 ad unit not found; 1302 recommendation disabled; 1303 no applicable delivery policy; 1304 filter array exceeds 100 values. Absent on success.

ext
object | null

Tracking mode on success, or a message on an error response.

tracking_token
string | null

Opaque token for this recommendation result. Send it as tracking_token in recommendation log events. Absent on errors.