Lead campaigns
One lead campaign
Needs the campaigns:read scope. About scopes
keyheader
AuthorizationBearer <traki_account_…>id*stringFormat
uuidSuccess
application/json- response
id*stringFormat
uuidexternalId*string|nullcode*stringname*stringvertical*stringstatus*stringdistribution*stringsaleType*stringbuyerPrice*stringpublisherPayout*stringcurrency*stringbuyers*array<>publishers*array<>version*stringcreatedAt*stringupdatedAt*stringcurl 'https://api.traki.io/v1/account/lead-campaigns/497f6eca-6276-4993-bfeb-53cbbbba6f08' \ -H "Authorization: Bearer $TRAKI_KEY"Example Response
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "externalId": "string", "code": "string", "name": "string", "vertical": "string", "status": "string", "distribution": "string", "saleType": "string", "buyerPrice": "string", "publisherPayout": "string", "currency": "string", "buyers": [ { "buyer": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "externalId": "string", "name": "string" }, "priority": -9007199254740991, "price": "string" } ], "publishers": [ { "publisher": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "externalId": "string", "name": "string" } } ], "version": "string", "createdAt": "string", "updatedAt": "string"}Create a lead campaign POST
Creates a lead campaign as a draft, with the account’s own traffic on it. Attach buyers and publishers, then POST /lead-campaigns/{id}/resume to activate it. `externalId` must be unique in the account (409 external_id_taken).
Change a lead campaign PATCH
Changes the fields sent and leaves the rest. An exclusive campaign sells each lead once (422 sale_limit for a sale limit above 1). With `ifVersion`, a change based on an older version is refused. Archived campaigns cannot be changed.