Repository navigation
docs(media-buy): document the account field in the create_media_buy response - #5587
Merged
bokelley merged 1 commit intoJun 17, 2026
Conversation
…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]>
Contributor
There was a problem hiding this comment.
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
accountis real and load-bearing in the success response:create-media-buy-response.json:26-29$refsaccount.json. Present since 3.0.1 as the PR claims.- Success branch
requiredismedia_buy_id, confirmed_at, revision, packages(:149-154).accountis not in it — so "Optional" in the field table matches the schema. - Both example payloads are schema-valid against
account.json: requiredaccount_id/name/statusall present,status: "active"is inaccount-status.json:8,brand.domainandoperatorsatisfy their patterns. acmecorp.comis 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)
- Fixture drift on
acc_acme_direct.account.json:226-233pairsacc_acme_directwith brand domainacme-corp.com(hyphenated); this example pairs the same account_id withacmecorp.com. Both are schema-valid andacmecorp.comis 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The
create_media_buysuccess response has carried anaccountfield — a fullAccountobject, which requiresaccount_id— since 3.0.1 (it's present through 3.1.0-rc.15). But the task-reference page documentsaccountonly 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'saccountconfirms what the seller resolved — including the canonicalaccount_ida buyer can persist and reuse on later account-scoped calls. (The natural key remains valid peraccount-ref.json; the echoedaccount_idis a convenience, not a replacement.)What changed
Docs-only, in
docs/media-buy/task-reference/create_media_buy.mdx:accountrow to the Success Response field table (marked Optional, matching the schema — it's not inrequired).accountobject to the immediate-success example payload.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_directfromaccount.json) and are schema-valid.🤖 Generated with Claude Code