Skip to main content

Unity Ads Advertising Statistics API V2.0

Last updated 10/03/2026
tip

Note that data generated by third-party data integration counts toward the cluster's data consumption

Summary​

Interface overview​

InterfaceTypeGranularityAttributionCostRevenueImpressionsClicksConversions
Advertising Statistics API V2.0APIAggregated metrics✅✅✅✅✅

This plan sends Unity Ads ad delivery data 2.0 back to Thinking Analytics (hereinafter the AE system) through the Advertising Statistics API v2.0. The plan supports:

  • Sending basic report metrics from Unity Ads, such as cost, clicks, and impressions, back to the AE system

Integration process​

  1. Log in to the Unity backend and get the Organization ID and API Key of the project whose data you want to ingest
  2. Log in to the AE backend, go to the Third-party Integration module, add a Unity integration plan, and complete the related configuration
  3. Check whether the AE system receives the data successfully, and build reports

1. Get the authorization information​

1.1 Get the Organization ID​

In the Unity Ads User Acquisition backend, select the Settings page under Administration in the left sidebar. In the Organization Settings table, find the Organization ID, then copy and save it.

1.2 Get the API Key and Secret​

Next, you need to create a service account and assign it Advertise Stats API Viewer. Data can be pulled only with this account's API Key and Secret. The following shows the complete process, starting from creating the service account:

  1. Create a service account

In the Unity Cloud backend, go to the Administration > Service accounts page and click the create button in the upper-right corner to start creating a service account.

Then enter the service account name and description as needed, and finish creating the account.

  1. Create an authorization key

After the account is created, go to the account's settings page and create a new authorization key in the Keys section.

After the key is created, write down the Key ID, Secret Key, and Authorization header and keep them safe. You will use them when creating the integration plan.

  1. Set account permissions

Next, you need to grant the account the Advertise Stats API Viewer permission. In the Organization roles section, click to start creating a role and go to the permission selection page.

On the permission selection page, select Advertise Stats API Viewer under the Growth option to complete the permission settings.

2. Plan configuration​

After you get the authorization information from the Unity backend, log in to the AE system and configure the new plan in the Third-party Integration module. The image below shows the configuration page of the Unity Ads Advertising Statistics API V2.0. Follow this section to create the plan:

2.1 Authorization information configuration​

Click the Configure authorization information button under Authorization Information and enter the information you obtained in the previous step in the pop-up:

Fill in all the information you got from the Unity backend. When you enter the Authorization header, include the Basic prefix at the beginning

2.2 Sync Schedule​

In the Sync Schedule module, you can set the policy for the AE system to pull Unity Ads Advertising Statistics API V2.0 data on a schedule. You can choose to pull data for a period of time at a specific time every day. Because pulled data also counts toward the data volume, avoid pulling data for overly long periods on a schedule

2.3 Receive Settings​

You can control whether the data is written as events. If you turn this off, the data is not written to the event table, so do not turn off this setting.

2.4 Configuration​

Finally, in the Configuration module, you can control the detailed settings of data pulling, including the time aggregation granularity of the data, the metric fields and dimensions to pull, and the event name after ingestion.

The content of the configuration is a JSON, which you can customize as follows:

ModuleNameDescription
sink_eventevent_nameEvent name after ingestion; customizable; string type.
source

time_granularity

Time granularity of data pulling. Options:

  • Day: day
  • Hour: hour
metricsMetric fields of the corresponding API; list type; customizable
group_byGrouping dimensions in the data; list type; customizable
transferdouble_columnsMetrics in the data; list type. These fields are ingested as numeric types when the data is received, and the other fields are ingested as strings (or time). We don't recommend changing it
  • Grouping dimensions

The following are the group-by dimensions supported by the Unity Advertising Statistics API V2.0. To adjust them, add the names of the dimensions you need to source.group_by

Dimension nameDescriptionIngested field namePulled by default
appGroup by Appapp_idYes
app_nameYes
campaignGroup by Campaigncampaign_idYes
campaign_nameYes
countryGroup by country (region)country
creativePackGroup by Creative Packcreative_pack_idYes
creative_pack_nameYes
creativePackTypeGroup by Creative Pack typecreative_pack_typeYes
osVersionGroup by OS versionos_versionYes
platformGroup by platformplatformYes
sourceAppIdGroup by source gamesource_app_id
storeGroup by app storestoreYes

targetGame

Group by target gametarget_idYes
target_store_idYes
target_nameYes
eventTypeGroup by Unity event typeevent_type
eventNameGroup by Unity event nameevent_name
  • Metric fields

In addition to the group-by dimensions, the Unity Ads Advertising Statistics API v2.0 also provides the following metric fields. To adjust them, add the names of the metrics you need to source.metrics.

Metric nameIngested field nameField descriptionPulled by default
timestamptimestampEvent timeYes
startsstartsAd impressionsYes
viewsviewsCompleted ad viewsYes
clicksclicksAd clicksYes
installsinstallsInstalls after viewing the adYes
spendspendSpendYes
cpicpiCost per install
ctrctrClick-through rate
cvrcvrConversion rate
ecpmecpmeCPM
d[x]AdRevenued[x]_ad_revenueDay N ad revenue
d[x]AdRevenueRoasd[x]_ad_revenue_roasDay N ad revenue ROAS
d[x]IapRevenued[x]_iap_revenueDay N in-app purchase revenue
d[x]IapRoasd[x]_iap_roasDay N in-app purchase ROAS
d[x]Purchasesd[x]_purchasesDay N in-app purchases
d[x]UniquePurchasersd[x]_unique_purchasersDay N first-time in-app purchasers
d[x]Retainedd[x]_retainedDay N retained users
d[x]RetentionRated[x]_retention_rateDay N retention rate
d[x]TotalRoasd[x]_total_roasDay N total ROAS
d[x]LevelCompleted[x]_level_completeDay N users who completed a specific level
d[x]CostPerLevelCompleted[x]_cost_per_level_completeDay N average cost per user who completed a specific level
d[x]LevelCompleteRated[x]_level_complete_rateDay N completion rate of a specific level

In the table above, [x] can be replaced with actual numbers such as 0, 1, 3, 7, and 14. For example, d7 indicates the metric through day 7

2.5 Event ingestion rules​

  • The timestamp field in the data, that is, the time field of data aggregation, is used as the #event_time of the aggregated data
  • If not renamed, the event name of the data is -- unity_ads_api_data
  • All other fields are ingested

2.6 Standardized fields​

The AE system standardizes some fields in Unity Ads Advertising Statistics API v2.0 data:

FieldStandardized fieldDescription
campaign_namete_ads_object.campaign_nameCampaign name
campaign_idte_ads_object.campaign_idCampaign ID
creative_pack_namete_ads_object.ad_group_nameAd group name
creative_pack_idte_ads_object.ad_group_idAd group ID
countryte_ads_object.countryCountry or region code
platformte_ads_object.platformPlatform, such as Android or iOS
startste_ads_object.impressionsImpressions
clickste_ads_object.clicksClicks
installste_ads_object.installsConversions (installs)
spendte_ads_object.costUser acquisition cost
Was this page helpful?