Decision API

The Decision API enables you to make ad requests without using ad code. By posting to a RESTful endpoint, Kevel's ad engine will return decision data and creative contents that can be used to serve ads in your application.You'll want to set the Content-Type in the header as application/json. The API will also accept text/plain to support applications that cannot change the content type

Path Params
int32
required

Your account (network) ID

Body Params
placements
array of objects
required

Every request must contain one or more placements. Each placement represents a "slot" in which an ad may be served. Click the '+' below to view the placement object fields.

placements*
user
object

Object containing the UserKey used for UserDB targeting.

keywords
array of strings

Keywords for Keyword Targeting. Such as "keywords": ["foo", "bar", "baz"]

keywords
string

The current page URL

string

The referrer URL

string

The IP address. Required for Geo-Targeting

boolean
Defaults to false

If true, return pricing data for the decision in the response. Defaults to false

boolean
Defaults to false

See the relevancy score documentation for more information

boolean
Defaults to false

Deprecated: If true, only return ads that are set to honor Do Not Track. Defaults to false

boolean
Defaults to false

If making a client-side request, set to true. Defaults to false to ensure a server isn't seen as a bot. See here for more info

boolean

If true, override the IP address of the request with the IP address supplied on the UserKey. If no IP address is found on the UserKey, this will fall back to the IP address on the request. Requires UserDB.

consent
object
string

RTB requests only - sets an Identifier for Advertisers (IFA or IDFA)

boolean
Defaults to false

If true, processes the placements in parallel. Has no advantage except for RTB and header bidding requests. Does not work with companion ads.

float

(BETA) Latitude to use for Distance Targeting. Range: [-90, 90]. Contact Kevel support to get started

float

(BETA) Longitude to use for Distance Targeting. Range: [-180, 180]. Contact Kevel support to get started

float

(BETA) Radius of the user if using user-specified radius with Distance Targeting. Range: [0.01, 100]. Contact Kevel support to get started

string

Parameter utilized when you want to configure day/time parting.

string
block
object

Prevents specific advertisers, campaigns, creatives, or flights from being served in the response.

Response

Language
LoadingLoading…
Response
Choose an example:
application/json