Requesting a Category Product Ad
Page Category 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.
Minimum Viable Context:
Below are the minimum values needed to generate a category ad:
Exemplar Context
Here is an example of a context for the pageType "Category"
:
What Happens when an Ad Is Successfully Requested
When you successfully request an ad, you receive the following object:
No customer information or cart items are necessary in this simple context. The simple context consists only of necessary filters.
Filtered Browsing
When a user filters browsing deeper into subcategories, you are able to serve ads relevant to their filters using more productFilters
in the context.
In this example, the user has navigated to the Computers category, and browsed further to "Laptops" and "Windows" categories. This is a new request and considered by Project Agora Commerce as a new page, and new set of ads. Even in the rare event the ads served are identical to the unfiltered results.
As your customers filter deeper in their searches, your request will include more product filters
What Happens when an Ad Is Successfully Requested
When you successfully request an ad, you receive the following object:
Brand page Request
Kindly note that the process for requesting an SPL ad inside a brand/vendor page is exactly the same except from the Product Filtering which changes like this:
where brand_name is the exact name of the brand as indicated in the product feed.
Last updated