Update offer targeting
Replace the countries, devices or operating systems an offer accepts. A list left out stays; an empty list clears it.
PATCH
Requires scope offers:write.
apiKeyheader
AuthorizationBearer <token>An API key: pk_company_… (network), pk_aff_… (affiliate) or pk_adv_… (advertiser). X-Api-Key works too.
publicId*integerFormat
int32application/json- body
countries?array<string>|nulldevices?array<string>|nulloperatingSystems?array<string>|nullOK
application/json- response
data?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" }}