Skip to main content

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.

info

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 attributions
  • campaign: required for bid and campaign automation
  • revenue: required for revenue imports or S2S revenue tracking
  • spend-import: required for spend imports or tracking event-based spend/cost data
  • postback: 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
info

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
}
ParameterTypeDescription
networkIdintjusttrack internal ID of the network. You can find it with the network list API.
appIdintjusttrack 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
}
]
FieldTypeDescription
idintID of the configuration value
app.idintjusttrack internal app ID
network.idintjusttrack internal network ID
network.vendorstringName of the network vendor
keystringName of the vendor configuration key
valuestringValue of the vendor configuration
sensitivebooleanTrue 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>'
info

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
}
]
}
ParameterTypeDescription
appIdintjusttrack internal app ID
networkIdintjusttrack internal app ID
configuration.keystringName of the configuration. Has to be one which is returned by the list call for this appId and networkId
configuration.valuestringValue of the configuration

Response

[
{
"id": int,
"app": {
"id": int
},
"network": {
"id": int,
"vendor": string
},
"key": string,
"value": string,
"sensitive": boolean
}
]
FieldTypeDescription
idintID of the configuration value
app.idintjusttrack internal app ID
network.idintjusttrack internal network ID
network.vendorstringName of the network vendor
keystringName of the vendor configuration key
valuestringValue of the vendor configuration
sensitivebooleanTrue, if the value is confidential. False otherwise