Skip to main content

App Configuration

You use the app configuration to connect an app and a network.

info

Without an app configuration, justtrack can't operate for most of its features, including campaign creation, tracking, and more.

Get app configuration

This API provides data for existing app configurations.

curl -X GET -H X-API-Key: <API_KEY> \
https://api.justtrack.io/management/v0/app/:appId/configuration/:networkId

Request

NameTypeDescription
appIdintappId is the justtrack internal identifier for the app
networkIdintnetworkId is the justtrack internal identifier for the network

Response

{
"campaignTypes": [int],
"defaultChannelId": int,
"multiCountryCampaignAllowed": boolean,
"trackingLinkSlug": string
}
FieldTypeDescription
campaignTypes[int]list of campaign type IDs
defaultChannelIdintID of default channel
multiCountryCampaignAllowedbooleantrue if this partner supports multiple countries in one campaign
trackingLinkSlugstringvalue of the tracking URL slug
info

You will receive a HTTP 400 if neither the app or network exist.

Create or update app configuration

This API allows you to create or update (=upsert) an app configuration.

curl -X PUT -H X-API-Key: <API_KEY> \
https://api.justtrack.io/management/v0/app/:appId/configuration/:networkId

Request

NameTypeDescription
appIdintappId is the justtrack internal identifier for the app
networkIdintnetworkId is the justtrack internal identifier for the network

The general request to the Upsert Client Configuration API looks like:

{
"campaignTypes": [int],
"defaultChannelId": int,
"multiCountryCampaignAllowed": boolean,
"trackingLinkSlug": string,
}

FieldTypeDescription
campaignTypes[int]list of campaign type IDs
defaultChannelIdintID of default channel. This channel is used to create campaigns.
multiCountryCampaignAllowedbooleantrue if this partner supports multiple countries in one campaign
trackingLinkSlugstringvalue of the tracking URL slug
info

CampaignTypes refer to the different types of campaigns you can run through justtrack and their partners. Use 1 for acquisition campaigns and 2 for retargeting campaigns.

Response

{
"campaignTypes": [int],
"defaultChannelId": int,
"multiCountryCampaignAllowed": boolean,
"trackingLinkSlug": string
}
FieldTypeDescription
campaignTypes[int]list of campaign type IDs
defaultChannelIdintID of default channel
multiCountryCampaignAllowedbooleantrue if this partner supports multiple countries in one campaign
trackingLinkSlugstringvalue of the tracking URL slug
info

You will receive a HTTP 400 if neither the app or network exist.