Learn how to use the auctions API to create auctions for listings and banners.
The auctions API enables you to create a wide variety of auctions.Whether you want to include sponsored listings in search results or banners on your homepage, we’ve got you covered.
Ensure your campaigns have sufficient budget! The most common reason for empty auction results is budget exhaustion. Campaigns with zero remaining budget cannot participate in auctions, leading to no winners. Check your campaign budgets before testing auctions.
The /auctions endpoint allows you to run up to 5 auctions in one request.The full spec for this endpoint is found here.This can be quite a lot to take in at once, so let’s stick to the basics now.Every request body should be provided as JSON and is generally structured as follows.
Do not cache this response or it’s results. Auctions need to be unique per page view, this is what makes the system work.If the auction results are cached, the same results could be shown to multiple users or to the same user multiple times.
If there are no request errors, the auctions endpoint will return the results for each auction.A successful response does not mean that each auction succeeded or has winners. You will need to check the results to determine this.
It’s not guaranteed that an auction will result in winners. If there are no active campaigns that match it’s criteria, there won’t be any bids to place.If our earlier auction request did not have any winners for either auction, it’s response will look something like this: