Skip to main content

Overview

The search endpoints let you retrieve line items in bulk by filtering on account, campaign, retailer, or line item IDs. Two variants are available depending on the account type you are operating from:
  • Demand search — query line items accessible from one or more demand accounts.
  • Supply search — query line items accessible from a supply account and its retailers.
Both endpoints are paginated and return the same line item shape in the response. Both endpoints require the RetailMedia_Campaign_Read scope.

Endpoints


Search Line Items — Demand

Returns line items accessible from the specified demand accounts, with optional filters on campaign and line item IDs.

Request Attributes

Sample Request

Response Attributes

Results are returned as a paginated array under data. Each item contains: The response also includes a metadata object with pagination fields: Sample Response

Errors


Search Line Items — Supply

Returns line items accessible from a supply account and its retailers, with optional filters on retailer, campaign, line item, and supply relationship.

Request Attributes

Sample Request

Response Attributes

Same shape as the demand search response. The metadata pagination object is also included. Sample Response

Errors