> For the complete documentation index, see [llms.txt](https://help.branch.io/llms.txt).

# MediaMath

> Connect MediaMath to Branch for attribution and deep linking on programmatic campaigns.

## Overview

Branch is excited to partner with MediaMath as one of our Ads Partners.

### Partner Capabilities

| Capability | Details |
| --- | --- |
| Company Type | Contact support at MediaMath for more information. |
| Deep Linking | Contact support at MediaMath for more information. |
| Attribution | Contact support at MediaMath for more information. |
| Ad Campaign Types | Contact support at MediaMath for more information. |
| Ad Formats | Contact support at MediaMath for more information. |
| Click Types | Contact support at MediaMath for more information. |
| Supported Platforms | Contact support at MediaMath for more information. |
| Link Wrapping | Contact support at MediaMath for more information. |
| Cost Ingestion Support | Contact support at MediaMath for more information. |
| Cost Ingestion Types | Contact support at MediaMath for more information. |
| Pricing Models | Contact support at MediaMath for more information. |

## Before you begin

In order to enable MediaMath, you need to have completed the following:

1. Created a [Branch Dashboard](https://dashboard.branch.io/).
2. Have Branch's Performance [product](https://help.branch.io/marketer-hub/products.md) enabled for your Branch Account.
3. Implemented the Branch SDK into your mobile app ([iOS](https://help.branch.io/developer-hub/ios-sdk-overview.md) | [Android](https://help.branch.io/developer-hub/android-sdk-overview.md))

   - [Track events](https://help.branch.io/developer-hub/track-branch-events.md)
4. Running campaigns through MediaMath.

## Enable MediaMath

### 1. Enable MediaMath in Branch

In the Branch Dashboard under **Ads** > [**Partner Management**](https://dashboard.branch.io/ads/partner-management), find/search for MediaMath. If you're already logged into the Branch Dashboard, you can also click [here](https://dashboard.branch.io/ads/partner-management/a_mediamath?tab=settings) to go there directly.

You'll need to input your **Mediamath Advertiser ID**. Please reach out to your MediaMath Account Manager for details.

Click the **Save & Enable** button.

![](https://help.branch.io/img/1a145b7-mediamath_enable-3-.png "mediamath enable.png")

### 2. Configure Postbacks

> **Note: PAM uses two separate toggles**
>
> The **PAM for Publishers** toggle on the **Postback Config** tab is separate from the PAM switch in your attribution settings. **PAM for Publishers** must be enabled to reconcile conversion events with your partner. To attribute events with PAM, you also need PAM enabled at the org-level or app-level under **Configure** > **App Settings** > **Attribution**. Learn more in our [PAM Overview](https://help.branch.io/marketer-hub/predictive-aggregate-measurement.md#pam-for-publishers).

Enabling MediaMath will automatically enable the following postback:

- INSTALL

![](https://help.branch.io/img/9d7e919-mediamath_postbacks-3-.png "mediamath postbacks.png")

You can configure these postbacks or add more under the [**Postback Config**](https://dashboard.branch.io/ads/partner-management/a_mediamath?tab=postback) tab.

#### Send All Events

Optionally, you can check the checkbox for a given postback for sending all events. When checked, all events will be sent regardless of attribution. Otherwise, the postback will only fire for events attributed to MediaMath.

#### Adding Postbacks

Click the **Add New Postback** button at the bottom of the screen. A modal will appear that will allow you to select an event that you are tracking with the Branch SDKs (including Custom Events).

![](https://help.branch.io/img/c1b289e-Add_New_Postbacks-99-.gif "Add New Postbacks.gif")

For more in-depth postback configurations, view our guides:

- [Basic Postback Configuration](https://help.branch.io/marketer-hub/basic-postback-configuration.md)
- [Advanced Postback Configuration](https://help.branch.io/developer-hub/advanced-postback-configuration.md)
- **Recommended** 👍 [Test Postbacks](https://help.branch.io/marketer-hub/testing-postbacks.md)

### 3. Configure Attribution Windows

After configuring your events, navigate to the [**Attribution Windows**](https://dashboard.branch.io/ads/partner-management/a_mediamath?tab=attribution_windows) tab to set windows by attribution type.

#### Recommended Attribution Windows

| Attribution Type | Window |
| --- | --- |
| click to session start | 90 days |
| click to install | 30 days |
| click to conversion event | 90 days |
| impression to session start | 1 day |
| impression to install | 1 day |
| impression to conversion event | 1 day |

### 4. Create Branch Ad Link

Next, you'll need to create a Branch Ad Link for your MediaMath campaigns in order for Branch to properly attribute conversions.

[Create Ad Links](https://help.branch.io/marketer-hub/ad-links.md)

The Branch Ad Link you create will be placed in your MediaMath campaign.

### 5. Verify Data in Branch

After launching your MediaMath campaigns, and conversions begin to happen, you'll want to verify data is being sent from Branch to MediaMath. You can look at the [Branch Dashboard's Liveview Webhook Records](https://dashboard.branch.io/liveview/webhooks) and apply the following filter:

| Filter | Operator | Value |
| --- | --- | --- |
| ad partner (3p) | equals | `a_mediamath` |

Once applied, data should flow through the Liveview, and you can see the data being sent to MediaMath from Branch.
