---
updatedAt: 2026-09-29T23:38:36.000Z
agentTools:
  projectIndex: https://dev.kevel.com/llms.txt
---

# Ad Codes

> 📘 Note
>
> For security and page load reasons, we strongly recommend serving ads through Kevel's [Decision API](https://dev.kevel.com/reference/request).

## Overview

Kevel offers four ad code options: Synchronous, Asynchronous, Email, and 3rd Party Ad Server.

## Ad Code Options

**Standard (Asynchronous)** code loads ads independently of the rest of the page, so it won't slow down page loads. It consists of a JavaScript tag plus an HTML div that the JavaScript loads the placement into. When a page loads with asynchronous ad code, the code tells the browser to carry on loading everything else while it waits for the creative from Kevel.

**Synchronous** code loads on a page the way a page normally does: line by line, waiting for each element. It can potentially slow down page loads, especially if the synchronous code is serving third-party ads that pass impressions from one server to another.

**Email code** consists of a static link and a static image tag. It can only serve images, not JavaScript/HTML creatives, which means it cannot serve tags from other networks. Only use email code if other options aren't available.

**3rd Party Ad Server** code is useful if you are serving Kevel ads through another server (such as DFP), or if you need to serve ads to a platform where HTML cannot be used. Note that 3rd Party Ad Server code cannot be used with companion ads or other distribution options.

## Ad Code Components

All Standard ad tags contain a comment that explains what the code loads:

```js
/* load placement for account: NetworkName, site: SiteName, size: 160x600 - Wide Skyscraper*/
```

The `ados_add_placement()` function loads the actual placement:

```js
ados_add_placement(1613, 15404, "azk57720", 6);
```

Its four arguments are:

* `1613` is your **network ID**.
* `15404` is the **site ID**.
* `"azk57720"` is the placement name, which Kevel generates randomly. It must match in both the script and the `<div>`.
* `6` is the **adType ID**.