The Post Checkout Banner Ad Context
What Are Post Checkout Banner Ads?
Post Checkout Banner Ads are an opportunity for retailers to monetize 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 Post Checkout Banner Ads should be implemented in the Thank you page after a user has completed an order.
Post Checkout Banner Ads require a simple "context' to be sent to Project Agora Commerce. A "context" is a bit of code that defines the conditions under which a product is shown to a customer.
Post Checkout Banner Ads use a similar context to Product Ads, you will need your contentStandardId
and bannerSlotIds
.
The placement
attribute for Post Checkout Banner Ads ads has the value "banner-post-checkout".
Post Checkout Banner Ads will be integrated and serve only in the thank you pages of a website and the position is defined in the Project Agora Commerce Ad Proposal file provided during the beginning of the integration.
The Ingrid Banner Ads use the "Agora Post-checkout" content standard.
Minimum Viable Context:
Below are the minimum values needed to generate a post checkout banner ad:
POST $BASE_URL/v1/ads/generate HTTP/1.1
accept: application/json
content-type: application/json
Authorization: Basic your_api_key_here
{
"catalogId": "$MY_CATALOG_ID",
"placement": "banner-post-checkout",
"contentStandardId": "string",
"bannerSlotIds": ["string"],
"maxNumberOfAds": number,
"sessionId": "string"
}
Exemplar Context
Here is an example of a context:
POST $BASE_URL/v1/ads/generate HTTP/1.1
accept: application/json
content-type: application/json
Authorization: Basic 4ww25f70-b52s-40de-8f29-07b139b5cdc8
{
"catalogId": "628dbe95-2ec9-4e07-881d-3e9f92ab2e0b",
"placement": "banner-post-checkout",
"contentStandardId": "885d0bf3-0c9a-450f-a3c3-706e228cbb05",
"bannerSlotIds": ["Postcheckout_Banner"],
"maxNumberOfAds": 2,
"sessionId": "23dn3923-323d"
}
What Happens when an Ad Is Successfully Requested
When you successfully request an ad, you receive the following object:
HTTP/2 200
{
"ads": [],
"banners": [
{
"id": "banner_syCZH8KEezQH4zAwlPrfLoUTYd0yODk5MDQ5UA==",
"contentStandardId": "885d0bf3-0c9a-450f-a3c3-706e228cbb05",
"slotId": "Ingrid_Banner",
"imageUrl": "https://assets.flavedo.io/s/BuzjrZS0fdyWw-NOyTh9Z6wxsvrdbtmXzwrDCvmSr4o=",
"linkUrl": "https://www.retailer.com/linkforwardedurl",
"altText": "Category banner for brandx laptop",
"text": "",
"gtins": [
"catpref--2899049P",
"catpref--9891566P",
"catpref--2902620P"
],
"expiry": "2019-12-10T01:46:07.518340479Z",
"tags": {}
}
],
"products": []
}
No customer information or cart items are necessary in this simple context. The simple context consists only of necessary filters.
In order to serve a Banner Ad on your website you will have to use as a creative image the imageUrl
, and as a landing page the linkUrl
as taken from the above ad response. The id also from this response shall be saved for later use for Impression/Click reporting.
Last updated