Activate the Unity Ads integration in the AppsFlyer dashboard, enable full data-sharing, map events, and set partner permissions.
Read time 5 minutesLast updated a month ago
Important
The following documentation discusses products or services (“Third-party Products”) not developed, owned, or operated by Unity.
This information might be outdated or incomplete and is provided for your convenience.
Your use of any Third-party Product is subject to its own terms.
Unity makes no warranties regarding these products and isn't liable for any damages or losses arising from their use, including issues related to content, advertising, or materials from Third-party providers.
Set up AppsFlyer as your Mobile Measurement Partner (MMP) for Unity Ads User Acquisition campaigns. Integration includes the following setup tasks:
In the Integration tab > In-app event postbacks section, map AppsFlyer events to Unity Ads events.
You can map any in-app event you set up in the AppsFlyer dashboard. Refer to AppsFlyer's In-app events documentation for a list of AppsFlyer event names.
Important
Ensure that your AppsFlyer event name matches the event identifiers in your app's code exactly. If you incorrectly map an event, your campaign ignores the data.
Refer to the following example of correct event mapping:
AppsFlyer event
mapped to partner event
for users from
including
af_purchase
purchase
All media sources, including organic
Values & revenue
milestone_event_name
level_complete
All media sources, including organic
Values & revenue
af_app_opened
session
All media sources, including organic
Values & no revenue
Map events to Unity event names
Ensure that you make the following selections:
For all events, select All media sources, including organic in the for users from dropdown.
For Level Complete and Purchase events, select Values & revenue from the including dropdown.
For Session events, select Values & no revenue from the including dropdown.
Enable ad revenue data
Important
To access the AppsFlyer Revenue Settings menu and share ad revenue data with Unity, you need an AppsFlyer ROI360 subscription. Refer to the Ad revenue attribution documentation in the AppsFlyer Help Center for details and instructions.
To share ad revenue event data with your campaign, follow these steps:
Go to the Ad revenue tab of your AppsFlyer integration setup.
Activate the Get ad revenue data toggle.
Enable Ad revenue
From the AppsFlyer dashboard side menu, go to Settings > Revenue Settings.
In the Ad revenue tab of the Revenue settings page, select New ad revenue integration.
Select Unity Ads from the list of revenue partners.
In the partner configuration, select Impression-level (via SDK) with Device-level (via S2S API) as the report type.
Send impression-level and device-level reports
Enter your API credentials. Enter your Game ID in the App Key field. To retrieve your Secret key from the Unity dashboard, refer to the following steps:
To retrieve your Secret key from the Unity Dashboard, follow these steps:
From the left navigation menu, go to API Management.
Select Advertising Management API > Service account.
Retrieve secret keys from your Advertising Management Service account
If you don't have a service account, select + New. If you have a service account already, select it from the table.
In the service account page, go to the Keys section.
Select + Add key to generate a new key.
Select the copy buttons following the Secret key to copy the ID.
Go back to the Integration tab of the AppsFlyer dashboard.
In the In-app event postbacks section, map Ad Revenue events to
ad_revenue
. Refer to the following example of correct ad revenue mapping:
AppsFlyer event
mapped to partner event
for users from
including
af_ad_revenue
ad_revenue
All media sources, including organic
Values & revenue
Set partner permissions
In the Permissions tab, configure the following permissions settings:
Activate the Toggle Ad Network Permissions toggle to enable all other toggles.
Activate the following toggles:
Configure integration
Configure in-app event postbacks
Access retention report
Access aggregate conversions and in-app event data
Access aggregate revenue data
View validation rules
Access Protect360 dashboard and raw data
Access ad revenue raw data (UA signals)
For descriptions of each permission, refer to the Permissions tab documentation in the AppsFlyer Help Center.