GET
/
public
/
v1
/
offsite-ads
/
campaigns
curl --request GET \
  --url https://api.topsort.com/public/v1/offsite-ads/campaigns
{
  "campaigns": [
    {
      "budget": 123,
      "campaignId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "dsp": "google_ads",
      "endDate": "2023-11-07T05:31:56Z",
      "name": "<string>",
      "startDate": "2023-11-07T05:31:56Z",
      "status": "ENABLED"
    }
  ],
  "hasMore": true,
  "nextPage": "SSBzb2xlbW5seSBzd2VhciB0aGF0IEkgYW0gdXAgdG8gbm8gZ29vZAo="
}

Query Parameters

vendor_id
string
required

The ID of the vendor to get the campaign for.

dsp
enum<string>
required

The DSP to filter campaigns by.

Available options:
google_ads,
meta
statuses
enum<string>[]
required

The statuses to filter campaigns by.

limit
integer
default:100

The maximum number of campaigns to return.

Required range: 0 < x <= 100
next_page
string

The next page token.

Response

200
application/json

Successful Response

The response is of type object.