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

# Enable Remerge (New)

> Connect Remerge to Branch to attribute clicks and installs on mobile app retargeting and re-engagement campaigns.

## Overview

[Remerge](https://www.remerge.io/) is a demand-side platform (DSP) that specializes in mobile app retargeting and re-engagement. Connect Remerge 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 Remerge in the [new Branch experience](https://help.branch.io/marketer-hub/new-branch-overview.md). For information on Remerge in legacy Branch, visit our [legacy guide](https://help.branch.io/marketer-hub/remerge.md).

### Partner capabilities

| Capability | Details |
| --- | --- |
| Company type | Ad network, DSP, RTB |
| Deep linking | Supported |
| Attribution | Click-through attribution, View-through attribution |
| Ad campaign types | Acquisition campaigns, Retargeting campaigns |
| Ad formats | Contact Remerge for details. |
| Click types | Client-side click, Server-side click |
| Supported platforms | iOS, Android |
| Link wrapping | Supported |
| Cost ingestion support | Supported (via API) |
| Pricing models | CPC |

## Before you begin

To set up the Remerge 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.
- A Remerge account with admin access.
- [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 Remerge

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

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

## Configure attribution

To configure attribution windows, select the **Attribution windows** tab on the Remerge page.

To minimize discrepancies when comparing Branch and Remerge reporting, match your Branch attribution windows to the settings in your Remerge account.

| Attribution type | Default | Remerge's recommendation |
| --- | --- | --- |
| Click to start session | 1 day | 90 days |
| Click to install | 7 days | 30 days |
| Click to conversion event | 30 days | 90 days |
| Impression to start session | 1 day | 1 day |
| Impression to install | 1 day | 1 day |
| Impression to conversion event | 7 days | 1 day |
| Deep linking duration | 120 minutes | — |

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 Remerge automatically activates postbacks for `INSTALL`, `OPEN`, `PURCHASE`, `ADD_TO_CART`, `ADD_TO_WISHLIST`, `VIEW_ITEM`, and `VIEW_ITEMS`. The default postback URL template is:

```
https://remerge.events/branch?app_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>&event=${ (name)! }&ts=${ (timestamp/1000)?long }&partner=branch&key=X66S05UQ&idfa=${(user_data.idfa)!?upper_case}&aaid=${(user_data.aaid)!?lower_case}&country=${ (user_data.geo_country_code)! }&os_name=${ (user_data.os)! }&os_version=${ (user_data.os_version)! }&app_version=${ (user_data.app_version)! }&campaign=${ (last_attributed_touch_data.~campaign_id)! }&ad=${ (last_attributed_touch_data.~ad_set_id)! }&creative=${ (last_attributed_touch_data.~creative_name)! }&click_id=${ (last_attributed_touch_data.~click_id)! }&is_attributed=<#if (last_attributed_touch_data.$3p)! == (ad_network.machine_name)!>1<#else>0</#if>&network=${ last_attributed_touch_data.$3p }&data=<@urlencode>{"data":<@jsonmap data=event_data></@jsonmap>, "products":<@jsonmap data=content_items></@jsonmap>}</@urlencode>&partner_attribution_method=<#if last_attributed_touch_type == "CLICK">click<#elseif last_attributed_touch_type == "IMPRESSION">view</#if>&is_organic=<#if (last_attributed_touch_data.$3p)?? >0<#else>1</#if>&label=${ (last_attributed_touch_data.label)! }&idfv=${(user_data.idfv)!?upper_case}&ip=${ (user_data.ip)! }&language=${ (user_data.language)! }&country_subdivison=${ (user_data.geo_country_code)! }&city=${(user_data.geo_city_en)!}&operator=${(user_data.carrier_name)!}&device_name=${ (user_data.model)! }&rmge_c_id=${ (last_attributed_touch_data.~campaign_id)! }
```

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 Remerge 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-data-sources-new.md): review attributed installs and events where `Ad Partner Name = Remerge`.
- **In Remerge**: confirm that forwarded events are appearing in your Remerge attribution reporting.

## Data mappings

### Campaign data

Branch populates the following fields from Remerge campaign data.

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