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

# Enable AdColony (New)

> Integrate AdColony with Branch for seamless in-app video advertising, enabling effective attribution and campaign management for brands and marketers.

## Overview

[AdColony](https://www.adcolony.com) is a mobile advertising platform specializing in in-app video advertising for brands and performance marketers. Connect AdColony to Branch to attribute clicks and installs and configure Postbacks.

For more information about integrating ad partners in general, visit our [Ad Partner Integration Guide](https://help.branch.io/marketer-hub/ad-partner-integration-guide-new.md).

> **Note: this guide is for new Branch**
>
> Please note that this guide is about integrating AdColony in the [new Branch experience](https://help.branch.io/marketer-hub/new-branch-overview.md). For information on AdColony in legacy Branch, visit our [legacy guide](https://help.branch.io/marketer-hub/adcolony.md).

### Partner capabilities

| Capability | Details |
| --- | --- |
| Company type | Non-SAN ad network |
| Deep linking | Supported |
| Attribution | Click-through attribution, View-through attribution |
| Ad campaign types | Acquisition campaigns |
| Ad formats | Video |
| Click types | Client-side click |
| Supported platforms | iOS, Android, Amazon |
| Link wrapping | Not supported |
| Cost ingestion support | Not supported |
| Pricing models | CPI, CPM |

## Before you begin

To set up the AdColony integration, you need:

- Ad partner integrations enabled for your Branch account. Availability varies by Branch plan. See [Branch pricing](https://www.branch.io/pricing/) or contact your Branch representative.
- A Branch account with access to **Configuration > Ad Partners** and admin permissions to enable and configure integrations.
- The Branch SDK implemented in your app ([iOS](https://help.branch.io/developer-hub/ios-sdk-overview.md) | [Android](https://help.branch.io/developer-hub/android-sdk-overview.md)) with [event tracking](https://help.branch.io/developer-hub/track-branch-events.md) configured.
- Active campaigns running in AdColony.
- [PAM](https://help.branch.io/marketer-hub/predictive-aggregate-measurement.md) enabled (recommended).

> **Note: PAM uses two separate toggles**
>
> The **PAM for Publishers** toggle for this partner, found under **Partner settings** > **Manage account**, is separate from the account-level **PAM switch**. **PAM for Publishers** must be enabled to reconcile conversion events with your partner. To attribute events with PAM, you also need PAM enabled on the [Attribution page](https://help.branch.io/account-hub/attribution-page-new.md) under **Configuration** > **Attribution**. Learn more in our [PAM Overview](https://help.branch.io/marketer-hub/predictive-aggregate-measurement.md#pam-for-publishers).

## Enable AdColony

To begin, navigate to **Configuration > Ad Partners > AdColony**.

AdColony doesn't require credentials to activate. The integration is enabled automatically when you select **Enable AdColony** on the AdColony page.

(Recommended) To configure the optional **PAM for Publishers** privacy setting, select **Partner settings** to open the **Manage account** dialog and enable the toggle. When enabled, [PAM for Publishers](https://help.branch.io/marketer-hub/predictive-aggregate-measurement.md#pam-for-publishers) removes advertiser-specific user identifiers from postbacks for users who haven't opted in via Apple's App Tracking Transparency (ATT) framework, prioritizing identifiers provided directly by AdColony.

## Configure attribution

AdColony overrides your global app attribution settings by default. The following attribution windows are pre-configured on the **Attribution windows** tab:

| Attribution type | Default | AdColony's recommendation |
| --- | --- | --- |
| Click to conversion event | 90 days | 90 days |
| Click to install | 30 days | 30 days |
| Click to start session | 90 days | 90 days |
| Household measurement window | 2 days | — |
| Impression to conversion event | 1 day | 1 day |
| Impression to install | 1 day | 1 day |
| Impression to start session | 1 day | 1 day |

For more information, follow [Configure attribution](https://help.branch.io/marketer-hub/ad-partner-integration-guide-new.md#configure-attribution) in the general [Ad Partner Integration Guide](https://help.branch.io/marketer-hub/ad-partner-integration-guide-new.md).

## Configure postbacks

Enabling AdColony automatically activates postbacks for `INSTALL` and `OPEN`. The default postback URL is:

```
https://pie.adcolony.com/api/v1/${ (name)! }?api_key=AmfpbZYY4WUzJVEgFEJMLF5Xd4n49RxU&product_id=<@loop data=app.app_bundles val="bundle"><#if user_data.os == bundle.os><#if bundle.os=="ANDROID">${(bundle.android.package_name)!}<#elseif bundle.os == "IOS">${(bundle.ios.itunes_id?substring(2))!}</#if><@break/></#if></@loop>&raw_advertising_id=${ (user_data.idfa)! }&google_ad_id=${ (user_data.aaid)! }&click_id=${ (last_attributed_touch_data.~click_id)! }&adc_conversion=<#if (last_attributed_touch_data.$3p)! == (ad_network.machine_name)!>1<#else>0</#if>
```

To add postbacks for additional events or to customize behavior, follow [Configure postbacks](https://help.branch.io/marketer-hub/ad-partner-integration-guide-new.md#configure-postbacks) in the general [Ad Partner Integration Guide](https://help.branch.io/marketer-hub/ad-partner-integration-guide-new.md).

## Create a Branch Ad Link

Create a Branch Ad Link to use in your AdColony campaigns. Branch uses the link to attribute clicks and deep link users into your app.

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

## Verify your data

After your integration is connected and events are flowing, you can verify data is reaching Branch:

- **In Branch** [**Liveview**](https://app.branch.io/testing-and-monitoring/events): confirm that events from your app appear in real time. This is the fastest way to confirm SDK events are firing.
- **In Branch** [**Analysis dashboards**](https://help.branch.io/marketer-hub/analysis-dashboards-overview-new.md): review attributed installs and events where `Ad Partner Name = AdColony`.
- **In AdColony**: confirm that forwarded events are appearing in your AdColony attribution reporting.

## Data mappings

### Campaign data

Branch populates the following fields from AdColony campaign data.

| Branch field | Partner data |
| --- | --- |
| `~advertising_partner_name` | `"AdColony"` (static) |
| `~click_id` | click_id |
