@adcp/sdk API Reference - v17.0.0-rc.0
    Preparing search index...

    Type Alias LegacyFormatConverter

    LegacyFormatConverter: (
        context: LegacyFormatConversionContext,
    ) => V2ProductFormatDeclaration | null | undefined

    Escape hatch for legacy formats owned by a custom creative agent. The converter returns the canonical product declaration that the legacy ref represents. For bespoke shapes, return format_kind: 'custom' with both format_shape and an immutable format_schema reference.

    The SDK adds the source formatId as v1_format_ref; converters must not set canonical_formats_only: true because a legacy source is, by definition, round-trippable to that ref.

    For a ref at any agent URL other than the AAO reference creative agent, the converter runs before the SDK guesses the id's meaning from its name, so its declaration wins over the guess. Return undefined to accept the guess. For a ref at the AAO agent, it runs only after the AAO's own mappings fail.

    Type Declaration