Use the /auctions endpoint to create auctions. Each batch of auction requests can be a combination of sponsored listing auctions and banner auctions. Each auction type has a unique body schemas.
A valid API key generated in Topsort's UI.
The information describing what will be auctioned. Topsort will run an auction for each batched auction request, for which products' bids will compete against each other.
1 - 5 elementsDescribes the intent of running a single auction.
{
"type": "listings",
"slots": 2,
"products": {
"ids": ["p_PJbnN", "p_ojng4", "p_8VKDt", "p_Mfk15"]
},
"geoTargeting": { "location": "New York" }
}
[
{
"type": "listings",
"slots": 2,
"products": { "ids": ["p_PJbnN"] }
}
]
The auction results. The list of winners will contain at most slots entries per auction. It may contain fewer or no entries at all if there aren't enough products with usable bids, that is, a bid amount greater than the reserve price and belonging to a campaign with enough remaining budget. Bids become unusable if campaign budget is exhausted, the bid is disqualified to preserve spend pacing, etc.
1 - 5 elementsBase auction result schema supporting different auction types through discriminator.
[
{
"resultType": "listings",
"winners": [],
"error": false
}
]