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
Name | Type | Description |
---|---|---|
appId | int | appId is the justtrack internal identifier for the app |
networkId | int | networkId is the justtrack internal identifier for the network |
Response
{
"campaignTypes": [int],
"defaultChannelId": int,
"multiCountryCampaignAllowed": boolean,
"trackingLinkSlug": string
}
Field | Type | Description |
---|---|---|
campaignTypes | [int] | list of campaign type IDs |
defaultChannelId | int | ID of default channel |
multiCountryCampaignAllowed | boolean | true if this partner supports multiple countries in one campaign |
trackingLinkSlug | string | value 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
Name | Type | Description |
---|---|---|
appId | int | appId is the justtrack internal identifier for the app |
networkId | int | networkId 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,
}
Field | Type | Description |
---|---|---|
campaignTypes | [int] | list of campaign type IDs |
defaultChannelId | int | ID of default channel. This channel is used to create campaigns. |
multiCountryCampaignAllowed | boolean | true if this partner supports multiple countries in one campaign |
trackingLinkSlug | string | value 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
}
Field | Type | Description |
---|---|---|
campaignTypes | [int] | list of campaign type IDs |
defaultChannelId | int | ID of default channel |
multiCountryCampaignAllowed | boolean | true if this partner supports multiple countries in one campaign |
trackingLinkSlug | string | value of the tracking URL slug |
info
You will receive a HTTP 400 if neither the app or network exist.