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.
assets
assets_required
The Format object from list_creative_formats response
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`);} Copy
const formats = await agent.listCreativeFormats({});for (const format of formats.formats) { const assets = getFormatAssets(format); console.log(`${format.name} has ${assets.length} assets`);}
Get assets from a Format
Returns the assets from the v3
assetsfield. For backward compatibility with v2 servers, this function also handles the deprecatedassets_requiredfield if present.