curl --request GET \
--url https://api.topsort.com/public/v1/campaign-service/campaigns \
--header 'Authorization: Bearer <token>'{
"hasMore": true,
"campaigns": [
{
"campaignId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"marketplaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"startDate": "2023-11-07T05:31:56Z",
"endDate": "2023-11-07T05:31:56Z",
"isActive": true,
"isSmart": true,
"campaignType": "manual",
"status": "approved",
"createdAt": "2023-11-07T05:31:56Z",
"chargeType": "CPM",
"externalVendorId": "<string>",
"adFormat": "listing",
"isAutoTrigger": true,
"vendorId": "<string>",
"walletId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"bidCount": 123,
"budget": {
"amount": 123,
"amountRemaining": 123,
"amountCarryover": 123,
"amountUsed": 123,
"type": "daily"
},
"statusUpdatedBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"campaignBehaviorData": "<string>",
"campaignBehaviorDataByDay": "<string>",
"exclusivityPrice": 123,
"targetRoas": 123,
"externalCampaignId": "<string>",
"autobiddingObjective": "impressions",
"multiplierConfig": {
"isActive": true,
"multipliers": [
{
"type": "<string>",
"segmentId": 123,
"multiplier": 2
}
]
},
"targetingFilters": {
"isActive": true,
"targetingFilters": [
{
"type": "<string>",
"segmentId": 123
}
]
},
"exclusionFilters": {
"isActive": true,
"exclusionFilters": [
{
"type": "<string>",
"segmentId": 123
}
]
},
"promotionType": {
"bannerAssets": [
{
"dimensions": {
"width": 123,
"height": 123
},
"url": "<string>",
"contentType": "image/png",
"size": 123,
"assetId": "asset_01j713j64yfsvtj4bs3ccpy5ca",
"content": {},
"jsonTemplateId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"slotId": "<string>",
"adFormat": "<string>",
"deviceType": "desktop"
}
}
],
"next": {
"offset": 123,
"limit": 123
}
}Endpoint to retrieve campaigns. Campaigns can be filtered by Vendor ID and status.
It is expected to use for getting all campaigns of a marketplace & all campaigns of a vendor in dashboards. Filtering by status is expected to use at review page getting campaigns approved, pending tabs.
curl --request GET \
--url https://api.topsort.com/public/v1/campaign-service/campaigns \
--header 'Authorization: Bearer <token>'{
"hasMore": true,
"campaigns": [
{
"campaignId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"marketplaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"startDate": "2023-11-07T05:31:56Z",
"endDate": "2023-11-07T05:31:56Z",
"isActive": true,
"isSmart": true,
"campaignType": "manual",
"status": "approved",
"createdAt": "2023-11-07T05:31:56Z",
"chargeType": "CPM",
"externalVendorId": "<string>",
"adFormat": "listing",
"isAutoTrigger": true,
"vendorId": "<string>",
"walletId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"bidCount": 123,
"budget": {
"amount": 123,
"amountRemaining": 123,
"amountCarryover": 123,
"amountUsed": 123,
"type": "daily"
},
"statusUpdatedBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"campaignBehaviorData": "<string>",
"campaignBehaviorDataByDay": "<string>",
"exclusivityPrice": 123,
"targetRoas": 123,
"externalCampaignId": "<string>",
"autobiddingObjective": "impressions",
"multiplierConfig": {
"isActive": true,
"multipliers": [
{
"type": "<string>",
"segmentId": 123,
"multiplier": 2
}
]
},
"targetingFilters": {
"isActive": true,
"targetingFilters": [
{
"type": "<string>",
"segmentId": 123
}
]
},
"exclusionFilters": {
"isActive": true,
"exclusionFilters": [
{
"type": "<string>",
"segmentId": 123
}
]
},
"promotionType": {
"bannerAssets": [
{
"dimensions": {
"width": 123,
"height": 123
},
"url": "<string>",
"contentType": "image/png",
"size": 123,
"assetId": "asset_01j713j64yfsvtj4bs3ccpy5ca",
"content": {},
"jsonTemplateId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"slotId": "<string>",
"adFormat": "<string>",
"deviceType": "desktop"
}
}
],
"next": {
"offset": 123,
"limit": 123
}
}A valid API key generated in Topsort's UI.
The ID of the vendor. Omit to get campaigns for all vendors.
1Filter by the approval status of banner campaigns.
approved, pending, rejected The pagination offset.
x >= 0The pagination limit.
0 <= x <= 100Filter by active/inactive campaigns.
Filter by external campaign ID.
The ID of the slot. Used to filter banner and sponsored brand campaigns by slot.
Optional sort by date of campaign creation. Deprecated. Use order_by instead.
asc, desc Comma-separated order by clauses, e.g. 'created_at:asc,name:desc'. Supported dimensions: created_at, start_date, end_date, name, campaign_id.
Successful Response
The campaigns response.
Whether this is the last page of results or not.
An array of campaigns.
Show child attributes
The ID of the campaign.
The ID of the marketplace.
The name of the campaign.
1The starting date of the campaign.
The end date of the campaign.
Whether this campaign is active.
Whether this campaign is "smart".
The bidding method for the campaign.
manual, autobidding, exclusive Represents the review status of a banner campaign.
approved, pending, rejected When was this campaign created.
How campaigns are going to be charged, by click, by per mille impressions, or by action.
CPM, CPC, CPA The ID of the vendor. Deprecated. Use vendor_id instead.
1The ad format of the campaign. Can be listing or banner.
listing, banner, sponsored_brand, exclusive_listing, exclusive_banner, travel_listing, flight_listing Whether the campaign is auto-triggered.
The ID of the vendor.
1The uuid of the wallet to be used with this campaign.
The amount of active bids associated with this campaign.
The budget assigned to the campaign.
Show child attributes
The amount of money in the budget in minor units of currency according to ISO 4217.
The remaining amount of the budget.
The amount carried over from the last period.
The used amount of the budget.
The periodicity of the budget.
daily, weekly, monthly, total 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.
Deprecated. This field is always null. For behavioral data use reporting service.
Deprecated. This field is always null. For behavioral data use reporting service.
Daily price for an exclusive campaign, can only be set if a campaign is exclusive
The target return on ad spend (ROAS) for this campaign. This is only applicable for autobidding listing campaigns.
The external ID of the campaign in the marketplace. Must be unique per marketplace and format combination.
The autobidding objective for the campaign.
impressions, clicks, conversions, revenue The multiplier configuration for the campaign.
Show child attributes
Whether the multiplier is active.
List of multipliers.
3Show child attributes
The segments that the campaign will participate for (and will not for other segments not here).
Show child attributes
Whether the filter is active.
The segments that the campaign will not target.
Show child attributes
Whether the filter is active.
Deprecated. Use adFormat field instead and format properties inside bids. The promotion type and attributes. Ad format must set to 'banner' for exclusive campaigns.
Show child attributes
The assets for the banner campaign, if adFormat is banner.
1Show child attributes
The url where the asset is located. If asset_id is provided, this field will be ignored.
1 - 2083The mime type of the asset. If asset_id is provided, this field will be ignored.
1"image/png"
The file size of the asset, in bytes. If asset_id is provided, this field will be ignored.
Asset id, if created using the asset API.
33"asset_01j713j64yfsvtj4bs3ccpy5ca"
The id of the json template that was used to create the json content.
The external slot id provided by the marketplace.
1"banner"The targeted device for this campaign, if adFormat is banner.
mobile, desktop Was this page helpful?