Custom integration postback request reference
Send server-to-server postback requests to Unity Ads to report installs and post-install events for accurate attribution in a custom integration.
Read time 5 minutesLast updated 6 days ago
Review the following parameters to ensure you format your custom integration postback request correctly.
Required attribution postback parameters
You must relay the following identification parameters in your custom integration postback request:Parameter | Description | Example | Notes |
|---|---|---|---|
| The Identifier for Advertising (IDFA) in uppercase form. | | The IDFA is compulsory for all installs. You can use the raw or hashed form of the ID. |
| The Identifier for Advertising (IDFA) in hashed, lowercase form. | | The IDFA is compulsory for all installs. You can use the raw or hashed form of the ID. |
| The Google Advertising ID in lowercase form. | | The Advertising ID is compulsory for all installs. You can use the raw or hashed form of the ID. |
| The Google Advertising ID in MD5 hashed, lowercase form. | | The Advertising ID is compulsory for all installs. You can use the raw or hashed form of the ID. |
| The unique Unity Ads identifier that is mandatory for attributing users that have Limited Ad Tracking (LAT) on. | | The value of the |
| Install time in seconds since epoch. | | This parameter is mandatory for some campaign goals. |
| The Android ID in its original lowercase form. | | The |
| The Android ID in MD5 hashed form. | | This isn't recommended because it's not required if the Android device has correctly integrated Google Play Services and has Google Play installed. It is, however, compulsory for all Android installs that don't have a Google Advertising ID. |
| A flag indicating whether this install is attributed to Unity Ads and can be charged. |
| The default value ( |
Required post-install event postback parameters
Relay the following identification parameters in your custom integration postback request:Parameter | Description | Example | Notes |
|---|---|---|---|
| The Unity Ads unique Gamer ID for the installing user | | |
| Apple advertising identifier (IDFA) for a device in uppercase form. | | The IDFA is compulsory for all installs. You can use the raw or hashed form of the ID. |
| Google Play Advertising ID in lowercase form | | |
| MD5 hash of the Google Advertising ID in lowercase form | | |
| A flag indicating whether the user has Limited Ad Tracking enabled |
| |
| Unity Ads campaign identifier | | You can retrieve your Campaign ID from the Campaigns page of the User Acquisition dashboard. |
| Unity Ads Game ID | | Ensure that you retrieve your advertiser Game ID from the User Acquisition dashboard. Don't use the publisher Game ID used in SDK integration from the Monetization dashboard. |
| Platform + Store ID |
| You can use the following values for iOS:
|
| Platform + Bundle ID | | You can use the following values for Android:
|
| Platform + Unity Project ID | | You can retrieve your Project ID from the Settings tab of any of your Projects in the Unity Dashboard. |
| Original install timestamp in unix format | | Milliseconds are the recommended best practice for timestamps. |
| Session event flag indicating the user started a gameplay session | | |
| Purchase event flag indicating that the user completed an in-app purchase + the transaction amount | | The recommended best practice is to use USD for currency. |
| Ad revenue event flag indicating that the user generated ad revenue + the revenue amount |
|
|
| Flag indicating whether the original install was attributed to Unity | |
|
Optional secondary postback parameters
The following post-install event parameters are not required. Use these parameters in your GET request to retrieve additional information about your app's post-install events.Parameter | Description | Example | Notes |
|---|---|---|---|
| Timestamp of post-install event in Unix format | | Use Unix formatting for all timestamps. The recommended best practice is milliseconds, but Unity also supports timestamps in seconds. |
| User's IP address | | |
| Ad network name | | |
| User's ISO 3166-1 alpha-2 country code | | |
| App version number | | |
| Device model name | | |
| Device OS version | | |
| User's ISO 639-1 language code | | |
| Type of ad shown. For example: interstitial, rewarded, playable, or banner | | This parameter is only relevant for
|
| Event name for post-install events other than |
| Use one of the following supported event names with
|
| Name of the tracking service or Mobile Measurement Partner (MMP) | | |
| App name | | |
| Name of the advertiser | | |
| Timestamp of when the ad impression occurred in Unix format | | Use Unix formatting for all timestamps. The recommended best practice is milliseconds, but Unity also supports timestamps in seconds. |
| Timestamp of when the ad click occurred in Unix format | | Use Unix formatting for all timestamps. The recommended best practice is milliseconds, but Unity also supports timestamps in seconds. |
| A test postback from the server that doesn't count as a real event from end users | |