Introduction
The Retail Media Real-Time Performance API is a synchronous reporting endpoint that exposes near real-time campaign performance data from the Retail Media reporting platform. This API is designed for:- Demand Side users accessing through a Commerce Yield Private Market account,
- Demand Side users accessing through a Commerce Max Network account.
- Real-time monitoring during major retail events (for example, Black Friday, Prime Day, etc.),
- Live optimization dashboards for trading teams,
- Alerting systems reacting to sudden performance changes (spend drops/spikes, click anomalies, etc.).
- about 15 minute latency from impression/click to availability in the API,
- a maximum 7-day look back window,
- Onsite campaign coverage only,
- A focused set of metrics:
impressions,clicks,spend.
Endpoints Overview
Verb | Endpoint | Description |
|---|---|---|
POST |
| Retrieves real-time Retail Media performance metrics |
Attributes
Attribute | Data Type | Description |
|---|---|---|
| date | Start date (YYYY-MM-DD) for the reporting window. Must be no more than 7 days in the past in the requested timezone. |
| date | End date (YYYY-MM-DD) for the reporting window. Optional |
| array of strings | Single retailer ID filter. Optional |
| array of strings | Filter by account IDs. Max 5 IDs. Chooseoneof: |
| array of strings | Filter by campaign IDs. Max 50 IDs. Chooseoneof: |
| array of strings | Filter by line item IDs. Max 50 IDs. Chooseoneof: |
| array of strings | Grouping dimensions. Must contain at leastonevalue. |
| array of strings | Requested metrics. Must contain at leastonevalue. |
| string | Time zone identifier. Defaults to UTC if not provided. |
Supported Dimensions
Values in thedimensions array must be selected from:
accountId,campaignId,lineItemId,retailerId,accountName,campaignName,lineItemName,retailerName,date,hour.
Supported Metrics
Values in themetrics array must be selected from:
impressions,clicks,spend.
billableImpressions and billableClicks are still accepted for backward compatibility with existing preview integrations, but are redundant with impressions/clicks and should not be used in new integrations.Behavioral Notes
- Optional end date parameter: The endpoint accepts an optional
endDateparameter. If omitted, it will return data fromstartDateup to the current hour in the requested timezone. - Look back limit: The look back window is limited to 7 days relative to “now” in the requested timezone.
Requests withstartDateolder than this limit are rejected with a 400 Bad Request. - Time zone handling: All date/hour-based dimensions (date, hour) are computed in the requested timezone.
If timezone is omitted, UTC is used.
Real-Time Performance Endpoint
This endpoint retrieves real-time Retail Media performance metrics.Sample Request
Sample Response
Responses
Response | Title | Detail | Troubleshooting |
|---|---|---|---|
🟢 | Success | Data returned successfully | Call executed with success |
🔴 | Validation Error | Invalid request (timezone, filters, dimensions, metrics, look back, etc.) | Review request parameters |
🔴 | Missing Entity Filters | No | Provide exactly one entity filter |
🔴 | Entity Filter Limit Exceeded | Too many IDs provided | Respect max limits |
🔴 | Missing Metrics | metrics is missing or empty | Provide at least one metric |
🔴 | Missing Dimensions | dimensions is missing or empty | Provide at least one dimension |
🔴 | Look back Window Exceeded |
| Ensure ≤ 7 days |
🔴 | Invalid Timezone | Unsupported timezone | Use valid timezone |
🔴 | Deserialization Error | Invalid format or type | Fix payload format |
🔴 | Forbidden | Unauthorized access to resources | Check permissions |