For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to the page URL.
Primary navigation
Overview Agent Access Ads ChatGPT + Codex user docs Use cases

API Reference

Patch Product Feed Products

PATCH
/feeds/{feed_id}/products

Update existing product variants in an authenticated ad account feed.

Patch Product Feed Products

curl https://api.ads.openai.com/v1/feeds/$FEED_ID/products \
    -X PATCH \
    -H 'Content-Type: application/json' \
    -H "Authorization: Bearer $OPENAI_ADS_API_KEY" \
    -d '{
          "products": [
            {
              "id": "x",
              "variants": [
                {
                  "id": "x"
                }
              ]
            }
          ]
        }'
200 — Example
{
  "id": "id",
  "accepted": true
}
Header Parameters
"Idempotency-Key": optional string
pattern.*\S.*
minLength1
maxLength255
Path Parameters
feed_id: string
Body Parameters
JSON
products: array of object { id, variants }
minItems1
id: string
minLength1
variants: array of object { id, availability, description, 6 more }
minItems1
id: string
minLength1
availability: optional object { available, status }
available: optional boolean
status: optional string
description: optional string
pattern^\s*\S
image_url: optional string
price: optional object { amount, currency }
amount: integer
minimum0
currency: string
minLength3
maxLength3
sale_price_end_date: optional string

Inclusive end of the sale in RFC 3339 format with a time zone and up to microsecond precision. The end must follow the start. Omit both dates to keep the existing window.

sale_price_start_date: optional string

Inclusive start of the sale in RFC 3339 format with a time zone and up to microsecond precision. Supply both sale dates for an existing discount.

title: optional string
url: optional string
Returns
id: string
accepted: boolean
Returns Examples
200 — Example
{
  "id": "id",
  "accepted": true
}