> ## Documentation Index
> Fetch the complete documentation index at: https://docs.adcontextprotocol.org/llms.txt
> Use this file to discover all available pages before exploring further.

# buy_products

> Buy published product offers directly without proposals or inline creatives.

`buy_products` is the buyer-composed purchase path. It creates a MediaBuy from canonical product selections returned by [`list_products`](https://docs.adcontextprotocol.org/dist/docs/3.3.2/media-buy/task-reference/list_products), accepting the published commercial terms as-is.

Creative objects and assignments are deliberately absent. Use the creative lifecycle after the MediaBuy has been created. If the buyer needs different commercial terms, request or refine a proposal instead.

Per-purchase flight dates, `measurement_terms`, and `performance_standards` may be omitted to inherit the published offer. The accepted snapshot resolves and preserves those terms. If this purchase ends a tracked planning cycle, `opportunity` closes it with `accepted_with_seller`.

**Request schema:** [`/schemas/3.3.2/media-buy/buy-products-request.json`](https://adcontextprotocol.org/schemas/3.3.2/media-buy/buy-products-request.json)

```json theme={null}
{
  "idempotency_key": "550e8400-e29b-41d4-a716-446655441010",
  "account": { "account_id": "account_123" },
  "brand": { "domain": "acmeoutdoor.example" },
  "name": "Acme summer display launch",
  "feed_version": "products-2027-06-01T12:00:00Z",
  "pricing_version": "pricing-42",
  "daily_budget_cap": 5000,
  "budget_cap_timezone": "America/New_York",
  "frequency_cap": {
    "max_impressions": 5,
    "per": "individuals",
    "window": { "interval": 7, "unit": "days" }
  },
  "purchases": [
    {
      "product_id": "product_display_standard",
      "pricing_option_id": "cpm_usd",
      "budget": 50000,
      "daily_budget_cap": 3000
    }
  ],
  "start_time": "asap",
  "end_time": "2027-07-01T00:00:00Z"
}
```

The root `frequency_cap` uses one counter across all purchases. A
`targeting_overlay.frequency_cap` inside a purchase instead owns an independent
package counter; when both exist, both must permit delivery. Every selected
product must advertise aggregate participation through
`media_buy_support.frequency_cap`. Sellers reject an unadvertised aggregate cap
or an incompatible product mix atomically with [`UNSUPPORTED_FEATURE`](https://docs.adcontextprotocol.org/dist/docs/3.3.2/building/verification/compliance-catalog#error-code-unsupported-feature)
before any mutation, and never clamp it. Buyers send the root field only when the seller advertises
`aggregate_frequency_capping`; root caps are max-impression-only in 3.2.

The media-buy `daily_budget_cap` is a hard aggregate ceiling and does not allocate its value among purchases. A purchase-level budget cap is an optional subordinate ceiling, not a reservation. Every budget cap shares the accepted media-buy `budget_cap_timezone`; sellers reject undeclared budget-cap scopes with [`UNSUPPORTED_FEATURE`](https://docs.adcontextprotocol.org/dist/docs/3.3.2/building/verification/compliance-catalog#error-code-unsupported-feature).

Success returns the MediaBuy identity and an `accepted_proposal` snapshot. Its typed `commercial_terms` preserve the exact feed and pricing versions, product and format selections, catalogs, budgets, targeting, flight, billing, and reporting commitments; `terms_digest` binds that envelope for governance and audit. The separate `purchase_bindings[]` maps each zero-based purchase position to its seller-assigned `package_id`, which SDKs use for later creative assignment without placing execution IDs inside the immutable digest. The seller creates this snapshot even though the buyer did not negotiate first, giving every MediaBuy the same commercial history for later [`refine_proposals`](https://docs.adcontextprotocol.org/dist/docs/3.3.2/media-buy/task-reference/refine_proposals).

Each purchase becomes part of those `commercial_terms`, and `terms_digest` covers every member of them at every depth, including `ext`. Accepting the purchase binds the seller to every member. A seller that cannot interpret every member of a purchase MUST reject the request with [`UNRECOGNIZED_TERMS`](https://docs.adcontextprotocol.org/dist/docs/3.3.2/building/verification/compliance-catalog#error-code-unrecognized-terms), and SHOULD set `error.field` to the member's path. It MUST NOT drop the member or record it without interpreting it. Several schemas a purchase reaches are open, such as `format_option_refs[]` entries and `targeting_overlay`, so such a request can pass schema validation. A member whose schema defines it as opaque, such as `context`, is interpreted by that definition. The seller computes `terms_digest` over the exact `commercial_terms` JSON value it returns. See [Verify terms independently](https://docs.adcontextprotocol.org/dist/docs/3.3.2/media-buy/product-discovery/proposal-negotiation.md#3-verify-terms-independently).

An optional buyer-supplied `name` is persisted and echoed on the completed
commitment and subsequent [`get_media_buys`](https://docs.adcontextprotocol.org/dist/docs/3.3.2/media-buy/task-reference/get_media_buys)
reads. It is operational display metadata outside `accepted_proposal` and is
not covered by `terms_digest`.

A buy that renews, migrates, or replaces an earlier buy of the same seller and account MAY carry `predecessor_media_buy_id` with `lineage_reason` (`renewal`, `terms_change`, `migration`, `sunset`, or `replacement`). Lineage is experimental (`media_buy.lineage` in `experimental_features`). The link is forward-only and is set once here; the seller does not modify the predecessor. A predecessor that is not an accessible buy of the request's account is rejected with [`MEDIA_BUY_NOT_FOUND`](https://docs.adcontextprotocol.org/dist/docs/3.3.2/building/verification/compliance-catalog#error-code-media-buy-not-found), and either field without the other is rejected with [`INVALID_REQUEST`](https://docs.adcontextprotocol.org/dist/docs/3.3.2/building/verification/compliance-catalog#error-code-invalid-request). The fields sit outside `accepted_proposal` and `terms_digest`. See [Media Buy Lineage](https://docs.adcontextprotocol.org/dist/docs/3.3.2/media-buy/specification.md#media-buy-lineage).

To receive scheduled reports, a `reporting_webhook` registered on this task needs a buyer-supplied `operation_id` (see [Reporting webhooks](https://docs.adcontextprotocol.org/dist/docs/3.3.2/building/by-layer/L3/webhooks.md#reporting-webhooks)); sellers MUST NOT send `media_buy_delivery` reports to a registration that omits it.

Each purchase uses request-only `ProductPurchaseInput`. Its
`targeting_overlay` has three states per dimension: omission inherits the
selected product's configured/default value, a non-null value replaces it, and
`null` explicitly suppresses it. A clear cannot remove inherent product scope.
The accepted proposal uses strict `ProductPurchase`; it records the resolved
effective targeting with cleared dimensions omitted and never carries `null`.

A completed purchase MAY include `warnings[]` for non-blocking observations at commitment, such as a material inventory shortfall forecast. Each warning identifies its package through the returned `media_buy_id` and `purchase_bindings[].package_id`; a continuing condition is also readable as an indicator through [`get_media_buys`](https://docs.adcontextprotocol.org/dist/docs/3.3.2/media-buy/task-reference/get_media_buys). The seller may instead return `input-required` before commitment. Warnings never appear on failed or submitted arms.

A submitted arm MAY carry `expected_confirmation_at` (added in 3.3) when confirmation depends on a scheduled event such as a booking round or manual review window; buyers SHOULD schedule a status check for that time instead of polling tightly. It is an estimate, not a commitment. See [Expected confirmation time](https://docs.adcontextprotocol.org/dist/docs/3.3.2/media-buy/task-reference/create_media_buy.md#expected-confirmation-time).

The accepted snapshot records the published terms the buyer purchased. It does not imply that every direct product is non-guaranteed: discovery mode, buyer composition, and delivery guarantee are independent dimensions.

## Version check

`feed_version` and `pricing_version` are the versions [`list_products`](https://docs.adcontextprotocol.org/dist/docs/3.3.2/media-buy/task-reference/list_products) returned with the offers being bought. The seller refuses the buy when they no longer describe the current offer or rate of a purchased product, so it never accepts a changed offer or price silently.

`list_products` scopes its versions to the selection of the request that returned them: its filters, `criteria.product_ids`, `offer_filters` and `include_collections`. `buy_products` names the purchased products but not that selection. What the check guarantees is therefore about the purchased offers and rates, not the selection, and how the seller checks is up to it:

* It can keep the versions it issued, or carry what it needs in the opaque token.
* It can scope its versions more widely than any one selection, up to the whole catalogue the account can see (the public catalogue, for `cache_scope: "public"`), and recompute them at buy time. Such a version still changes whenever an offer or price in the selection changes, so it is a valid `list_products` version. The seller still keeps tokens for the two `include_collections` settings distinct.

A check that covers more than the purchase can refuse a buy because an offer or price the buyer didn't buy has changed, elsewhere in the selection or, with a wider version, elsewhere in the catalogue. Buyers handle every stale-version refusal the same way: read `list_products` again, check the products being bought, and retry with the new `feed_version` and `pricing_version` and a fresh `idempotency_key`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.