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

    Interface HTMLAsset

    Inline HTML content asset. For seller-hosted HTML5 banner bundles, use the zip asset type. For third-party display markup or paired redirects, use the display_tag asset so the trafficking representation remains explicit.

    interface HTMLAsset {
        asset_type: "html";
        content: string;
        version?: string;
        accessibility?: {
            alt_text?: string;
            keyboard_navigable?: boolean;
            motion_control?: boolean;
            screen_reader_tested?: boolean;
        };
        width?: number;
        height?: number;
        sizes?: [
            { width: number; height: number },
            ...{ width: number; height: number }[],
        ];
        provenance?: Provenance;
    }
    Index
    asset_type: "html"

    Discriminator identifying this as an HTML asset. See /schemas/creative/asset-types for the registry.

    content: string

    HTML content

    version?: string

    HTML version (e.g., 'HTML5')

    accessibility?: {
        alt_text?: string;
        keyboard_navigable?: boolean;
        motion_control?: boolean;
        screen_reader_tested?: boolean;
    }

    Self-declared accessibility properties for this opaque creative

    Type Declaration

    • Optionalalt_text?: string

      Text alternative describing the creative content

    • Optionalkeyboard_navigable?: boolean

      Whether the creative can be fully operated via keyboard

    • Optionalmotion_control?: boolean

      Whether the creative respects prefers-reduced-motion or provides pause/stop controls

    • Optionalscreen_reader_tested?: boolean

      Whether the creative has been tested with screen readers

    width?: number

    Rendered width in logical pixels of the entry canvas, independent of target placement and embedded image density. For expandable units, this is the initial width. When set, height must also be set. Mutually exclusive with sizes.

    height?: number

    Rendered height in logical pixels of the entry canvas. For expandable units, this is the initial height. When set, width must also be set. Mutually exclusive with sizes.

    sizes?: [
        { width: number; height: number },
        ...{ width: number; height: number }[],
    ]

    Selectable entry-canvas sizes in logical pixels at which the same representation can render, rather than placement constraints or expanded states. Mutually exclusive with width/height. Omit all size fields for an unsized or responsive asset; absence does not establish compatibility with a size-constrained option.

    1

    provenance?: Provenance