Help Center
|
Result grouping
The KPI service gives you grouping options to enable you to format your data how you want. You can pass several grouping options in each call.
The KPI service groups results based on the order in which you pass grouping options. If you pass the following, the KPI service groups results by tracker and nests results for each country.
grouping=trackers,countries
If you pass the following, the KPI service groups results by country and nests results for each tracker.
grouping=countries,trackers
Tracker grouping options
Grouping option | Description |
---|---|
apps | Groups results by app token and app name. |
trackers | Groups results by network trackers. This grouping doesn't affect calls that include a tracker_token in the URL path. |
networks | Groups results by network.
|
campaigns | Groups results by network campaigns.
|
adgroups | Groups results by ad groups.
|
creatives | Groups results by creatives.
|
Time period grouping options
Tip:
Grouping option | Description |
---|---|
hour | Groups results by hour. All periods included in the result set are returned as date fields in an array of dates . |
day | Groups results by day. All periods included in the result set are returned as date fields in an array of dates . |
week | Groups results by week. All periods included in the result set are returned as date fields in an array of dates . |
month | Groups results by month. All periods included in the result set are returned as date fields in an array of dates . |
Other grouping options
Grouping option | Description |
---|---|
countries | Groups results by country in the ISO 3166 Alpha-2 code format. All countries included in the result set are returned as country fields in an array of countries . |
region | Groups results by region. All device types included in the result set are returned as region fields in an array of regions . |
device_types | Groups results by device type. All device types included in the result set are returned as device_type fields in an array of device_types . |
os_names | Groups results by OS name. All device types included in the result set are returned as os_name fields in an array of os_names . |
partners | Groups results by partner. All device types included in the result set are returned as partner fields in an array of partners . |