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

# AdMedia

> Learn how to set up AdMedia integration with Rockerbox for search and 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 display placements using the instructions below. Parameters use macros and do not need to be manually replaced
3. Set up automated spend reporting from AdMedia 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

## Search Ads

### URL Tracking Parameters

**Example Parameter String:**

```text wrap theme={null}
am_campaignid={campaign_id}&am_creativeid={creativeid}&am_targetid={TargetID}
```

<Accordion title="Parameter Details">
  | Parameter       | Macro           | Description            |
  | --------------- | --------------- | ---------------------- |
  | `am_campaignid` | `{campaign_id}` | Campaign ID (required) |
  | `am_creativeid` | `{creativeid}`  | Creative ID            |
  | `am_targetid`   | `{TargetID}`    | Target ID              |
</Accordion>

## Display and Contextual Ads

### URL Tracking Parameters

Use the same URL parameters as Search Ads above.

**Example Parameter String:**

```text wrap theme={null}
am_campaignid={campaign_id}&am_creativeid={creativeid}&am_targetid={TargetID}
```

### Impression Pixel Tracking

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

```text wrap theme={null}
https://metrics.getrockerbox.com/track/v5?source=[SOURCE]&tier_one=admedia&tier_two={campaign_id}&tier_three={creativeid}&tier_four={TargetID}
```

**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`   | `admedia`       | Platform identifier (hardcoded) |
  | `tier_two`   | `{campaign_id}` | Campaign ID (required)          |
  | `tier_three` | `{creativeid}`  | Creative ID                     |
  | `tier_four`  | `{TargetID}`    | Target ID                       |
</Accordion>

## Batch Spend

AdMedia 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 SFTP endpoint details for AdMedia batch file delivery
2. Share the endpoint details with AdMedia 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
   * Reports must contain the columns exactly as noted below, including capitalization and spacing

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

```
Date
Campaign ID
Campaign
Creative ID
Creative
Spend ($)
Impressions
Clicks
```

## 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 after at least one full day
4. Contact [support@rockerbox.com](mailto:support@rockerbox.com) for QA assistance
