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

    Function getFormatAssets

    • Get assets from a Format

      Returns the assets from the v3 assets field. For backward compatibility with v2 servers, this function also handles the deprecated assets_required field if present.

      Parameters

      • format: Format

        The Format object from list_creative_formats response

      Returns FormatAssetSlot[]

      Array of assets

      const formats = await agent.listCreativeFormats({});
      for (const format of formats.formats) {
      const assets = getFormatAssets(format);
      console.log(`${format.name} has ${assets.length} assets`);
      }