POST
/
public
/
v1
/
campaign-service
/
campaigns

Query Parameters

vendor_id
string
required

The ID of the vendor.

Body

application/json
adFormat
enum<string>

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

Available options:
listing,
banner
bids
object[]
required

An array of bids for this campaign.

budget
object

The assigned budget for the campaign.

campaignType
enum<string>
required

The bidding method for the campaign.

Available options:
manual,
autobidding,
exclusive
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.

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.

name
string
required

The name of the 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.

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.

walletId
string

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

Response

200 - application/json
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.

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.

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.

exclusivityPrice
integer

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

externalVendorId
string
requireddeprecated

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

isActive
boolean
required

Whether this campaign is active.

isSmart
boolean
required

Whether this campaign is "smart".

isVendorCampaign
boolean
default: false

Whether this is a promoted shop campaign.

marketplaceId
string
required

The ID of the marketplace.

name
string
required

The name of the 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.

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
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.

vendorId
string
required

The ID of the vendor.

walletId
string
required

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