> ## 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.

# AdForm

> Learn how to set up AdForm integration with Rockerbox for display 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 AdForm 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

## URL Tracking Parameters

**Example Parameter String:**

```text wrap theme={null}
af_campaign=__ADFCAM__&af_campaignid=__ADFCAMID__&af_placement=__ADFPLA__&af_placementid=__ADFPLAID__&af_creative=__ADFCRE__&af_creativeid=__ADFCREID__&af_domain=__ADFRTBDOM__
```

<Accordion title="Parameter Details">
  | Parameter        | Macro           | Description            |
  | ---------------- | --------------- | ---------------------- |
  | `af_campaign`    | `__ADFCAM__`    | Campaign Name          |
  | `af_campaignid`  | `__ADFCAMID__`  | Campaign ID (required) |
  | `af_placement`   | `__ADFPLA__`    | Placement Name         |
  | `af_placementid` | `__ADFPLAID__`  | Placement ID           |
  | `af_creative`    | `__ADFCRE__`    | Creative Name          |
  | `af_creativeid`  | `__ADFCREID__`  | Creative ID            |
  | `af_domain`      | `__ADFRTBDOM__` | RTB Domain             |
</Accordion>

## Impression Pixel Tracking

Impression pixels provide user-level tracking for view-based attribution.

### Impression Pixel

```text wrap theme={null}
https://metrics.getrockerbox.com/track/v5?source=[SOURCE]&tier_one=adform&tier_two=__ADFCAM__&tier_three=__ADFCAMID__&tier_four=__ADFPLAID__&tier_five=__ADFCREID__&auction_id=__ADFIMPID__&mobile_device_id=__ADFDEVID__&referrer=__ADFRTBDOM__
```

**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`         | `adform`        | Platform identifier (hardcoded) |
  | `tier_two`         | `__ADFCAM__`    | Campaign Name (required)        |
  | `tier_three`       | `__ADFCAMID__`  | Campaign ID (required)          |
  | `tier_four`        | `__ADFPLAID__`  | Placement ID (required)         |
  | `tier_five`        | `__ADFCREID__`  | Creative ID (required)          |
  | `auction_id`       | `__ADFIMPID__`  | Impression ID (required)        |
  | `mobile_device_id` | `__ADFDEVID__`  | Device ID                       |
  | `referrer`         | `__ADFRTBDOM__` | RTB Domain                      |
</Accordion>

## Batch Spend

AdForm 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 AdForm batch file delivery
2. Share the endpoint details with AdForm 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
Banner ID
Banner/Adgroups
Date
Cost
```

## Verification

After setup:

1. Verify impression pixels are firing correctly
2. Validate click tracking parameters are populating
3. Check spend data appears in Rockerbox dashboard one day post-launch
4. Contact [support@rockerbox.com](mailto:support@rockerbox.com) for QA assistance
