POST
/
public
/
v1
/
offsite-ads
/
campaigns
curl --request POST \
  --url https://api.topsort.com/public/v1/offsite-ads/campaigns \
  --header 'Content-Type: application/json' \
  --data '{
  "budget": 1000,
  "dsp": "google_ads",
  "endDate": "2023-11-07T05:31:56Z",
  "locationIds": [
    "123456"
  ],
  "name": "<string>",
  "productIds": [
    "123456"
  ],
  "startDate": "2023-11-07T05:31:56Z"
}'
{
  "jobId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Query Parameters

vendor_id
string
required

The ID of the vendor to create the campaign for.

Body

application/json

Response

200
application/json

Successful Response

The response is of type object.