Review the following parameters when you send postbacks from your app's server using a custom integration to ensure your request is formatted correctly.
Required attribution postback parameters
The following identification parameters must be relayed in your custom integration postback request:
Parameter | Description | Example | Notes |
---|---|---|---|
| The Identifier for Advertising (IDFA) in uppercase form. | 1A2B3C4D-5E6F-7G8H-9I10-J9K8L7M65N4P | 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. | fce1e02f2ca0498021ec67f2f22dfcea | 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. | a1b2-c3d4-e5f6-g7h8 | 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. | 6fbff11856d5f0200d473af3cabd346d | The Advertising ID is compulsory for all installs. You can use the raw or hashed form of the ID. |
gamerId | The unique Unity Ads identifier that is mandatory for attributing users that have Limited Ad Tracking (LAT) on. | 00000000-0000-0000-0000-000000000000 | The value of the |
installTimeEpoch | Install time in seconds since epoch. | 1615973128 | This parameter is mandatory for some campaign types. |
rawAndroidId | The Android ID in its original lowercase form. | 3f4a92b6c1d8e90f | The |
androidId | The Android ID in MD5 hashed form. | 4a969d593d2a3e1d602fefe8e75a4d80 | 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. |
attributed | A flag indicating whether this install is attributed to Unity Ads and can be charged. |
| The default value ( |
Required post-install event postback parameters
The following identification parameters must be relayed in your custom integration postback request for post-install event postbacks:
Parameter | Description | Example | Notes |
---|---|---|---|
gamer_id= | The Unity Ads unique Gamer ID for the installing user | gamer_id=00000000-0000-0000-0000-000000000000 | |
| Apple advertising identifier (IDFA) for a device in uppercase form. | ifa=1A2B3C4D-5E6F-7G8H-9I10-J9K8L7M65N4P | 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 | aid=ae06df78-ca5a-46c3-bd44-1d3b6aa4d6e9 | |
| MD5 hash of the Google Advertising ID in lowercase form | android_id_md5=6fbff11856d5f0200d473af3cabd346d | |
| A flag indicating whether the user has Limited Ad Tracking enabled |
| |
campaign_id= | Unity Ads campaign identifier | campaign_id=546b9257365339e0031572bd | You can retrieve your Campaign ID from the Campaigns page of the User Acquisition dashboard. |
gameId= | Unity Ads Game ID | gameId=500009999 | You can retrieve your Game ID from the Apps page for the User Acquisition dashboard |
platform={ios or android}&store_id={itunes id or googleplay id} | Platform + Store ID |
| You can use the following values for iOS:
|
platform={ios or android}&bundle_id={bundle id} | Platform + Bundle ID | platform=ios&bundle_id=com.example.myapp | You can use the following values for Android:
|
platform={ios or android}&project_id={Unity Project ID} | Platform + Unity Project ID | platform=android&project_id=2ff453g1-8d49-2p06-n22f-9m833592113f2 | You can retrieve your Project ID from the Settings tab of any of your Projects in the Unity Dashboard. |
install_ts={unix time in seconds or milliseconds} | Original install timestamp in unix format | install_ts=1466637800175 | Milliseconds are the recommended best practice for timestamps. |
event=session | Session event flag indicating the user started a gameplay session | event=session | |
event=purchase&value{amount}¤cy={currency} | Purchase event flag indicating that the user completed an in-app purchase + the transaction amount | event=purchase&value=1.0¤cy=USD | The recommended best practice is to use USD for currency. |
event=ad_revenue&value{amount}¤cy={currency} | Ad revenue event flag indicating that the user generated ad revenue + the revenue amount |
|
|
was_conversion_attributed= | Flag indicating whether the original install was attributed to Unity | was_conversion_attributed=1 |
|
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 |
---|---|---|---|
ts= | Timestamp of post-install event in Unix format | ts=1466637800123 | Use Unix formatting for all timestamps. The recommended best practice is milliseconds, but Unity also supports timestamps in seconds. |
ip= | User’s IP address | ip=123.456.78.90 | |
ad_network= | Ad network name | ad_network=UnityAds | |
country= | User’s ISO 3166-1 alpha-2 country code | country=US | |
app_version= | App version number | app_version=1.2.3 | |
device_type= | Device model name | device_type=iPhone6,2 device_type=samsung+GT-S7582 | |
os_version= | Device OS version | os_version=14.4.2 | |
language= | User’s ISO 639-1 language code | language=en_US | |
ad_format= | Type of ad shown. For example: interstitial, rewarded, playable, or banner | ad_format=interstitial | This parameter is only relevant for
|
event= | Event name for post-install events other than |
| Use one of the following supported event names with
|
tracking_partner= | Name of the tracking service or Mobile Measurement Partner (MMP) | tracking_partner=AppsFlyer | |
app_name= | App name | app_name=Game+Name | |
advertiser_name= | Name of the advertiser | advertiser_name=Advertiser+Name+In+Here | |
impression_ts= | Timestamp of when the ad impression occurred in Unix format | impression_ts=1466637800123 | Use Unix formatting for all timestamps. The recommended best practice is milliseconds, but Unity also supports timestamps in seconds. |
click_ts= | Timestamp of when the ad click occurred in Unix format | click_ts=1466637800456 | Use Unix formatting for all timestamps. The recommended best practice is milliseconds, but Unity also supports timestamps in seconds. |
test= | A test postback from the server that doesn't count as a real event from end users | test=1 |