Getting Started
- A promoted product specifies the product that will be advertised on a line item.
- Identify eligible products to promote by accessing your account catalog.
- Each product can optionally be configured with a specific bid amount, allowing you to control how much you are willing to pay per click.
- Each line item is limited to a maximum of 500 promoted products.
Endpoints
| Method | Endpoint | Description |
|---|---|---|
| GET | /line-items/{lineItemId}/products | Retrieve all products associated with a specific line item. |
| POST | /line-items/{lineItemId}/products/append | Add products to a specific line item or update their bid override. |
| POST | /line-items/{lineItemId}/products/delete | Remove products from a specific line item. |
| POST | /line-items/{lineItemId}/products/pause | Pause products on a specific line item, preventing them from being advertised. |
| POST | /line-items/{lineItemId}/products/unpause | Reactivate paused products on a specific line item, allowing them to be advertised again. |
Promoted Products Attributes
| Attribute | Data Type | Description |
|---|---|---|
id* | string | Product ID, unique identifier at the Retailer catalog and obtained from the account CatalogAccepted values: up to 500-chars string Writeable? N / Nullable? N |
lineItemId* | string | Line Item ID, in which the product is to be promoted; required in the endpoints’ path to define in which line item to perform the actionAccepted values: string of int64 Writeable? N / Nullable? N |
bidOverride | decimal | Bid value for the specific product; overrides targetBid specified on the Line Item and must satisfy minBid from Catalog (input excludes platform fees)Accepted values: bidOverride ≥ 0.0 Default: 0.0 Writeable? Y / Nullable? Y |
status | enum | Status of Promoted Product; can only be updated to active or paused using the pause/un-pause endpoints below. For more details about each state, check out Campaign, Line Item & Products StatusAccepted values: active, paused, scheduled, ended, budgetHit, noFunds, draft, archived Writeable? Y / Nullable? N |
Get All Products on a Specific Line Item
This endpoint lists all products on the specified line item. Results are paginated. Optional Query Parameters| Query Param | Data Type | Description |
|---|---|---|
offsite | integer | Pagination parameter, see API Response |
limit | integer | Pagination parameter, see API Response |
fields | list | Comma-separated list of optional attributes to include in the response - can be used to optimize response time and payload length |
200:
Add Products to a Specific Line Item, or Update a Bid Override
This endpoint adds one or more products to promote on the specified line item. The resulting state of the line item is returned as a single page. If the product already exists, only its bid override will be updated. Sample RequestRemove Products from a Specific Line Item
This endpoint removes one or more products from the specified line item. The resulting state of the line item is returned as a single page. Line items can be created without any promoted products, but once any products are added, at least one product must remain. Sample Request204 (no body content)
Pause Products on a Specific Line Item
This endpoint allows reactivating one or multiple paused products on a line item: Sample Request204 (no body content)
Unpaused Products on a Specific Line Item
This endpoint allows unpausing one or multiple products on a line item: Sample Request204 (no body content)
Responses
| Response | Description |
|---|---|
🟢 200 | Call completed with success |
🟢 204 | Promoted product paused or un-paused with success (no body content returned) |
🔴 400 | Bad Request - Common validation errors:
|
🔴 403 | API user does not have authorization to make requests for the account ID. For authorization, follow the authorization request steps. |
🔴 404 | Line item ID not found |