---
updatedAt: 2026-11-10T20:50:07.000Z
agentTools:
  projectIndex: https://dev.kevel.com/llms.txt
---

# Response Parameters

A Response will contain zero or more Decision Objects, one per Placement that was sent in on the request. If no ad was selected for a given Placement, the corresponding Decision entry will be undefined. The response will also contain the user key used to identify the unique user that places the request.

## Decision Object

Each Decision Object represents the ad that was selected to be served for a given Placement.

<Table align={["left","left"]}>
  <thead>
    <tr>
      <th>
        Property
      </th>

      <th>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `adId`  
        (integer)
      </td>

      <td>
        The Ad's ID
      </td>
    </tr>

    <tr>
      <td>
        `advertiserId`  
        (integer)
      </td>

      <td>
        The Advertiser's ID
      </td>
    </tr>

    <tr>
      <td>
        `creativeId`  
        (integer)
      </td>

      <td>
        The Creative's ID
      </td>
    </tr>

    <tr>
      <td>
        `flightId`  
        (integer)
      </td>

      <td>
        The Flight's ID
      </td>
    </tr>

    <tr>
      <td>
        `campaignId`  
        (integer)
      </td>

      <td>
        The Campaign's ID
      </td>
    </tr>

    <tr>
      <td>
        `priorityId`  
        (integer)
      </td>

      <td>
        The Priority's ID (associated with the flight)
      </td>
    </tr>

    <tr>
      <td>
        `clickUrl`  
        (string)
      </td>

      <td>
        The url endpoint that, using a GET, triggers the recording of the click and redirects to the target. Append the query string `noredirect` to count the click without the redirect.
      </td>
    </tr>

    <tr>
      <td>
        `contents`  
        (object)
      </td>

      <td>
        One or more Contents
      </td>
    </tr>

    <tr>
      <td>
        `impressionUrl`  
        (string)
      </td>

      <td>
        The url endpoint that, using a GET, triggers the recording of the impression
      </td>
    </tr>

    <tr>
      <td>
        `events`  
        (object)
      </td>

      <td>
        The IDs and tracking URLs of custom events
      </td>
    </tr>

    <tr>
      <td>
        `pricing`  
        (object)
      </td>

      <td>
        Pricing data for the decision (if requested). See below
      </td>
    </tr>

    <tr>
      <td>
        `provenance`  
        (string)
      </td>

      <td>
        The demand source the ad came from (if requested). See below
      </td>
    </tr>
  </tbody>
</Table>

<Callout icon="🚧" theme="warn">
  You must call the impressionUrl URL in order to count an impression in Kevel's reporting.
</Callout>

## Contents Object

Each Decision contains one or more Contents. Combined, the Contents represent the creative that should be displayed. For example, a creative may contain a CSS stylesheet and a block of HTML. This would be represented as two Contents, one with the type css and one with the type html.

Custom metadata set at the creative level will be passed in the Contents as the key customData.

If a content uses a predefined template, the template property will be set to the name of the template to use. For example, an image content will have the type html and the template image.

For a list of predefined templates, see Predefined Content Templates below.

For raw contents (called "HTML/JavaScript Creatives" in the Kevel Management UI) the content will not have a template property set. Instead, it will have a customTemplate property which will contain the body of the custom template.

<Table align={["left","left"]}>
  <thead>
    <tr>
      <th>
        Property
      </th>

      <th>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `type`  
        (string)
      </td>

      <td>
        The type of the content (see Content Types, below)
      </td>
    </tr>

    <tr>
      <td>
        `template`  
        (string)
      </td>

      <td>
        The name of the template used to render the content (see Content Templates, below)
      </td>
    </tr>

    <tr>
      <td>
        `data`  
        (object)
      </td>

      <td>
        An object that has fields used to build the content. Note that "title" refers to creative alt-text, not the Friendly Name
      </td>
    </tr>

    <tr>
      <td>
        `body`  
        (string)
      </td>

      <td>
        The rendered body of the content. This is the `ScriptBody` from [Create Creative](https://dev.kevel.com/reference/create-creative), or the JS/HTML section in the UI
      </td>
    </tr>
  </tbody>
</Table>

```json Example Image Content
{
  "type": "html",
  "template": "image",
  "data": {
    "fileName": "cat-eating-spaghetti.jpg",
    "title": "Example title"
  },
  "body": "<a href='...'><img src='https://static.adzerk.net/Advertisers/cat-eating-spaghetti.jpg' title='ZOMG LOOK AT THIS FRICKING CAT'></a>"
}
```

```json Example Raw Content
{
  "type": "raw",
  "customTemplate": "this is an example custom template body with macros like {{url}} that can be replaced"
}
```

## Data Object

<Table align={["left","left"]}>
  <thead>
    <tr>
      <th>
        Property
      </th>

      <th>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `imageUrl`  
        (string)
      </td>

      <td>
        The URL of the hosted Kevel image
      </td>
    </tr>

    <tr>
      <td>
        `title`  
        (string)
      </td>

      <td>
        The Friendly Name of the ad
      </td>
    </tr>

    <tr>
      <td>
        `width`  
        (integer)
      </td>

      <td>
        The width associated with the Ad Type
      </td>
    </tr>

    <tr>
      <td>
        `height`  
        (integer)
      </td>

      <td>
        The height associated with the Ad Type
      </td>
    </tr>

    <tr>
      <td>
        `customData`  
        (object)
      </td>

      <td>
        The JSON object inserted into the [metadata](https://dev.kevel.com/docs/creatives#metadata-field) of the ad
      </td>
    </tr>
  </tbody>
</Table>

## Content Types

| Name          | Description                                                        |
| :------------ | :----------------------------------------------------------------- |
| `html`        | A block of HTML                                                    |
| `css`         | A block of CSS                                                     |
| `js`          | A block of JavaScript                                              |
| `js-external` | An external JavaScript file (rendered as a `<script>` tag in HTML) |
| `raw`         | Raw text data (JSON, etc.)                                         |

## Predefined Content Templates

| Name            | Description                                                                |
| :-------------- | :------------------------------------------------------------------------- |
| `image`         | A static image (rendered as an `<img>` tag wrapped in a hyperlink in HTML) |
| `image-nowidth` | A static image with no height or width attributes                          |

## Event Multipliers

You can optionally set an event multiplier on impressions, clicks, conversions, and custom events via the `eventMultiplier` parameter. This will set the count of that event in reporting to the value of the multiplier. For instance, if you set a multiplier of 10 on an impression URL:

```curl Event Multiplier on Impression
curl -g "https://e-1234.adzerk.net/i.gif?e=eyJ2Ijoi...xneGk&eventMultiplier=10"
```

That impression will be counted ten times in reporting, and any revenue associated with the impression will also be registered ten times.

An event multiplier must be in the range \[-100000000, -1] or \[1, 100000000].

Event multipliers on events will override any event multiplier set on the placement.

Event multipliers do *not* multiply the revenue set via the `override` parameter.

## Triggering Click Events Without Redirects

By default, calling the `clickUrl` will perform a 302 redirect to the click URL specified in the creative and trigger a click event in reporting. To trigger a click event without the redirect, you can add the query string `noredirect` to the `ClickUrl`:

```curl ClickUrl Modified to Not Redirect
curl -g "https://e-1234.adzerk.net/r?e=eyJ2Ijo...ewxlb6Do_o&noredirect"
```

The response will contain a 200 status code with an empty response body. This enables the `clickUrl` to be used in the same way as custom event URLs.

## Pricing Data

To receive a `pricing` object for each decision, set `includePricingData` to `true` in the request.

```json Pricing data for a second price CPC ad
"pricing": {
  "price": 10,
  "clearPrice": 4.01,
  "revenue": 8.02,
  "rateType": 3,
  "eCPM": 5
}
```

This ad bids $10.00 per click and has an eCPM of $5.00. It cleared at $4.01 per 1,000 impressions, so a click earns $10.00 \* $4.01 / $5.00 = $8.02.

<Table align={["left","left"]}>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Data Type
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `price`  
        (float)
      </td>

      <td>
        The Flight's price (or ad's if its settings override Flight)
      </td>
    </tr>

    <tr>
      <td>
        `clearPrice`  
        (float)
      </td>

      <td>
        For a second price ad, the clear eCPM: a price per 1,000 impressions, whatever the rate type. It is not the price of one click or conversion (see `revenue`). Otherwise, the ad's `price`. See [Second Price Auctions](https://dev.kevel.com/docs/second-price-auctions).
      </td>
    </tr>

    <tr>
      <td>
        `revenue`  
        (float)
      </td>

      <td>
        What the ad earns per event: per impression for CPM, per click for CPC, per conversion for CPA. Flat rate ads (`rateType` = 1) earn 0. In a second price priority it is the amount after clearing, which can be lower than the ad's price. In the example above, the $10 CPC ad earns 8.02 per click.
      </td>
    </tr>

    <tr>
      <td>
        `rateType`  
        (enum)
      </td>

      <td>
        The value of `rateType` on the flight or ad (an enumerated type)
      </td>
    </tr>

    <tr>
      <td>
        `eCPM`  
        (float)
      </td>

      <td>
        The ad's own eCPM, used with its relevancy score to rank it: expected revenue per 1,000 impressions. For a CPM ad it is the price. For CPC and CPA ads past burn-in, the price multiplied by the click or conversion rate, multiplied by 1,000. It is not what the ad paid (see `clearPrice`).
      </td>
    </tr>

    <tr>
      <td>
        `optimizedPrice`  
        (float)
      </td>

      <td>
        The tROAS (target ROAS) optimization price; used with Autobid.
      </td>
    </tr>

    <tr>
      <td>
        `modifiedPrice`  
        (float)
      </td>

      <td>
        The `price` after `bidModifiers` have been applied.
      </td>
    </tr>
  </tbody>
</Table>

For flat rate ads (`rateType` = 1), see [Flat-rate Flights](https://dev.kevel.com/docs/flat-rate-flights).

## Provenance

Provenance identifies the demand source that each returned ad came from. This is useful when you want to distinguish ads booked directly in your own network from ads sourced from outside it — for example, to apply different rendering, labeling, or downstream logic to programmatic ads.

Provenance is opt-in. To request it, set `includeProvenanceData` to `true` in the Decision API request body:

```curl Requesting provenance data
curl -H 'Content-Type:application/json' -X POST -d '{"includeProvenanceData":true,"placements":[{"divName":"div0","networkId":1234,"siteId":123456,"adTypes":[5]}]}' https://e-1234.adzerk.net/api/v2
```

Each returned ad then carries a `provenance` string with exactly one of the following values:

<Table align={["left","left"]}>
  <thead>
    <tr>
      <th>
        Value
      </th>

      <th>
        Meaning
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `in_network`
      </td>

      <td>
        The ad came from a campaign set up directly within the network making the request
      </td>
    </tr>

    <tr>
      <td>
        `programmatic`
      </td>

      <td>
        The ad came from an [RTB](https://dev.kevel.com/docs/rtb-in-kevel) partner sourcing demand outside Kevel, such as an exchange integration
      </td>
    </tr>

    <tr>
      <td>
        `cross_network`
      </td>

      <td>
        The ad's bid was sourced from a different network within Kevel
      </td>
    </tr>
  </tbody>
</Table>

If `includeProvenanceData` is omitted or set to `false`, no `provenance` key appears anywhere in the response, so existing integrations are unaffected.

> 📘
>
> Whether the `programmatic` and `cross_network` values ever appear in your responses depends on which demand sources are enabled for your network. To find out which demand sources are active on your network — or to discuss adding programmatic or cross-network demand — please contact your account manager.

### Which ads carry a provenance value

Provenance is derived independently for every ad in the response, so a single response can mix values. It is returned on:

* the winning ad of a single-winner placement
* every ad in a [multi-winner placement's](https://dev.kevel.com/reference/multi-winner-placements) array
* every entry nested under `adChain`
* companion ads, on their own placements

Selections that render no ad object — such as an incrementality holdout — carry no provenance value.

```json Example response with mixed provenance
{
  "user": {
    "key": "abc"
  },
  "decisions": {
    "div0": {
      "adId": 1111,
      "creativeId": 2222,
      "flightId": 3333,
      "campaignId": 4444,
      "impressionUrl": "https://e-23.adzerk.net/i.gif?...",
      "clickUrl": "https://e-23.adzerk.net/r?...",
      "contents": [],
      "events": [],
      "provenance": "in_network"
    },
    "div1": [
      {
        "adId": 5555,
        "creativeId": 6666,
        "impressionUrl": "https://e-23.adzerk.net/i.gif?...",
        "clickUrl": "https://e-23.adzerk.net/r?...",
        "contents": [],
        "events": [],
        "provenance": "programmatic"
      },
      {
        "adId": 7777,
        "creativeId": 8888,
        "impressionUrl": "https://e-23.adzerk.net/i.gif?...",
        "clickUrl": "https://e-23.adzerk.net/r?...",
        "contents": [],
        "events": [],
        "provenance": "cross_network"
      }
    ]
  }
}
```

### Availability

Provenance is returned on API v2 JSON decision responses only (`POST /api/v2` and its aliases). The VAST, AMP, and ados.js serializers do not support `includeProvenanceData`, and setting the flag on those requests has no effect.

Provenance is not included in event-tracking URLs, and it is not available as a reporting dimension or in data shipping. If you need to analyze your demand mix across the network, please contact your Kevel account team.