Create Campaign
Endpoint to create a campaign with its respective budget and bids.
It is expected to use at all types of campaign creations.
Authentication
Topsort’s APIs are authenticated via bearer tokens. Requests must include an authorization header containing your private API key.
Don't have an API key yet? Learn how to generate one.
The header containing a private API key. Format this header as follows:
Authorization: Bearer <YOUR-API-KEY>
Query Parameters
object
The ID of the vendor.
The ID of the vendor.
Request Body
The request body of campaign creation.
object
The ad format of the campaign. Can be listing or banner.
An array of bids for this campaign.
The request model for bid creation.
object
Maximum amount of money willing to offer for a sponsored slot in minor units of currency according to ISO 4217.
The format properties of the bid. This field is required for banner ads. Should be not set for listing ads.
object
The assets for the banner campaign, if adFormat
is banner
.
Represents the banner resource file, it’s location, mimetype, dimensions and size.
object
The mime type of the asset.
The width and height of an asset.
object
The height of the image.
The width of the image.
The file size of the asset, in bytes.
The url where the asset is located.
The targeted device for this campaign, if adFormat
is banner
.
The external slot id provided by the marketplace.
By using this option you will be able to target this campaign to a specific group.You must define the same location as a parameter on the auction request. Products on a specific campaign will have specific conversion rates, considering the context of location, so it will not interfere with the conversion rates for the same product in other campaigns.
Represents a promotable entity that will be returned upon a winning auction.
object
The unique ID of the entity.
Collection of keywords that match to a product.
Ideal for search results pages.
object
object
The list of keywords.
Catalog-based category from a product.
Ideal for category product listing pages.
object
object
The ID of the category.
Catalog-based categories from a product.
Ideal for category product listing pages. Not allowed for banner ads.
object
object
The ID of the product to retrieve categories from.
The ID of a product.
object
object
The ID of the product.
A blank trigger for times when none of the other filters are used.
Ideal for Landing pages.
object
A list of objects that trigger the appearance of this bid on an auction.
Collection of keywords that match to a product.
Ideal for search results pages.
object
object
The list of keywords.
Catalog-based category from a product.
Ideal for category product listing pages.
object
object
The ID of the category.
Catalog-based categories from a product.
Ideal for category product listing pages. Not allowed for banner ads.
object
object
The ID of the product to retrieve categories from.
The ID of a product.
object
object
The ID of the product.
A blank trigger for times when none of the other filters are used.
Ideal for Landing pages.
object
The assigned budget for the campaign.
object
The amount of money in the budget in minor units of currency according to ISO 4217.
The bidding method for the campaign.
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.
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.
Whether the campaign should be activated upon creation.The campaign will start when this is set and the start_date
has passed.
The name of the campaign.
object
The assets for the banner campaign, if adFormat
is banner
.
Represents the banner resource file, it’s location, mimetype, dimensions and size.
object
The mime type of the asset.
The width and height of an asset.
object
The height of the image.
The width of the image.
The file size of the asset, in bytes.
The url where the asset is located.
The targeted device for this campaign, if adFormat
is banner
.
The external slot id provided by the marketplace.
object
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.
For a banner campaign, its initial review status.
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.
The uuid of the wallet to be used with this campaign.
Responses
Successful Response
The campaign model.
object
The ad format of the campaign. Can be listing or banner.
The amount of active bids associated with this campaign.
The budget assigned to the campaign.
object
The amount of money in the budget in minor units of currency according to ISO 4217.
The amount carried over from the last period.
The remaining amount of the budget.
The used amount of the budget.
Deprecated. This field is always null. For behavioral data use reporting service.
Deprecated. This field is always null. For behavioral data use reporting service.
The ID of the campaign.
The bidding method for the campaign.
How campaigns are going to be charged, by click or by per mille impressions
When was this campaign created.
The end date of the campaign.
Daily price for an exclusive campaign, can only be set if a campaign is exclusive
The ID of the vendor. Deprecated. Use vendor_id instead.
Whether this campaign is active.
Whether this campaign is “smart”.
Whether this is a promoted shop campaign.
The ID of the marketplace.
The name of the campaign.
object
The assets for the banner campaign, if adFormat
is banner
.
Represents the banner resource file, it’s location, mimetype, dimensions and size.
object
The mime type of the asset.
The width and height of an asset.
object
The height of the image.
The width of the image.
The file size of the asset, in bytes.
The url where the asset is located.
The targeted device for this campaign, if adFormat
is banner
.
The external slot id provided by the marketplace.
object
The starting date of the campaign.
Represents the review status of a banner campaign.
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.
The target return on ad spend (ROAS) for this campaign. This is only applicable for autobidding listing campaigns.
The ID of the vendor.
The uuid of the wallet to be used with this campaign.
Validation Error