Skip to content

CreateMediaBuyResponse1 incorrectly declares buyer_ref (not in AdCP 3.x schema since GA) #914

@KonstantinMirin

Description

@KonstantinMirin

Problem

adcp.types.generated_poc.media_buy.create_media_buy_response.CreateMediaBuyResponse1 declares a buyer_ref: str | None = None field, but buyer_ref does not exist in the AdCP create-media-buy-response.json schema.

Verified against:

  • v3.1.0-beta.3grep buyer_ref returns empty
  • v3.1.0-rc.8grep buyer_ref returns empty

The field was present in a pre-3.0 release candidate but was removed before 3.0 GA. The SDK codegen is carrying it forward from a historical schema version.

Generated source

# generated by datamodel-codegen:
#   filename:  media_buy/create_media_buy_response.json
#   timestamp: 2026-05-22T13:15:12+00:00

class CreateMediaBuyResponse1(AdcpVersionEnvelope):
    model_config = ConfigDict(extra='allow')
    media_buy_id: str
    packages: list[package_1.Package]
    buyer_ref: str | None = None          # ← NOT IN SCHEMA
    media_buy_status: ...
    status: ...

Impact

Tests that assert buyer_ref not in model_fields fail on SDK 5.7 because the field exists on the class. The field is never populated by spec-compliant sellers, but its presence confuses schema validation and contract tests.

Expected

Remove buyer_ref from CreateMediaBuyResponse1. It should only appear on the request schema.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions