Skip to Content
TrackCrest Docs

Update offer targeting

Replace the countries, devices or operating systems an offer accepts. A list left out stays; an empty list clears it.

PATCH
/api/v1/network/offers/{publicId}/targeting

Requires scope offers:write.

Authorization

apiKey
headerAuthorizationBearer <token>

An API key: pk_company_… (network), pk_aff_… (affiliate) or pk_adv_… (advertiser). X-Api-Key works too.

Path Parameters

publicId*integer
Formatint32

Request Body

application/json
  1. body
countries?array<string>|null
devices?array<string>|null
operatingSystems?array<string>|null

Response Body

OK

application/json
  1. response
data?
Example Request
curl -X PATCH 'https://trakcrt.com/api/v1/network/offers/0/targeting' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "data": {    "publicId": 0,    "name": "string",    "status": "string",    "visibility": "string",    "advertiser": {      "publicId": 0,      "name": "string"    },    "categories": [      "string"    ],    "payoutModel": "string",    "payout": 0.1,    "payoutPercent": 0,    "revenue": 0,    "revenuePercent": 0,    "currency": "string",    "caps": {      "daily": 0,      "monthly": 0,      "global": 0    },    "targeting": {      "countries": [        "string"      ],      "devices": [        "string"      ],      "operatingSystems": [        "string"      ]    },    "landingUrl": "string",    "previewUrl": "string",    "startsAt": "2019-08-24T14:15:22Z",    "expiresAt": "2019-08-24T14:15:22Z",    "planLocked": true,    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z",    "description": "string",    "kpi": "string"  }}