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

    Interface PreviewCreativeRequest

    Request to generate previews of creative manifests. Uses request_type to select single, batch, or variant mode.

    interface PreviewCreativeRequest {
        adcp_major_version?: number;
        request_type: "single" | "batch" | "variant";
        creative_manifest?: CreativeManifest;
        format_id?: FormatReferenceStructuredObject;
        inputs?: {
            name: string;
            macros?: { [k: string]: string | undefined };
            context_description?: string;
        }[];
        template_id?: string;
        quality?: CreativeQuality;
        output_format?: PreviewOutputFormat;
        item_limit?: number;
        requests?: {
            format_id?: FormatReferenceStructuredObject;
            creative_manifest: CreativeManifest;
            inputs?: {
                name: string;
                macros?: { [k: string]: string
                | undefined };
                context_description?: string;
            }[];
            template_id?: string;
            quality?: CreativeQuality;
            output_format?: PreviewOutputFormat;
            item_limit?: number;
        }[];
        variant_id?: string;
        creative_id?: string;
        context?: ContextObject;
        ext?: ExtensionObject;
    }
    Index

    Properties

    adcp_major_version?: number

    The AdCP major version the buyer's payloads conform to. Sellers validate against their supported major_versions and return VERSION_UNSUPPORTED if unsupported. When omitted, the seller assumes its highest supported version.

    1

    99

    request_type: "single" | "batch" | "variant"

    Preview mode. 'single' previews one creative manifest. 'batch' previews multiple creatives in one call. 'variant' replays a post-flight variant by ID.

    creative_manifest?: CreativeManifest
    format_id?: FormatReferenceStructuredObject
    inputs?: {
        name: string;
        macros?: { [k: string]: string | undefined };
        context_description?: string;
    }[]

    Array of input sets for generating multiple preview variants. Each input set defines macros and context values for one preview rendering. Used in single mode.

    Type Declaration

    • name: string

      Human-readable name for this input set (e.g., 'Sunny morning on mobile', 'Evening podcast ad', 'Desktop dark mode')

    • Optionalmacros?: { [k: string]: string | undefined }

      Macro values to use for this preview. Supports all universal macros from the format's supported_macros list.

    • Optionalcontext_description?: string

      Natural language description of the context for AI-generated content (e.g., 'User just searched for running shoes', 'Podcast discussing weather patterns')

    template_id?: string

    Specific template ID for custom format rendering. Used in single mode.

    quality?: CreativeQuality
    output_format?: PreviewOutputFormat
    item_limit?: number

    Maximum number of catalog items to render per preview variant. Used in single mode. Creative agents SHOULD default to a reasonable sample when omitted and the catalog is large.

    1

    requests?: {
        format_id?: FormatReferenceStructuredObject;
        creative_manifest: CreativeManifest;
        inputs?: {
            name: string;
            macros?: { [k: string]: string | undefined };
            context_description?: string;
        }[];
        template_id?: string;
        quality?: CreativeQuality;
        output_format?: PreviewOutputFormat;
        item_limit?: number;
    }[]

    Array of preview requests (1-50 items). Required when request_type is 'batch'. Each item follows the single request structure.

    Type Declaration

    • Optionalformat_id?: FormatReferenceStructuredObject
    • creative_manifest: CreativeManifest
    • Optionalinputs?: {
          name: string;
          macros?: { [k: string]: string | undefined };
          context_description?: string;
      }[]

      Array of input sets for generating multiple preview variants

    • Optionaltemplate_id?: string

      Specific template ID for custom format rendering

    • Optionalquality?: CreativeQuality
    • Optionaloutput_format?: PreviewOutputFormat
    • Optionalitem_limit?: number

      Maximum number of catalog items to render in this preview.

      1

    variant_id?: string

    Platform-assigned variant identifier from get_creative_delivery response. Required when request_type is 'variant'.

    creative_id?: string

    Creative identifier for context. Used in variant mode.

    context?: ContextObject
    ext?: ExtensionObject