Sponsored listings in search results
Learn how to use sponsored listings on search results
The example on this page shows how to run auctions for products originating from search results.
There are two ways to run these type of auctions:
- Using the
searchQuery
parameter, where only bids that target products with matching keywords will have a chance to win such auctions. - Using a set of products and additionaly use the
searchQuery
parameter to expand the list of bids by adding products with matching keywords to the ones in the set of products.
Use cases
Running these kind of auctions on search pages will allow your vendors to promote products inside the search results.
Example API call
Request: using searchQuery
The request above will create a single listings auction:
- It will have a maximum of two winners due to the
slots
field. - The
searchQuery
field determines what keywords bid targets must have.
Only bids that target products with the Running shoes
keyword can take part in this auction.
Response
Notable here:
- The type of the winners is
product
, because we’re running a listings auction. - There are two winners, the maximum that is allowed by the
slots
field in the request.
Request: combining products and searchQuery
The request above will create a single listings auction:
- It will have a maximum of two winners due to the
slots
field. - The
searchQuery
field determines what keywords bid targets must have.
Products entering this auctions will be "p_ojng4"
, "p_8VKDt"
, "p_Mfk15"
and those with a keyword matching the searchQuery
.
Response
Notable comments:
- The type of the winners is
product
, because we’re running a listings auction. - There are two winners, the maximum that is allowed by the
slots
field in the request. - The winner in rank 1
"p_Mfk15"
comes from the set of product and rank 2"p_PJbnN"
comes from matching keywords since itsid
was not specified in the auction request.
Running auctions using the searchQuery
parameter enhances Topsort to improve the Keywords Matching algorithm.
Using this type of auctions does not allow to use quality scores.
Next steps
The winners will need to be combined with product data to a create a result that can be shown to the end-user.
Check this page for an example.