@adcp/client API Reference - v4.19.0
    Preparing search index...

    Interface CreativeVariable

    A dynamic content variable (DCO slot) on a creative. Variables represent content that can change at serve time — headlines, images, product data, etc.

    interface CreativeVariable {
        variable_id: string;
        name: string;
        variable_type:
            | "number"
            | "boolean"
            | "date"
            | "audio"
            | "url"
            | "image"
            | "video"
            | "text"
            | "color";
        default_value?: string;
        required?: boolean;
    }
    Index

    Properties

    variable_id: string

    Variable identifier on the creative platform

    name: string

    Human-readable variable name

    variable_type:
        | "number"
        | "boolean"
        | "date"
        | "audio"
        | "url"
        | "image"
        | "video"
        | "text"
        | "color"

    Data type of the variable. Each type represents a semantic content slot: text (headlines, body copy), image/video/audio (media URLs), url (clickthrough or tracking URLs), number (prices, counts), boolean (conditional flags like show_discount or is_raining), color (hex color values), date (ISO 8601 date-time for countdowns and offer expirations).

    default_value?: string

    Default value used when no dynamic value is provided at serve time. All types are string-encoded: text/image/video/audio/url as literal strings, number as decimal (e.g., "42.99"), boolean as "true"/"false", color as "#RRGGBB", date as ISO 8601 (e.g., "2026-12-25T00:00:00Z").

    required?: boolean

    Whether this variable must have a value for the creative to serve