Skip to main content

Overview

Targeting defines where and how a line item can serve. Each target has a target type and type-specific details. The Get Targets endpoint retrieves the ManualKeyword, PageType, and Category targets configured for a line item. Clients should inspect the errors array even when the endpoint returns 200 OK. The endpoint supports partial success by target type: if a target type is unavailable, other available target types can still be included in the response.

Endpoints


Get Targets

Retrieves the ManualKeyword, PageType, and Category targets configured for the specified line item. Use offset and limit to page through the targets retrieved successfully. Prerequisites:
  • OAuth 2.0 bearer token with the RetailMedia_Campaign_Read scope
  • Access to the requested line item

Request Attributes

Response Attributes

Target Attributes

Each target contains exactly one target details object: Sample Request
Sample Response200 OK

Partial Success

The endpoint supports partial success by target type. If one or more target types are available, it returns 200 OK with those targets in data and describes any unavailable target types in errors. If retrieval fails for every supported target type, it returns a non-200 response with no target data. The metadata.count value is the total number of targets retrieved successfully before pagination. If offset is greater than or equal to metadata.count, data is empty. The errors and warnings arrays apply to the full response and are not affected by pagination. The following example shows a successful response when ManualKeyword targets are unavailable. The response still includes the available PageType and Category targets. Clients should process those targets and inspect errors before treating the response as complete. ManualKeyword targets unavailable200 OK

Responses