Campaigns

Create a campaign

post/v2/campaigns

Request

  • Base URL
    https://api.tenjin.com
  • Auth
    HTTP bearer

Request body

namestring required

Name of the campaign

app_idstring uuid required

Id of the app the campaign promotes

channel_idinteger

Id of the channel. Send channel_id, ad_account_id or both; both must name the same channel

ad_account_idstring uuid

Id of the ad account. Without it, Tenjin finds or creates the organization's ad account for the channel

attribution_windowinteger nullable

Click attribution window in seconds. Absent or null uses the ad account's window. Attribution does not use it: it uses the app's attribution windows and the integration's attribution settings

Response

The created campaign

metaobject required

Always empty

Example response

{
  "data": {
    "attributes": {
      "channel_id": 3,
      "name": "Facebook Campaign",
      "short_id": "zzzk0TXwNXu7Y5Maf2aRkL",
      "remote_campaign_id": "23851234567890123"
    }
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.