This endpoint is available in the Experimental version of the Retail Media API only.
Experimental endpoints may change without prior notice. See the versioning policy for details.
Overview
Use the Line Item Diagnostics endpoint to check whether a line item is configured correctly. The response reports a status for each evaluated line item and, when requested, the configuration context, evaluated parameters, and issues that require attention. You can check one line item or a page of line items in one campaign. Your access token must be authorized to view the selected resource. See Authentication.Endpoint
Get Line Item Diagnostics
Send exactly one resource selector:line-item-id or campaign-id. A line-item request returns one result. A campaign request returns a paginated result set.
Query Parameters
status and systemData are always included. Do not include them in fields; the request succeeds but includes an invalid-fields warning.
Sample Request
Response Attributes
Each result is indata[].attributes.
Status Values
For campaign requests,
metadata contains cursor (the next page cursor, or null), limit, and count.
Sample Response — 200 OK
Result Availability
An unexpected evaluation failure returns200 OK with status set to Unknown and a result-unavailable warning. Treat this as an incomplete result and retry later; do not interpret it as confirmation that the line item can serve.