@adcp/sdk API Reference - v7.9.0
    Preparing search index...

    Interface FormatReferenceStructuredObject

    A JSON object — never a plain string — that identifies a creative format by its declaring agent and local slug. Required properties: agent_url (URI of the agent that owns the format) and id (slug matching [a-zA-Z0-9_-]+). Example: {"agent_url": "https://creative.adcontextprotocol.org", "id": "display_300x250"}. Can reference: (1) a concrete format with fixed dimensions (id only), (2) a template format without parameters (id only), or (3) a template format with parameters (id + dimensions/duration). Template formats accept parameters in format_id while concrete formats have fixed dimensions in their definition. Parameterized format IDs create unique, specific format variants. Using a plain string here is a schema violation.

    interface FormatReferenceStructuredObject {
        agent_url: string;
        id: string;
        width?: number;
        height?: number;
        duration_ms?: number;
    }
    Index

    Properties

    agent_url: string

    URL of the agent that defines this format (e.g., 'https://creative.adcontextprotocol.org' for standard formats, or 'https://publisher.com/.well-known/adcp/sales' for custom formats). Callers comparing two format-id values MUST canonicalize agent_url per the AdCP URL canonicalization rules before treating two formats as the same. See docs/reference/url-canonicalization.

    id: string

    Format identifier within the agent's namespace (e.g., 'display_static', 'video_hosted', 'audio_standard'). When used alone, references a template format. When combined with dimension/duration fields, creates a parameterized format ID for a specific variant.

    ^[a-zA-Z0-9_-]+$

    width?: number

    Width in pixels for visual formats. When specified, height must also be specified. Both fields together create a parameterized format ID for dimension-specific variants.

    1

    height?: number

    Height in pixels for visual formats. When specified, width must also be specified. Both fields together create a parameterized format ID for dimension-specific variants.

    1

    duration_ms?: number

    Duration in milliseconds for time-based formats (video, audio). When specified, creates a parameterized format ID. Omit to reference a template format without parameters.

    1