Skip to main content
POST
Create a sponsored brand campaign.

Autorisierungen

Authorization
string
header
erforderlich

A valid API key generated in Topsort's UI. Use the TSE API key if calling auctions or events API, otherwise use the TSC API key.

Abfrageparameter

vendor_id
string
erforderlich

The ID of the vendor.

Minimum string length: 1

Body

application/json

Request body for creating a public sponsored brand campaign.

name
string
erforderlich

The name of the campaign.

Minimum string length: 1
Beispiel:

"Bola-Bola Ad campaign"

slotId
string
erforderlich

The external slot ID where the sponsored brand campaign will be shown.

Minimum string length: 1
schedule
Schedule · object[]
erforderlich

The schedule for the campaign.

Required array length: 1 element
content
Content · object
erforderlich

Dynamic content validated against the slot's JSON template.

bids
PublicCreateSponsoredBrandBid · object[]
erforderlich

An array of bids for this campaign.

Required array length: 1 - 500 elements
bidType
enum<string>
erforderlich

The bidding type of the campaign.

Verfügbare Optionen:
manual,
autobidding
budget
BudgetCreate · object
erforderlich

The assigned budget for the campaign.

isActive
boolean
Standard:true

Whether the campaign should be activated upon creation.

status
enum<string>
Standard:approved

The initial review status of the sponsored brand campaign.

Verfügbare Optionen:
approved,
pending,
rejected
externalCampaignId
string | null

The external ID of the campaign in the marketplace.

isAutoTrigger
boolean
Standard:false

Whether the campaign is auto-triggered.

slotIds
string[] | null

Additional external slot IDs. If present, each ID replicates the whole bid set.

Maximum array length: 10
walletId
string<uuid> | null

The uuid of the wallet used with this campaign.

targetRoas
number | null

Indicates the vendor's target return on ad spend.

Erforderlicher Bereich: 0.5 <= x <= 30
targetRoasPreference
enum<string> | null

Target ROAS preference label.

Verfügbare Optionen:
aggressive,
conservative,
moderate,
custom
chargeType
enum<string>
Standard:CPC

How campaigns are charged.

Verfügbare Optionen:
CPM,
CPC,
CPA
autobiddingObjective
enum<string>
Standard:clicks

The objective of the campaign.

Verfügbare Optionen:
impressions,
clicks,
conversions,
revenue

Antwort

Successful Response

A regular sponsored brand campaign returned by the public API.

campaignId
string<uuid>
erforderlich

The ID of the campaign.

marketplaceId
string<uuid>
erforderlich

The ID of the marketplace.

vendorId
string
erforderlich

The external vendor ID.

name
string
erforderlich

The name of the campaign.

Minimum string length: 1
Beispiel:

"Bola-Bola Ad campaign"

isActive
boolean
erforderlich

Whether the campaign is active.

status
enum<string>
erforderlich

The approval status of the sponsored brand campaign.

Verfügbare Optionen:
approved,
pending,
rejected
isAutoTrigger
boolean
erforderlich

Whether the campaign is auto-triggered.

slotId
string
erforderlich

The external slot ID where the sponsored brand campaign is shown.

schedule
Schedule · object[]
erforderlich

The schedule for the campaign.

Required array length: 1 element
content
Content · object
erforderlich

Dynamic content validated against the slot's JSON template.

createdAt
string<date-time>
erforderlich

When this campaign was created.

updatedAt
string<date-time>
erforderlich

When this campaign was last updated.

bidType
enum<string>
erforderlich

The bidding type of the campaign.

Verfügbare Optionen:
manual,
autobidding
isAgency
boolean
erforderlich

Whether this campaign is promoted by an agency.

chargeType
enum<string>
erforderlich

How campaigns are charged.

Verfügbare Optionen:
CPM,
CPC,
CPA
budget
Budget · object
erforderlich

The assigned budget for the campaign.

externalCampaignId
string | null

The external ID of the campaign in the marketplace.

walletId
string<uuid> | null

The uuid of the wallet used with this campaign.

targetRoas
number | null

Indicates the vendor's target return on ad spend.

Erforderlicher Bereich: 0.5 <= x <= 30
targetRoasPreference
enum<string> | null

Target ROAS preference label.

Verfügbare Optionen:
aggressive,
conservative,
moderate,
custom
autobiddingObjective
enum<string> | null

The objective of the campaign.

Verfügbare Optionen:
impressions,
clicks,
conversions,
revenue