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

# Enable Xapads Media (New)

> Connect Xapads Media to Branch to attribute clicks and installs on AI-driven omnichannel campaigns.

## Overview

[Xapads Media](https://www.xapads.com) is an India-based adtech company that operates an AI-driven demand-side platform (DSP) for omnichannel advertising. Connect Xapads Media 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 Xapads Media in the [new Branch experience](https://help.branch.io/marketer-hub/new-branch-overview.md). For information on Xapads Media in legacy Branch, visit our [legacy guide](https://help.branch.io/marketer-hub/xapads-media.md).

### Partner capabilities

| Capability | Details |
| --- | --- |
| Company type | DSP |
| Deep linking | Supported |
| Attribution | Click-through attribution, View-through attribution |
| Ad campaign types | Acquisition campaigns, Retargeting campaigns |
| Ad formats | Contact Xapads Media for details. |
| Click types | Contact Xapads Media for details. |
| Supported platforms | iOS, Android, Amazon, Windows |
| Link wrapping | Supported |
| Cost ingestion support | Not supported |
| Pricing models | CPI, CPC, CPM, CPA, CPV |

## Before you begin

To set up the Xapads Media 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 Xapads Media 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 Xapads Media

To begin, navigate to **Configuration > Ad Partners > Xapads Media**.

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

## Configure attribution

By default, Xapads Media uses your global app attribution settings. To set attribution windows specific to Xapads Media, enable the **Override global app settings** toggle on the **Attribution windows** tab.

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 Xapads Media automatically activates postbacks, including `INSTALL`, `OPEN`, and `PURCHASE`. The default postback URL template is:

```
http://post.xapads.com/acquisition?security_token=36399a458c8980278778&click_id=${ (last_attributed_touch_data.~click_id)! }&device_id=<#if (user_data.os)! == "IOS" &&(user_data.idfa)! != "">${(user_data.idfa)!}<#elseif (user_data.os)! == "IOS">${(user_data.idfv)!}<#elseif (user_data.os)! == "ANDROID">${(user_data.aaid)!}</#if>&sale_amount=${ (event_data.revenue)! }&sub1=${ (event_data.transaction_id)! }&sub2=${ (user_data.os)! }_${ (user_data.os_version)! }&sub3=${ (user_data.app_version)! }&sub4=${ (event_data.currency)! }&sub5=${ (user_data.ip)! }&sub6=${ (user_data.geo_city_en)! }&sub7=${(user_data.carrier_name)!}&sub8=${ (user_data.brand)! }_${ (user_data.model)! }
```

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 Xapads Media 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 = Xapads Media`.
- **In Xapads Media**: confirm that forwarded events are appearing in your Xapads Media attribution reporting.

## Data mappings

### Campaign data

Branch populates the following fields from Xapads Media campaign data.

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

### Link parameters

By default, Branch automatically appends these link parameters to Xapads Media ad links. When a user clicks the link, Xapads Media provides the corresponding values, which Branch ingests and uses for attribution and reporting.

| Branch parameter | Link placeholder |
| --- | --- |
| Click ID | `{click_id}` |
| Secondary Publisher | `{source}_{p2}` |
| Channel | `{channel}` |
| Ad Name | `{ad_name}` |
| Ad ID | `{ad_id}` |
| Ad Set Name | `{adset_name}` |
| Ad Set ID | `{adset_id}` |
| Campaign | `{campaign_name}` |
| Campaign ID | `{camp_id}` |
| Click AAID | `{aaid}` |
| Click IDFA | `{idfa}` |
