Before going live with Sponsored Ads, you must supply Platform 195 with a destination/category ID mapping and a product ID list. See Setup requirements.
Setup requirements
To configure Sponsored Ads, Platform 195 requires:- Destination or category ID mapping — a CSV or feed of all destinations/categories with their associated IDs, preferably at two levels (e.g. Country, Region, Resort).
- Product IDs — a CSV or feed of all product IDs available on your site.
Requesting sponsored ads
POST to the sponsored ad endpoint at page load. Authentication is required via headers — see Authentication. Endpoint:POST https://dev.api.upliftads.io/v3/sponsored-ad
Request parameters
Keyword targeting
Serving sponsored ads
The response returns a ranked list of product candidates. Work through the list from top to bottom and match eachproductID against the products available in the user’s organic results.
Matching logic
1
Receive the ranked candidate list
The response contains up to
count ads ranked in priority order, each with a productID.2
Map against organic listings
Compare each
productID in the response against the product IDs in the organic results for the current search, working top-to-bottom.3
Fill sponsored positions
Serve matching products into the available sponsored slots in ranked order. Stop once all slots are filled. Products that don’t match the organic results, or that fall beyond the available slots, are not shown.
4
Label as sponsored
Any product shown in a sponsored position must be clearly labelled as paid — for example, with a
Sponsored or Ad badge.Handling filter events
When a user applies a filter to the results, do not make a new request to Uplift. Instead, re-apply the matching logic using the original ranked response from the initial page load:- If a sponsored product remains in the filtered results, keep it in its sponsored position and fire its
impressionUrlagain. - If a sponsored product is removed by the filter, work down the original ranked list to find the next matching product and promote it into the sponsored slot.
Response
The clickUrl
For Sponsored Ads, clicking a product should navigate the user to that product’s detail page on your site. You do not need to redirect via the clickUrl — instead, fire it as a GET request when the user clicks, and handle the navigation yourself.
Reporting
See Tracking Ad Engagement for full details on firing impression, click, viewable impression, and conversion tracking URLs.Evidencing
Wrap each sponsored ad placement in adiv with a class of FID_ followed by the flightId from the response: