---
updatedAt: 2026-10-13T08:13:26.000Z
agentTools:
  projectIndex: https://dev.kevel.com/llms.txt
---

# Getting Started Guide

## Initial Reading

Start with these overviews of our taxonomy and terminology:

* [Kevel Glossary](https://dev.kevel.com/docs/kevel-glossary)
* [Intro to Ad Tech](https://www.kevel.com/blog/advertising-terms/)
* [Ad Decision Engine Overview](https://dev.kevel.com/docs/delivery-basics)
* [Campaigns Overview](https://dev.kevel.com/docs/overview)
* [Inventory Overview](https://dev.kevel.com/docs/inventory-overview)
* [Ad Servers: The Definitive Guide](https://www.kevel.co/blog/what-is-an-ad-server/)

Next, we recommend making a few test requests against the APIs using our quickstart guides:

* [Decision API Quickstart](https://dev.kevel.com/docs/decision-api-quickstart)
* [Decision API (Advanced)](https://dev.kevel.com/docs/decision-api-advanced)
* [Management API Tutorial](https://dev.kevel.com/docs/management-api-tutorial)
* [UserDB Tutorial](https://dev.kevel.com/docs/userdb-tutorial)

## Understanding Inventory

[Inventory](https://dev.kevel.com/docs/inventory-overview) is the Kevel term for the properties (sites and apps) where your ads appear. Most of these are pre-created for you.

![](https://files.readme.io/073c27d893da3123b46c36129753f8008e29bce64500abcd17e47ee17956f5b7-Inventory_Breakdown-selection.png)

## Understanding Campaign Hierarchy

[Campaign](https://dev.kevel.com/docs/overview) covers who is advertising, how they target, and what the ad looks like. It is organized into four levels: [Advertisers](https://dev.kevel.com/docs/advertisers) --> [Campaigns](https://dev.kevel.com/docs/campaigns) --> [Flights](https://dev.kevel.com/docs/flights) --> [Ads](https://dev.kevel.com/docs/ads).

![](https://files.readme.io/d1830487ef583cba8ac71e93bcbe91ebca4d5b014dcc0aaa730bcd7c96dfeb43-Campaign_Breakdown-selection.png)

## Building The Ad Unit

Before you can serve an ad, you need to configure your Custom Ad Unit. You can do this in the [UI](https://dev.kevel.com/docs/ad-sizes#adding-custom-ad-sizes-with-ui) or through the [API](https://dev.kevel.com/reference/ad-type).

You can also use our [Creative Templates](https://dev.kevel.com/docs/creative-templates) option. Speak to your Kevel rep to learn more.

For more on ads, see:

* [Creatives](https://dev.kevel.com/docs/creatives)
* [Ads](https://dev.kevel.com/docs/ads)
* [Create Creative API Endpoint](https://dev.kevel.com/reference/create-creative)
* [Create Ads API Endpoint](https://dev.kevel.com/reference/creative-flight-map)
* [Ad Sizes / Types](https://dev.kevel.com/docs/ad-sizes)

<Callout icon="📘" theme="info">
  ### Note

  In Kevel terminology, a 'creative' holds the details of what gets shown, such as the image, the source URL, and metadata. An 'ad' is a creative that is tied to a Flight and therefore eligible to serve, which means targeting attaches to an 'ad' rather than a 'creative'. We separate the two so that the same 'creative' can be used across multiple Flights.
</Callout>

## Understanding Priorities

[Priorities](https://dev.kevel.com/docs/priorities) are the business rules that decide which ads take precedence over others. The chart below shows how this works:

![](https://files.readme.io/9efbdd33132a82a2f07ebfea94ef33c50763aa52c3944b142c409670a25619c0-Priorities_Diagram-selection.png)

Priorities run from 1 (the highest) to 100 (the lowest). Kevel gives you four by default, and you can add up to 96 more:

| Priority Name | Priority Number |
| :------------ | :-------------- |
| Sponsorship   | 1               |
| Premium       | 5               |
| Networks      | 10              |
| House         | 20              |

Here are a few ways to structure them:

| Scenario                                                                                   | Advice                                                                                                                  |
| :----------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------------------------------------------------- |
| You want to sell every available impression to one advertiser                              | Use default "Sponsorship" (#1) for that Advertiser's Flight.                                                            |
| You want all advertisers to bid on each ad slot                                            | Use default "Premium" (#5) for all those advertisers. They are all equally eligible.                                    |
| You want high-CPM advertisers eligible first, then unfilled slots opened to lower-CPM ones | Use default "Premium" (#5) for high CPMs. Create a new Priority (say, "Remnant"), with Priority of 8, for the low CPMs. |
| You want to show house ads when no advertisers are available for a given ad slot           | Use default "House" (#20), alongside higher Priorities.                                                                 |

## Understanding Business Logic

With Kevel, you can [sell](https://dev.kevel.com/docs/sales-models), [pace](https://dev.kevel.com/docs/ad-pacing-goals), and [cap](https://dev.kevel.com/docs/ad-capping) by any metric, including:

| Metric                                            | Examples                                                              |
| :------------------------------------------------ | :-------------------------------------------------------------------- |
| [Flat rate](https://dev.kevel.com/docs/flat-rate-flights) (fixed amount) | $100K over 30 days.                                                   |
| CPM<br />*(cost per thousand impressions)*        | $5.00 CPMs for 100K impressions.                                      |
| CPC<br />*(cost per click)*                       | $1.00 CPC for 10K clicks.                                             |
| CPA<br />*(cost per action)*                      | $20 CPA for 500 actions. Here, "actions" can be any event you choose. |

You can also optimize revenue through [bidding strategies](https://dev.kevel.com/docs/delivery-basics#selection-methods):

| How Winner Is Selected                                                                                         | Example                                                                                                                                                        | Use Cases                                                                                                                                                       |
| :------------------------------------------------------------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Lottery (proportional selection of eligible ads)                                                               | Both Dunkin Donuts and Starbucks are eligible to show an ad. The Ad Decision Engine picks Starbucks because it is under-pacing.                                | Best when you need to guarantee a set number of impressions, clicks, spend, and so on.                                                                          |
| [Auctions](https://dev.kevel.com/docs/optimization) (highest bidder wins)                                                             | Both Dunkin Donuts (with a $20 CPM bid) and Starbucks (with a $10 CPM) are eligible to appear. Dunkin Donuts is picked because it has higher bid and pays $20. | Best when you want to maximize revenue. Because every ad is an auction, it is difficult to guarantee an advertiser how many impressions or clicks will be seen. |
| [2nd Price Auctions](https://dev.kevel.com/docs/second-price-auctions) (highest bidder wins, pays $0.01 more than 2nd highest bidder) | Both Dunkin Donuts (with a $20 CPM bid) and Starbucks (with a $10 CPM) are eligible to appear. Dunkin Donuts is picked and pays $10.01.                        | Maximizes revenue while selling the ad at "true market value". Advertisers generally pay less and see better performance, which increases stickiness.           |
| [Relevancy Score](https://dev.kevel.com/docs/relevancy-score)                                                                         | Dunkin Donuts and Starbucks have the same bid, but Starbucks's relevancy score is higher and is selected.                                                      | Best when you want the Ad Decision Engine to weigh a relevance metric that you create and send. Useful for spotting ads that users are less likely to want.     |

You set up these rules through a combination of [Priorities / Waterfall](https://dev.kevel.com/docs/priorities) and [Flights](https://dev.kevel.com/docs/flights). Refer to our documents for more details.

## Tracking Custom Events

Kevel lets you track impressions, clicks, actions, and any [custom metric](https://dev.kevel.com/docs/custom-event-tracking). For custom metrics, you request custom event URLs and then ping Kevel server-side when the events happen, or add the pixel endpoint to the page.

For each [Event ID](https://dev.kevel.com/docs/custom-event-tracking#event-id-mapping---named-events) you request, you'll receive separate URLs to hit.

## Targeting Options

Robust targeting is how you justify higher ad rates and offer better ad experiences to your users. The most relevant options are:

* [Geo-Targeting](https://dev.kevel.com/docs/geo-location)
* [Day & Hour Parting](https://dev.kevel.com/docs/day-hour-parting)
* [Custom Targeting](https://dev.kevel.com/docs/custom-targeting)
* [Frequency Capping](https://dev.kevel.com/docs/frequency-capping-1)
* [User-Level Targeting](https://dev.kevel.com/docs/user-level)
* [Keyword Targeting](https://dev.kevel.com/docs/keyword-targeting)
* [Search Term Targeting](https://dev.kevel.com/docs/search-term-targeting)
* [Category Targeting](https://dev.kevel.com/docs/category)

## UserDB Targeting

One of the most powerful tools available to you is [UserDB](https://dev.kevel.com/docs/userdb-1), your 1st party data store for activating user-level targeting.

If you'd like to test demographic, interest, and additional user-level targeting, start here:

* [UserDB](https://dev.kevel.com/docs/userdb-1)
* [UserDB Tutorial (Interests)](https://dev.kevel.com/docs/userdb-tutorial)
* [User-Level Targeting](https://dev.kevel.com/docs/user-level)

<Callout icon="📘" theme="info">
  ### Note

  Kevel does not provide user-level data. You need to collect it and send it to UserDB. From there, Kevel does the heavy lifting of using that data to determine whether an ad is eligible to be shown.
</Callout>

## What to Send in Decision API Request (For Beginners)

The fields below are the most important ones to pass in the Decision API Request. Refer [here](https://dev.kevel.com/reference/request) for a full list of all parameters and example JSON requests.

**Arguments**

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

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

  <tbody>
    <tr>
      <td>
        `placements`
        (object)
      </td>

      <td>
        The details of the placement (ad slot). Required.
      </td>
    </tr>

    <tr>
      <td>
        `user`<br />(object)
      </td>

      <td>
        The UserKey for UserDB.
      </td>
    </tr>

    <tr>
      <td>
        `time`<br />(string)
      </td>

      <td>
        The UNIX epoch timestamp. For time-of-day targeting.
      </td>
    </tr>

    <tr>
      <td>
        `ip`<br />(string)
      </td>

      <td>
        IP Address. For location targeting.
      </td>
    </tr>

    <tr>
      <td>
        `keywords`<br />(array)
      </td>

      <td>
        Keywords for [Keyword Targeting](https://dev.kevel.com/docs/keyword-targeting).
      </td>
    </tr>
  </tbody>
</Table>

**Placement Arguments**

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

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

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

      <td>
        A unique name for the placement, defined by you. This field is required.
      </td>
    </tr>

    <tr>
      <td>
        `networkId`<br />(integer)
      </td>

      <td>
        Your numeric network id. This field is required.
      </td>
    </tr>

    <tr>
      <td>
        `siteId`<br />(integer)
      </td>

      <td>
        The numeric site id. The "site" will likely be Web, iOS, or Android. This field is required.
      </td>
    </tr>

    <tr>
      <td>
        `adTypes`<br />(array)
      </td>

      <td>
        The adType id for your native ad unit. This field is required.
      </td>
    </tr>

    <tr>
      <td>
        `eventIds`<br />(array)
      </td>

      <td>
        Requests a URL for a special event. See [here for more info](https://dev.kevel.com/docs/custom-event-tracking).
      </td>
    </tr>

    <tr>
      <td>
        `properties`<br />(object)
      </td>

      <td>
        A hash of key/value pairs used for [Custom Targeting](https://dev.kevel.com/docs/custom-targeting).
      </td>
    </tr>
  </tbody>
</Table>

Three of those values are IDs you'll need to look up first.

**To get** `networkId`: in the UI, click the info icon ("i" in a circle) in the far upper right.

**To get** `siteId`: in the UI, go to Inventory --> Sites --> the ID is to the right of the Site.

**To get the** `adTypes` **id**, you have a few options:

1. If it's a pre-created ad type, it's listed [here](https://dev.kevel.com/docs/ad-sizes)
2. If you create it with the [Ad Types API](https://dev.kevel.com/reference/create-ad-types), it's in the response as `id`
3. You can send a request to the [List Ad Types API](https://dev.kevel.com/reference/list-ad-types) to get it
4. You can also go to UI --> Inventory --> Ad Sizes --> the ID is to the right of the Name/Width/Height

<Image src="https://files.readme.io/7ad60b4-Screen_Shot_2018-09-25_at_10.54.27_AM.png" align="center" width="80%" border={true} />

## Most Relevant Parameters in Decision API Response

The [Decision API Response](https://dev.kevel.com/reference/response) returns many fields, some more relevant than others. The more salient ones are:

| Property        | Notes                                                                                                                                             |
| :-------------- | :------------------------------------------------------------------------------------------------------------------------------------------------ |
| `imageUrl`      | The URL of the hosted Kevel image.                                                                                                                |
| `clickUrl`      | URL for the click event, which could be an outside link, an "expand the profile" click, and so on. You can leave it out if you don't need it.     |
| `impressionUrl` | URL that records impressions. Needs to be called via browser or pinged server-side.                                                               |
| `customData`    | This is the `metadata` field. Use it if there's additional info tied to the ad that you want to insert into your Content Management System (CMS). |
| `events`        | The URLs for any custom events you requested, broken down by `id`. These can be pinged server-side.                                               |

You'll want to parse this information and insert it into your CMS to create a fully integrated native ad.

## Using Management APIs

You can build your own ad server with a combination of the Decision API and the Kevel UI, but many clients prefer the Management APIs to automate the creation, updating, and deleting of Campaigns, Flights, Ads, Priorities, and more.

This is especially useful if you are building a self-serve dashboard for internal users or external advertisers.

For next steps, try the [Management API Tutorial](https://dev.kevel.com/docs/management-api-tutorial). Additional reading:

* [Campaign API Overview](https://dev.kevel.com/reference/campaign-api-overview)
* [Inventory API Overview](https://dev.kevel.com/reference/inventory-api-overview)
* [User Management API Overview](https://dev.kevel.com/reference/log-in-endpoints)

## Using The Reporting API

The [Kevel Reporting API](https://dev.kevel.com/reference/reporting-api-overview) offers multiple ways to pull data into your system, including [scheduled reports](https://dev.kevel.com/reference/scheduled-reports) and [real-time data](https://dev.kevel.com/reference/real-time-reporting-api).