Skip to content

docs(media-buy): document the account field in the create_media_buy response - #5587

Merged
bokelley merged 1 commit into
adcontextprotocol:mainfrom
BaiyuScope3:docs-account-in-create-media-buy-response
Jun 17, 2026
Merged

bokelley merged 1 commit into
adcontextprotocol:mainfrom
BaiyuScope3:docs-account-in-create-media-buy-response

Conversation

@BaiyuScope3

Copy link
Copy Markdown
Collaborator

Why

The create_media_buy success response has carried an account field — a full Account object, which requires account_id — since 3.0.1 (it's present through 3.1.0-rc.15). But the task-reference page documents account only as a request parameter. The Response field table and the example response payloads omit it entirely.

As a result, readers can't tell from the docs that the seller echoes back the resolved account. This matters most for implicit resolution: when a buyer sends { brand, operator }, the response's account confirms what the seller resolved — including the canonical account_id a buyer can persist and reuse on later account-scoped calls. (The natural key remains valid per account-ref.json; the echoed account_id is a convenience, not a replacement.)

What changed

Docs-only, in docs/media-buy/task-reference/create_media_buy.mdx:

  • Added an account row to the Success Response field table (marked Optional, matching the schema — it's not in required).
  • Added the account object to the immediate-success example payload.
  • Added it to the approved-webhook completion (result) example payload.

No schema or normative change — the field already exists; this just documents it. Examples reuse existing fictional entities (acmecorp.com, acc_acme_direct from account.json) and are schema-valid.

🤖 Generated with Claude Code

…esponse

The create_media_buy success response has carried an `account` field (full
Account, including the canonical `account_id`) since 3.0.1, but the
task-reference page documented `account` only as a request parameter. Add it to
the Success Response field table and to the success and approved-webhook example
payloads so readers can see the seller echoes back the resolved account —
including, for implicit brand+operator resolution, the account_id a buyer can
reference on later account-scoped calls.

Co-Authored-By: Claude Opus 4.8 <[email protected]>

@aao-release-bot aao-release-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Documents an optional field that's been on the wire since 3.0.1 but was missing from the response table and example payloads. Right kind of fix — the schema is the contract, and the docs were lying by omission about what the seller echoes back.

Things I checked

  • account is real and load-bearing in the success response: create-media-buy-response.json:26-29 $refs account.json. Present since 3.0.1 as the PR claims.
  • Success branch required is media_buy_id, confirmed_at, revision, packages (:149-154). account is not in it — so "Optional" in the field table matches the schema.
  • Both example payloads are schema-valid against account.json: required account_id/name/status all present, status: "active" is in account-status.json:8, brand.domain and operator satisfy their patterns.
  • acmecorp.com is consistent with the rest of the file — it's used at every other request example, so the echoed response matches.
  • Changeset present with empty frontmatter (no package bump) — correct for a docs-only change with no wire impact.
  • No static/schemas/source/** touched. No normative change. The wire shape is unchanged; this is pure documentation of existing behavior.

Minor nits (non-blocking)

  1. Fixture drift on acc_acme_direct. account.json:226-233 pairs acc_acme_direct with brand domain acme-corp.com (hyphenated); this example pairs the same account_id with acmecorp.com. Both are schema-valid and acmecorp.com is the right choice for this file (matches all its request examples), but the two canonical fixtures now disagree on the brand for one account_id. Worth a follow-up if anyone ever cross-references them.

LGTM.

@bokelley
bokelley merged commit e876cc8 into adcontextprotocol:main Jun 17, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants