Configure Features
You configure features by app and network. If you want to configure features for multiple apps, you must call this endpoint for each app.
For each feature, you must create all the required keys, which are specified by the Vendor Configuration API.
The available features are:
attribution
: required for tracking attributionscampaign
: required for bid and campaign automationrevenue
: required for revenue imports or S2S revenue trackingspend-import
: required for spend imports or tracking event-based spend/cost datapostback
: required to share data via postbacks
You can switch between these features by exchanging the macro in the URL path to the desired feature:
https://api.justtrack.io/management/v0/configuration/:feature
For attribution viewEventTimeFrame and clickEventTimeFrame, use ISO8601 duration-only format, i.e. P1DT0H0M
List configurations
List configurations returns the list of feature configurations for the given app and network.
curl --location -X POST 'https://api.justtrack.io/management/v0/configuration/attribution' \
-H 'X-API-KEY: <API KEY>'
Request
The message body is an object:
{
"appId": int,
"networkId": int
}
Parameter | Type | Description |
---|---|---|
networkId | int | justtrack internal ID of the network. You can find it with the network list API. |
appId | int | justtrack internal ID of the app. You can find it with the app list API, or use the return value from app create API. |
Response
[
{
"id": int,
"app": {
"id": int
},
"network": {
"id": int,
"vendor": string
},
"key": string,
"value": string,
"sensitive": boolean
}
]
Field | Type | Description |
---|---|---|
id | int | ID of the configuration value |
app.id | int | justtrack internal app ID |
network.id | int | justtrack internal network ID |
network.vendor | string | Name of the network vendor |
key | string | Name of the vendor configuration key |
value | string | Value of the vendor configuration |
sensitive | boolean | True if the value is confidential. False otherwise |
Update configurations
Update configurations creates or updates feature-specific configurations for a given app and network.
curl --location -X PUT 'https://api.justtrack.io/management/v0/configuration/attribution' \
-H 'X-API-KEY: <API KEY>'
You must provide values for all keys listed by List vendor configurations. Otherwise, the feature won't work as expected.
Request
The message body is an object:
{
"appId": int,
"networkId": int,
"configuration": [
{
"key": string,
"value": string
}
]
}
Parameter | Type | Description |
---|---|---|
appId | int | justtrack internal app ID |
networkId | int | justtrack internal app ID |
configuration.key | string | Name of the configuration. Has to be one which is returned by the list call for this appId and networkId |
configuration.value | string | Value of the configuration |
Response
[
{
"id": int,
"app": {
"id": int
},
"network": {
"id": int,
"vendor": string
},
"key": string,
"value": string,
"sensitive": boolean
}
]
Field | Type | Description |
---|---|---|
id | int | ID of the configuration value |
app.id | int | justtrack internal app ID |
network.id | int | justtrack internal network ID |
network.vendor | string | Name of the network vendor |
key | string | Name of the vendor configuration key |
value | string | Value of the vendor configuration |
sensitive | boolean | True, if the value is confidential. False otherwise |