@adcp/client API Reference - v3.11.2
    Preparing search index...

    Function getIndividualAssets

    • Get individual assets (not repeatable groups) from a Format

      Parameters

      • format: Format

        The Format object

      Returns {
          item_type: "individual";
          asset_id: string;
          asset_type: AssetContentType;
          asset_role?: string;
          required: boolean;
          requirements?: { [k: string]: unknown };
      }[]

      Array of individual assets

      • item_type: "individual"

        Discriminator indicating this is an individual asset

      • asset_id: string

        Unique identifier for this asset. Creative manifests MUST use this exact value as the key in the assets object.

      • asset_type: AssetContentType
      • Optionalasset_role?: string

        Optional descriptive label for this asset's purpose (e.g., 'hero_image', 'logo', 'third_party_tracking'). Not used for referencing assets in manifests—use asset_id instead. This field is for human-readable documentation and UI display only.

      • required: boolean

        Whether this asset is required (true) or optional (false). Required assets must be provided for a valid creative. Optional assets enhance the creative but are not mandatory.

      • Optionalrequirements?: { [k: string]: unknown }

        Technical requirements for this asset (dimensions, file size, duration, etc.). For template formats, use parameters_from_format_id: true to indicate asset parameters must match the format_id parameters (width/height/unit and/or duration_ms).