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

# Enable Aura from Unity (New)

> Integrate Aura from Unity with Branch to enhance app attribution, track conversions, and optimize mobile advertising effortlessly.

## Overview

[Aura from Unity](https://aura.ironsrc.com/) connects OEMs and carriers with mobile advertisers to deliver app experiences to users right out of the box. Connect Aura from Unity to Branch to attribute clicks and installs, forward conversion events via Postbacks, deep link users into your app, and import cost data.

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 Aura from Unity in the [new Branch experience](https://help.branch.io/marketer-hub/new-branch-overview.md). For information on Aura from Unity in legacy Branch, visit our [legacy guide](https://help.branch.io/marketer-hub/aura.md).

### Partner capabilities

| Capability | Details |
| --- | --- |
| Company type | Ad network |
| Deep linking | Supported |
| Attribution | Click-through attribution, View-through attribution |
| Ad campaign types | Acquisition campaigns |
| Click types | Client-side click, Server-side click |
| Supported platforms | Android |
| Link wrapping | Not supported |
| Cost ingestion support | Supported |
| Cost ingestion types | API |
| Cost time zone | GMT |
| Pricing models | CPI, CPC, CPA |

## Before you begin

To set up the Aura from Unity 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 ([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.
- An Aura from Unity account with admin access and campaigns running through Aura from Unity.
- [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 Aura from Unity

To begin, navigate to **Configuration > Ad Partners > Aura from Unity**.

Branch enables Aura from Unity's basic setup automatically. On the **Status** tab, the **Ad Linking**, **Attribution**, and **Postbacks** cards show **Enabled**. The **Clicks and Impressions** and **Cost Data** cards show **Needs Setup** until those features are configured (see [Create a Branch Ad Link](#create-a-branch-ad-link) and [Import cost data](#import-cost-data)).

(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 Aura from Unity.

## Configure attribution

By default, Aura from Unity uses your global app attribution settings. To set attribution windows specific to Aura from Unity, 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 Aura from Unity automatically activates postbacks for `INSTALL`, `PURCHASE`, `OPEN`, `ACHIEVE_LEVEL`, `COMPLETE_TUTORIAL`, and `COMPLETE_REGISTRATION`. The default postback URL template is:

```
https://postback.isappcloud.com/userActivity/custom1?src=branch&token=0b22a777-3b57-4b4a-b850-8402b48d231a&dynamicParameter=${ (last_attributed_touch_data.~click_id)! }&gaid=${ (user_data.aaid)! }&lat=<#if (user_data.limit_ad_tracking)! >1<#else>0</#if>&packageName=<@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.bundle_id)!}</#if><@break/></#if></@loop>&appVersion=${ (user_data.app_version)! }&country=${ (user_data.geo_country_code)! }&region=${(user_data.geo_region_code)!}&city=${(user_data.geo_city_code)!}&ip=${ (user_data.ip)! }&userAgent=${ (user_data.user_agent)! }&attrEventTime=${ (timestamp/1000)?long }&attrClickTime=${(last_attributed_touch_timestamp/1000)?long }&deviceLocale=${ (user_data.language)! }&deviceModel=${ (user_data.model)! }&deviceManufacturer=${(user_data.brand)!}&canClaim=<#if (last_attributed_touch_data.$3p)! == (ad_network.machine_name)!>1<#else>0</#if>&isViewThrough=<#if last_attributed_touch_type == "CLICK">0<#elseif last_attributed_touch_type == "IMPRESSION">1</#if>&osVersion=${ (user_data.os_version)! }&campaignID=${ (last_attributed_touch_data.~campaign_id)! }&campaignName=${ (last_attributed_touch_data.~campaign)! }&PublisherId=${(last_attributed_touch_data.~secondary_publisher_id)!}&customerID=${ (last_attributed_touch_data.~channel)! }&amount=${ (event_data.revenue)! }&currency=${ (event_data.currency)! }&itemName=<@urlencode><@jsonmap data=content_items></@jsonmap></@urlencode>&trackingCompanySDKVersion=${(user_data.sdk_version)!}
```

To add postbacks for additional events or to customize postback 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).

## Import cost data

Aura from Unity cost ingestion uses API authentication with an **Authorization Token**. Contact your Aura from Unity account manager to obtain this value.

In Branch, locate the **Cost Data** card on the **Status** tab and select it (it displays a **Needs Setup** badge) to open the **Enable Cost Data** dialog. Enter your **Authorization Token**, then select **Save**. You can also set this credential from the **Manage account** dialog by selecting **Partner settings**. After saving, the **Cost Data** card on the **Status** tab updates to reflect the connected state.

## Create a Branch Ad Link

Create a Branch Ad Link to use in your Aura from Unity campaigns. Branch uses the link to attribute clicks and impressions and deep link users into your app. Placing the Branch Ad Link in your Aura from Unity campaign will resolve the **Clicks and Impressions: Needs Setup** status on the **Status** tab.

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 and Aura from Unity:

- **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 = Aura from Unity`. Cost data appears in cost-reporting views once ingestion is active. Allow up to 24 hours after setup for the first cost data to be pulled in.
- **In Aura from Unity**: confirm that forwarded events are appearing in your Aura from Unity attribution reporting.

## Data mappings

### Campaign data

Branch populates the following fields from Aura from Unity campaign data.

| Branch field | Partner data |
| --- | --- |
| `~advertising_partner_name` | `"Aura from Unity"` (static) |
| `~feature` | `"paid advertising"` (static) |
