POST
/
public
/
v1
/
toppie
/
campaigns
curl --request POST \
  --url https://api.topsort.com/public/v1/toppie/campaigns \
  --header 'Content-Type: application/json' \
  --data '{
  "budget": 10000000000,
  "budgetPeriod": "daily",
  "endDate": "2023-11-07T05:31:56Z",
  "name": "<string>",
  "startDate": "2023-11-07T05:31:56Z",
  "targetRoas": 10.25,
  "targets": [
    "<string>"
  ]
}'
{
  "accountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "adFormat": "listing",
  "bidCount": 123,
  "budget": 123,
  "budgetPeriod": "daily",
  "chargeType": "CPM",
  "createdAt": "2023-11-07T05:31:56Z",
  "currencyCode": "USD",
  "endDate": "2023-11-07T05:31:56Z",
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "isActive": true,
  "name": "<string>",
  "startDate": "2023-11-07T05:31:56Z",
  "targetRoas": 10.25
}

Body

application/json

Campaign fields to create a new agency campaign.

Response

201
application/json
Successful Response

Represents a public version of an agency campaign, used in API responses.