Overview
A line item is a unit within a campaign that controls how ads are delivered. It identifies the retailer where ads can run, defines the active flight dates, and holds delivery settings for its campaign type. A campaign can contain multiple line items. The line item core endpoints are shared across campaign types. They expose common fields through one contract instead of separate Sponsored Products and Onsite Display routes. The referencedcampaignId determines the line-item type. Type-specific fields are carried in a matching details object alongside the common attributes. Include only the details object supported by the campaign type.
The long-term goal is to support line-item core operations across campaign types. Initial documented support targets Onsite Display Auction campaigns and uses
onsiteDisplayDetails. Additional details objects will be documented as support is added.Endpoints
Create a Line Item Core
Creates a line-item core entity under an existing campaign.Request Attributes
The resource
type is line-item. Do not send response-only fields such as lineItemId, type, financialStatus, effectiveFlightDates, or conquestingSettings inside attributes.
Sample Request
Errors
Update a Line Item Core
Updates an existing line item. This is a partial update: only the fields included in the request body are changed. Omitted fields keep their current values.campaignId and retailerId cannot be changed after creation.
Path Parameters
Request Attributes
The resource
type is line-item. Do not send response-only fields such as lineItemId, type, financialStatus, effectiveFlightDates, or conquestingSettings inside attributes.
Sample Request