Requesting product ads
Requesting ads
All product ad requests require the context's placement, and catalogId, as well as the maxNumberOfAds you would like to display to the customer. In addition, your request should include the context's customerId and sessionId.
Search placements
Search placements are typically the easiest to request. They require a searchTerm to be specified in the request, like the example below:
POST $BASE_URL/v1/ads/generate HTTP/1.1
accept: application/json
content-type: application/json
Authorization: Basic <API_KEY>
{
"customerId": "wertg5432a",
"sessionId": "ec9-4e07-881d-3e9",
"dtmCookieId": "AAAF8xLBTA968AB6TOthAAAAAAE",
"placement": "search",
"catalogId": "628dbe95-2ec9-4e07-881d-3e9f92ab2e0b",
"searchTerm": "chocolate",
"options": {
"filterMode": "AndOr"
},
"maxNumberOfAds": 3
}Category placements
Category placements require productFilters to be specified in the request. The example below shows where you would send the category filters:
As additional categories are perused, you need to update your API call accordingly.
Cross-sell category placements
Cross-sell category placements have a very similar request to category placements. You will want to specify the exact category you are requesting ads for. This is typically the page you are on. Specify the category in the productFilters of the request. The example below shows where you would send the category filters:
As additional categories are perused, you need to update your API call accordingly.
Broad match placements
Broad placements such as home or checkout pages do not require any productFilters to be specified in the request. Any filters the retailer would like to specify (on offer, new, etc) can be specified in the productFilters to ensure Epsilon Retail Media only serve ads within the requirements.
Request enhancements
On search, category, and broad match placements, we advise you to consider the below enhancements to enhance your user experience.
Paginating requests
When generating product ads, you will receive a memoryToken that can be sent in subsequent requests to exclude previously served ads. You can then send this memoryToken in a subsequent ad request, and Epsilon Retail Media will exclude any previously served ad for the same context from our ad response.
Please review Pagination prior to implementing.
Filtered searches
If your customer filters their search, you can extend your context to provide productFilters. Below is an example where the customer is filtering by the category "Cupboard" and the dietary restriction "Gluten-free". This same principle can be applied to any category or broad match placement.
Filtering by location
If you are synchronising location filters in your catalog, you can extend your context to provide the customer's store location in the productFilters:
The product ad response
All product ad responses follow the same JSON format. Product ads are returned in the ads array, like the example below:
The id field is your ad ID used in impression and click reports. The position field defines the position in the Epsilon Retail Media payload. Please refer to the reference for more information on each string.
Marketplace sellerId
If onboarding marketplace sellers, you may see an additional sellerId per ad in the response. This will only appear if the team that owns the campaign being served has a seller ID configured in the UI. The example below shows one ad with a sellerId, one without.
Digital Services Act
Epsilon Retail Media assists retailers in meeting their European Union (EU) Digital Services Act (DSA) obligations. The DSA establishes a unified set of rules across the EU, targeting the regulation of online content, transparent advertising, and disinformation. For more information, see Digital Services Act.

