Campaign Management API
Version 2.1.0
Introduction
The Tenjin Campaign Management API is a collection of RESTful resources for your campaign configuration in Tenjin, so you can manage it without the Tenjin dashboard. Use it to build internal tooling that automates campaign creation and bid management.
Access to the API
The API is served from https://api.tenjin.com, and every path starts with the API version, for example https://api.tenjin.com/v2/apps.
Authentication
Generate an access token on the Access Tokens page of the Tenjin dashboard and send it as Authorization: Bearer <access token>. API access tokens explains them.
Operations
Ad Accounts
- List ad accounts
GET /v2/ad_accounts - Get an ad account
GET /v2/ad_accounts/{id}
Apps
- List apps
GET /v2/apps - Create an app
POST /v2/apps - Get an app
GET /v2/apps/{id} - Update an app
PATCH /v2/apps/{id} - Soft-delete an app
DELETE /v2/apps/{id}
Attribution Settings
- Get attribution settings
GET /v2/apps/{app_id}/integrations/{integration_id}/attribution_settings - Update attribution settings
PATCH /v2/apps/{app_id}/integrations/{integration_id}/attribution_settings
Callback Group Templates
- Get callback group templates
GET /v2/integrations/{integration_id}/callback_group_templates
Callback Groups
- List callback groups for an integration and app pair
GET /v2/apps/{app_id}/integrations/{integration_id}/callback_groups - Create a callback group
POST /v2/apps/{app_id}/integrations/{integration_id}/callback_groups - Get a callback group
GET /v2/apps/{app_id}/integrations/{integration_id}/callback_groups/{id} - Update a callback group
PATCH /v2/apps/{app_id}/integrations/{integration_id}/callback_groups/{id}
Callback Settings
- Get callback settings
GET /v2/apps/{app_id}/integrations/{integration_id}/callback_settings - Update callback settings
PATCH /v2/apps/{app_id}/integrations/{integration_id}/callback_settings
Callback Templates
- List callback templates for an app
GET /v2/apps/{app_id}/callback_templates - Get a callback template
GET /v2/apps/{app_id}/callback_templates/{id}
Callbacks
- List callbacks for an app
GET /v2/apps/{app_id}/callbacks - Create a callback
POST /v2/apps/{app_id}/callbacks - Get a callback
GET /v2/apps/{app_id}/callbacks/{id} - Update a callback
PATCH /v2/apps/{app_id}/callbacks/{id}
Campaigns
- List campaigns
GET /v2/campaigns - Create a campaign
POST /v2/campaigns - Get a campaign
GET /v2/campaigns/{id} - Update a campaign
PATCH /v2/campaigns/{id} - Soft-delete a campaign
DELETE /v2/campaigns/{id}
Channels
- List channels
GET /v2/channels - Get a channel
GET /v2/channels/{id}
Events
- List events for an app
GET /v2/apps/{app_id}/events
S2S Callbacks
- List S2S callbacks for an app
GET /v2/apps/{app_id}/s2s_callbacks - Create an S2S callback
POST /v2/apps/{app_id}/s2s_callbacks - Get an S2S callback
GET /v2/apps/{app_id}/s2s_callbacks/{id} - Update an S2S callback
PATCH /v2/apps/{app_id}/s2s_callbacks/{id}
SDK Keys
- List an app's SDK keys
GET /v2/apps/{app_id}/sdk_keys
SK Ad Networks
- List SkAdNetworks
GET /v2/sk_ad_networks - Get a SkAdNetwork
GET /v2/sk_ad_networks/{id}