The Post Checkout Banner Ad Context
What Are Post Checkout Banner Ads?
Post Checkout Banner Ads are an opportunity for retailers to monetise their website experience after a customer has completed their order. As customers are unlikely to remain on the retailer's site or create an additional order, it is heavily advised that this opportunity is opened to third parties to advertise their relevant banners.
The Context
In order to request Post Checkout Banner Ads, you must provide a context.
An example of a context is shown below. In this example, the type of each kind of data is shown. For example, "string" means an alphanumeric string. number means a number like "1" or "950.49". Integer means a whole number, like "1" or "25".
A Simple Context
POST $BASE_URL/v1/ads/generate HTTP/1.1
accept: application/json
content-type: application/json
Authorization: Basic your_api_key_here
{
"catalogId": "string",
"customerId": "string",
"pageType": "string",
"currentCartItems": [
{
"gtin": "string=pa_id",
"quantity": "number",
"regularUnitPrice": "number",
"totalOrderItemPriceAfterDiscounts": "number",
"adId": "string",
}
],
"maxNumberOfAds": "number",
"contentStandardId": "contentStandardId1",
"bannerSlotIds": ["slotId1"],
"sessionId": "String"
}A mock version can be seen below:
This mock version features a single item in an order. This particular item is targeted by a Post Checkout Banner Ad campaign and will return a Banner Ad.
CurrentCartItems is a required field for Post Checkout Banner Ads as this field determines Banner targeting
What Happens when an Ad Is Successfully Requested
When you successfully request an ad, you receive the following object:
A mock version can be seen below:
A Larger Cart Context
You will also encounter instances wherein your customers will have more that 1 item in their cart:
A mock version can be seen below:
This mock version features 4 items in an order. 3 of these items are targeted by Post Checkout Banner Ad campaigns and will return 3 Banner Ads.
What Happens when an Ad Is Successfully Requested
When you successfully request an ad, you receive the following object:
A mock version can be seen below:
A Larger Complex Cart Context
You may also encounter instances wherein your customers will have items added to their cart that are a result of clicks to Product Listing Ads, in this case the adId will be a field within currentCartItems:
A mock version can be seen below:
This mock version features 4 items in an order. 3 of these items are targeted by Post Checkout Banner Ad campaigns and will return 3 Banner Ads. Additionally, 2 items contain the adId field as they're the result of a clicked Product Listing Ad.
What Happens when an Ad Is Successfully Requested
When you successfully request an ad, you receive the following object. In this instance the retailer has enabled tag tracking. This allows third party advertisers to track their banner with their own tracking tags. You will see this in the tagUrl field.
A mock version can be seen below:
Last updated