POST
/
public
/
v1
/
campaign-service
/
campaigns

Query Parameters

vendor_id
string
required

The ID of the vendor.

Minimum length: 1

Body

application/json

The request body of campaign creation.

bids
object[]
required

An array of bids for this campaign.

campaignType
enum<string>
required

The bidding method for the campaign.

Available options:
manual,
autobidding,
exclusive
name
string
required

The name of the campaign.

Minimum length: 1
adFormat
any

The ad format of the campaign. Can be listing or banner.

budget
object

The assigned budget for the campaign.

chargeType
enum<string>

How campaigns are going to be charged, by click or by per mille impressions.ListingAd campaigns are charged per click by default.BannerAd campaigns are charged per mille impressions by default.

Available options:
CPM,
CPC
endDate
string

Date when to stop the campaign, specified in RFC 3339, if not set the campaign will never stop. This date must be greater than the start date and must be in the future. Must include the Timezone definition.

externalCampaignId
string

The external ID of the campaign in the marketplace.

isActive
boolean
default: true

Whether the campaign should be activated upon creation.The campaign will start when this is set and the start_date has passed.

isSmart
boolean

Whether the campaign is smart.

promotionType
object
deprecated

Deprecated. Use adFormat field instead and format properties inside bids. The promotion type and attributes. Ad format must set to 'banner' for exclusive campaigns.

startDate
string

Date when to start the campaign, specified in RFC 3339, if not set that campaign will start immediately after the campaign creation. Must include the Timezone definition.If the start date is in the past, it will be set to the current date.

status
enum<string>
default: approved

For a banner campaign, its initial review status.

Available options:
approved,
pending,
rejected
targetRoas
number

This is an indication of the vendor's advertising goals. However, a high ROAS (>12) is generally hard to achieve and depends on the metrics of the advertised products and the purchase attribution model used by the marketplace.

Required range: 0.5 < x < 20
walletId
string

The uuid of the wallet to be used with this campaign.

Response

200 - application/json

The campaign model.

adFormat
enum<string>
required

The ad format of the campaign. Can be listing or banner.

Available options:
listing,
banner
bidCount
integer
required

The amount of active bids associated with this campaign.

campaignId
string
required

The ID of the campaign.

campaignType
enum<string>
required

The bidding method for the campaign.

Available options:
manual,
autobidding,
exclusive
chargeType
enum<string>
required

How campaigns are going to be charged, by click or by per mille impressions

Available options:
CPM,
CPC
createdAt
string
required

When was this campaign created.

endDate
string
required

The end date of the campaign.

externalVendorId
string
requireddeprecated

The ID of the vendor. Deprecated. Use vendor_id instead.

Minimum length: 1
isActive
boolean
required

Whether this campaign is active.

isSmart
boolean
required

Whether this campaign is "smart".

marketplaceId
string
required

The ID of the marketplace.

name
string
required

The name of the campaign.

Minimum length: 1
startDate
string
required

The starting date of the campaign.

status
enum<string>
required

Represents the review status of a banner campaign.

Available options:
approved,
pending,
rejected
vendorId
string
required

The ID of the vendor.

Minimum length: 1
walletId
string
required

The uuid of the wallet to be used with this campaign.

budget
object

The budget assigned to the campaign.

campaignBehaviorData
string
deprecated

Deprecated. This field is always null. For behavioral data use reporting service.

campaignBehaviorDataByDay
string
deprecated

Deprecated. This field is always null. For behavioral data use reporting service.

exclusivityPrice
integer

Daily price for an exclusive campaign, can only be set if a campaign is exclusive

externalCampaignId
string

The external ID of the campaign in the marketplace.

isVendorCampaign
boolean
default: false

Whether this is a promoted shop campaign.

promotionType
object
deprecated

Deprecated. Use adFormat field instead and format properties inside bids. The promotion type and attributes. Ad format must set to 'banner' for exclusive campaigns.

statusUpdatedBy
string

The ID of the user who reviewed the campaign. If it's null and the status is not "pending" then it means this campaign has autoapproval status.

targetRoas
number

The target return on ad spend (ROAS) for this campaign. This is only applicable for autobidding listing campaigns.