> ## Documentation Index
> Fetch the complete documentation index at: https://data-foundation.rockerbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# AdTheorent

> Learn how to set up AdTheorent integration with Rockerbox for display and OTT tracking

## Setup Process

1. Contact [support@rockerbox.com](mailto:support@rockerbox.com) to enable the integration. Let the team know the launch date and the [tier structure](https://help.rockerbox.com/article/obce43haen-1-hierarchy-mappings) you'd like applied
2. Append click-through URL parameters to your landing page URLs and apply the impression pixel to all active ads using the instructions below. Parameters use macros and do not need to be manually replaced
3. Set up automated spend reporting from AdTheorent to Rockerbox (see Batch Spend section below). This should be completed before launch
4. Allow at least one full day of data collection after launch, then let Rockerbox know you have launched so they can QA your URL and impression pixels

**Match pixel to inventory type.** Using the wrong pixel type (e.g., Display pixel on OTT inventory) will cause tracking failures.

## Display

### URL Tracking Parameters

**Example Parameter String:**

```text wrap theme={null}
at_campaignid=[CAMPAIGNID]&at_adgroupid=[LINEITEMID]&at_creativeid=[CREATIVEID]&at_strategyid=[STRATEGYID]
```

<Accordion title="Parameter Details">
  | Parameter       | Macro          | Description            |
  | --------------- | -------------- | ---------------------- |
  | `at_campaignid` | `[CAMPAIGNID]` | Campaign ID (required) |
  | `at_adgroupid`  | `[LINEITEMID]` | Line Item/Ad Group ID  |
  | `at_creativeid` | `[CREATIVEID]` | Creative ID            |
  | `at_strategyid` | `[STRATEGYID]` | Strategy ID            |
</Accordion>

### Impression Pixel

```text wrap theme={null}
https://metrics.getrockerbox.com/track/v5?source=[SOURCE]&tier_one=adtheorent-display&tier_two=[CAMPAIGNID]&tier_three=[LINEITEMID]&tier_four=[CREATIVEID]&tier_five=[STRATEGYID]&auction_id=[TIMESTAMP]
```

**Note:** `[SOURCE]` is a hardcoded value that must be obtained from Rockerbox. It's your company's [Account ID](https://app.rockerbox.com/v3/settings/account).

<Accordion title="Parameter Details">
  | Parameter    | Macro                | Description                     |
  | ------------ | -------------------- | ------------------------------- |
  | `tier_one`   | `adtheorent-display` | Platform identifier (hardcoded) |
  | `tier_two`   | `[CAMPAIGNID]`       | Campaign ID (required)          |
  | `tier_three` | `[LINEITEMID]`       | Line Item ID (required)         |
  | `tier_four`  | `[CREATIVEID]`       | Creative ID (required)          |
  | `tier_five`  | `[STRATEGYID]`       | Strategy ID                     |
  | `auction_id` | `[TIMESTAMP]`        | Timestamp (required)            |
</Accordion>

## OTT/CTV

Uses the same URL parameters as Display. The only difference is `tier_one=adtheorent-ott` on the impression pixel.

### URL Tracking Parameters

**Example Parameter String:**

```text wrap theme={null}
at_campaignid=[CAMPAIGNID]&at_adgroupid=[LINEITEMID]&at_creativeid=[CREATIVEID]&at_strategyid=[STRATEGYID]
```

### Impression Pixel

```text wrap theme={null}
https://metrics.getrockerbox.com/track/v5?source=[SOURCE]&tier_one=adtheorent-ott&tier_two=[CAMPAIGNID]&tier_three=[LINEITEMID]&tier_four=[CREATIVEID]&tier_five=[STRATEGYID]&auction_id=[TIMESTAMP]
```

**Note:** `[SOURCE]` is a hardcoded value that must be obtained from Rockerbox. It's your company's [Account ID](https://app.rockerbox.com/v3/settings/account).

## Batch Spend

AdTheorent will need to set up automated reporting within their platform to be sent to Rockerbox daily.

1. Contact [support@rockerbox.com](mailto:support@rockerbox.com) to obtain the endpoint details for AdTheorent batch file delivery
2. Share the endpoint details with AdTheorent and request daily automated reporting with the following requirements:
   * Files sent on a daily cadence
   * Each file contains the previous 1 day of spend data

**Required Columns** (must match exactly, including capitalization and spacing):

```
campaign id
campaign
line item id
line item
creative id
creative concept
date
client spend
impressions
clicks
strategy id
```

## Verification

After setup:

1. Verify impression pixels are firing correctly (check by inventory type)
2. Validate click tracking parameters are populating
3. Check spend data appears in Rockerbox dashboard after at least one full day
4. Contact [support@rockerbox.com](mailto:support@rockerbox.com) for QA assistance
