Skip to main content

List Ad Catalog

GET 

/ads/catalog

Page through a brand's listings on a channel that a campaign there can advertise. Pass excludeCampaignId to leave out what that campaign already advertises: a listing is left out when the campaign holds an Active item on any of its keys (its listing id, product id, variant id, SKU, barcode or Trendyol content id), so a size whose content the campaign already advertises is left out too. On a cursor page, pagination.total and totalPages are the counts the first page reported: the total is counted only on the first page, where it is cheap to wait for. With groupBy=parent the read pages by page number only: pagination.nextCursor is null and a cursor is refused.

With groupBy=parent the page is made of groups: the listings whose products share a parent (one design sold in several sizes or colours) are one group, and every other listing is a group of its own. limit and pagination.total count groups. Groups sort by their variants' lowest name, the lowest product id breaking ties. items holds the offered listings, contiguous per group, and parents carries every variant each parent lists on the channel with whether the campaign already advertises it, so advertising a parent is adding the SKUs whose isAdvertised is false.

Requires ads.read.

Request and response fields at a glance
  • Query parameters: brandId (integer, required), saleChannelId (integer, required), search (string), excludeCampaignId (integer), page (integer), limit (integer), groupBy (string).
  • 200 response (application/json): items (array, required), parents (array), pagination (object, required).

Request​