Lead campaigns
Attach a publisher to a lead campaign
Needs the campaigns:write scope. About scopes
Puts one of the account’s publishers on the campaign, approved, with its payout. A publisher detached earlier is approved again with its terms as they were. It starts in test mode unless testMode is false. A publisher already on it answers 409 source_exists.
keyheader
AuthorizationBearer <traki_account_…>id*stringFormat
uuidapplication/json- body
publisherId*stringFormat
uuidpayoutKind?stringValue in
"none""fixed""share"payoutValue?|nullcapDay?|nulltestMode?booleanSuccess
application/json- response
id*stringFormat
uuidexternalId*string|nullcode*stringname*stringvertical*stringstatus*stringdistribution*stringsaleType*stringsaleLimit*integerRange
-9007199254740991 <= value <= 9007199254740991buyerPrice*stringpublisherPayout*stringcurrency*stringbuyers*array<>publishers*array<>version*stringcreatedAt*stringupdatedAt*stringcurl -X POST 'https://api.traki.io/v1/account/lead-campaigns/497f6eca-6276-4993-bfeb-53cbbbba6f08/publishers' \ -H "Authorization: Bearer $TRAKI_KEY" \ -H 'Content-Type: application/json' \ -H 'Idempotency-Key: a-unique-id-for-this-change' \ -d '{ "publisherId": "f1ba8124-cabe-46cd-b4f9-1189594ff7b3"}'Example Response
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "externalId": "string", "code": "string", "name": "string", "vertical": "string", "status": "string", "distribution": "string", "saleType": "string", "saleLimit": -9007199254740991, "buyerPrice": "string", "publisherPayout": "string", "currency": "string", "buyers": [ { "buyer": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "externalId": "string", "name": "string" }, "priority": -9007199254740991, "weight": -9007199254740991, "price": "string", "status": "string" } ], "publishers": [ { "publisher": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "externalId": "string", "name": "string" }, "status": "string", "testMode": true } ], "version": "string", "createdAt": "string", "updatedAt": "string"}Detach a buyer from a lead campaign DELETE
Takes the buyer off the campaign; it is sent no more of its leads.
Detach a publisher from a lead campaign DELETE
Revokes the publisher on the campaign (or declines it, if it was waiting): its leads to this campaign are refused from then on. Its history stays.