Skip to content
AdCrunch
Esc
↑↓navigate↵open⌘Jpreview
On this page

library_creative_list

List the Creatives of your Library, each with its count of Variations and the progress of its slots.

Ask which ad ideas your Library holds. The agent lists the Creatives of your organization, newest first. Each Creative comes with the number of its Variations.

“Which creatives do we have in the library?”

The agent calls this tool, and calls it again for each next page until the list ends. You see each Creative with its name and its number of Variations. Each Creative also shows how many Placements it requires and how many of those slots a Variation fills, for example 2 of 5. A Creative of your Library is not the creative of an ad account: list_creatives lists those.

This tool is part of the job Bring your own creative.

Reference

List the Creatives of the active organization’s Library, newest first, each with its count of Variations. A Variation is one rendition of the Creative, and it holds one Asset. Each Creative also shows requiredPlacementCount, the number of its slots, and filledPlacementCount, the number of slots that a Variation fills. The difference is the number of empty slots. An empty slot is information, not an error: tell the user which slots are empty, and do not refuse a task because of it. A Creative of your Library is an ad idea of your organization, with its Variations. It is not the creative of an ad account, which list_creatives lists. To plan with a Creative, campaign_plan_creative_add puts it into the pool of a Campaign Plan, and line_item_creative_add gives it to a Line Item. Use library_creative_get to read one Creative with its Variations and its slots. The answer holds at most limit rows (default 100, maximum 500). When it carries nextCursor, more rows exist: call this tool again with the same arguments and cursor set to that value. When it carries no nextCursor, you have every row.

Input

Argument Type Required Description
cursor string, at least 1 character no The nextCursor of the previous page. Omit it to get the first page. Send it with no change, and with the same filters as the request that answered it: a cursor from a different query gets a 400 invalid_cursor. Do not build or change a cursor.
limit integer, 1 to 500 no The greatest number of rows on the page, from 1 to 500. The default is 100. A greater value gets a 400, with error of invalid_request. Default: 100.

Output

A successful call returns this object in structuredContent.

Field Type Always present Description
creatives array of object yes The Creatives of this page, newest first, each with its count of Variations, its count of required Placements and its count of filled ones, and no Variation. A deleted Creative is not in the list.
creatives[].createdAt number yes Milliseconds since the Unix epoch, UTC.
creatives[].createdBy string yes The user who created the Creative.
creatives[].deletedAt number or null yes Always null here. A deleted Creative is not answered.
creatives[].description string or null yes A free text about the Creative. null when nobody wrote one. There is no fallback text.
creatives[].id string yes The id of the Creative, crv_….
creatives[].name string or null yes The name a person gave the Creative. null when nobody named it. There is no fallback name.
creatives[].organizationId string yes The organization that owns the Creative.
creatives[].updatedAt number or null yes When the Creative last changed, in milliseconds since the Unix epoch, UTC. null until its first update.
creatives[].variationCount number yes How many live Variations the Creative holds. The read of one Creative holds the first page of them, and the list of the Variations of the Creative gives each page.
creatives[].filledPlacementCount number yes How many of the required Placements a live Variation of the Creative names. A Variation that breaks a rule of its Placement still fills the slot. Never more than requiredPlacementCount.
creatives[].firstVariations array of object yes The first three live Variations of the Creative, in the order of the Variation list: newest first. Fewer when the Creative holds fewer, and empty when it holds none. It is not a page, and it has no cursor. variationCount tells how many exist. To read them all, read the Creative, or the list of its Variations.
creatives[].firstVariations[].asset object yes
creatives[].firstVariations[].asset.contentHash string yes AdCrunch’s own hash of the stored bytes. A hint for de-duplication, never an identity, and never a provider’s hash. Empty when the store reports none.
creatives[].firstVariations[].asset.createdAt number yes Milliseconds since the Unix epoch, UTC.
creatives[].firstVariations[].asset.createdBy string yes The user who reserved the upload.
creatives[].firstVariations[].asset.deletedAt number or null yes Always null here. A deleted Asset is not answered.
creatives[].firstVariations[].asset.durationMs number or null yes How long the video runs, in milliseconds, read from the header of the file at finalize. null for an image. For a video, null when the file does not state it, or for an Asset uploaded before AdCrunch read it.
creatives[].firstVariations[].asset.failureCode string or null yes Why AdCrunch refused the file, as a code. Branch on this field, never on failureReason. unsupported_type: the bytes are not an accepted image or video. too_large: the file is over the size limit. unreadable: AdCrunch could not read the header of the file. source_unreachable: an import could not fetch the file from its source URL. source_length_unknown: the source of an import sent no Content-Length. null unless status is failed.
creatives[].firstVariations[].asset.failureReason string or null yes Why AdCrunch refused the file, as a sentence. null unless status is failed.
creatives[].firstVariations[].asset.filename string yes The name the file was uploaded under. Never a lookup key.
creatives[].firstVariations[].asset.height number or null yes The height in pixels as the file is displayed, with its rotation applied, read from the header of the file at finalize. null when the file does not state it, or for an Asset uploaded before AdCrunch read it.
creatives[].firstVariations[].asset.id string yes The id of the Asset, ast_….
creatives[].firstVariations[].asset.key string yes Where the bytes are held. Read-only, and never sent by you.
creatives[].firstVariations[].asset.kind one of image, video yes Follows from mimeType. It selects how a provider takes the file.
creatives[].firstVariations[].asset.mimeType string yes The type that finalize identified from the stored bytes. The Content-Type of the upload does not set it.
creatives[].firstVariations[].asset.name string or null yes The name a person gave this Asset, and what a provider receives at a future registration. null until somebody renames it, and the filename is the fallback.
creatives[].firstVariations[].asset.organizationId string yes The organization that owns the Asset.
creatives[].firstVariations[].asset.sizeBytes number yes Read from the stored object at finalize.
creatives[].firstVariations[].asset.status one of pending, ready, failed yes ready once AdCrunch has inspected the bytes. Only a ready Asset can be registered. pending: the bytes have not been inspected yet. failed: AdCrunch refused the file and deleted it. failureCode and failureReason say why. A read answers an Asset in every status. A list answers ready Assets only.
creatives[].firstVariations[].asset.thumbnailUrl string or null yes A small picture of the Asset, at most 400 pixels on its longest side: the image made smaller, or the first frame of a video. Cloudflare makes it from the stored bytes when a client reads the URL. The URL does not expire. It holds key, and key is the public address of the original file. null for a video over 100 MB, for an image over 12,000 pixels on one side or over 100 megapixels, and for an Asset that is not ready. Show the kind of the Asset when it is null, or when the picture does not load.
creatives[].firstVariations[].asset.updatedAt number or null yes When the Asset last changed, in milliseconds since the Unix epoch, UTC: at finalize, or at the last rename.
creatives[].firstVariations[].asset.width number or null yes The width in pixels as the file is displayed, with its rotation applied, read from the header of the file at finalize. null when the file does not state it, or for an Asset uploaded before AdCrunch read it.
creatives[].firstVariations[].assetId string yes The id of the Asset that the Variation holds, ast_…. asset is that Asset. Its width, height and durationMs give the dimensions of the Variation.
creatives[].firstVariations[].brokenRules array of object yes The rules of the Placement that the Asset breaks, as the Placement stores them. They are advice: AdCrunch wrote the Variation anyway. Empty when placement is null. AdCrunch computes this list at each read, so a change of the rules of the Placement changes the next read.
creatives[].firstVariations[].brokenRules[].type width or height or size or ratio or mime or duration yes
creatives[].firstVariations[].brokenRules[].operator object yes Only when type is width.
creatives[].firstVariations[].brokenRules[].operator.condition eq or ne or lt or lte or gt or gte or in yes
creatives[].firstVariations[].brokenRules[].operator.value integer, at least 0 yes Only when condition is eq.
creatives[].firstVariations[].brokenRules[].operator.value integer, at least 0 yes Only when condition is ne.
creatives[].firstVariations[].brokenRules[].operator.value integer, at least 0 yes Only when condition is lt.
creatives[].firstVariations[].brokenRules[].operator.value integer, at least 0 yes Only when condition is lte.
creatives[].firstVariations[].brokenRules[].operator.value integer, at least 0 yes Only when condition is gt.
creatives[].firstVariations[].brokenRules[].operator.value integer, at least 0 yes Only when condition is gte.
creatives[].firstVariations[].brokenRules[].operator.value array of (integer, at least 0), 1 to 50 items yes Only when condition is in.
creatives[].firstVariations[].brokenRules[].operator object yes Only when type is height.
creatives[].firstVariations[].brokenRules[].operator.condition eq or ne or lt or lte or gt or gte or in yes
creatives[].firstVariations[].brokenRules[].operator.value integer, at least 0 yes Only when condition is eq.
creatives[].firstVariations[].brokenRules[].operator.value integer, at least 0 yes Only when condition is ne.
creatives[].firstVariations[].brokenRules[].operator.value integer, at least 0 yes Only when condition is lt.
creatives[].firstVariations[].brokenRules[].operator.value integer, at least 0 yes Only when condition is lte.
creatives[].firstVariations[].brokenRules[].operator.value integer, at least 0 yes Only when condition is gt.
creatives[].firstVariations[].brokenRules[].operator.value integer, at least 0 yes Only when condition is gte.
creatives[].firstVariations[].brokenRules[].operator.value array of (integer, at least 0), 1 to 50 items yes Only when condition is in.
creatives[].firstVariations[].brokenRules[].operator object yes Only when type is size.
creatives[].firstVariations[].brokenRules[].operator.condition eq or ne or lt or lte or gt or gte or in yes
creatives[].firstVariations[].brokenRules[].operator.value integer, at least 0 yes Only when condition is eq.
creatives[].firstVariations[].brokenRules[].operator.value integer, at least 0 yes Only when condition is ne.
creatives[].firstVariations[].brokenRules[].operator.value integer, at least 0 yes Only when condition is lt.
creatives[].firstVariations[].brokenRules[].operator.value integer, at least 0 yes Only when condition is lte.
creatives[].firstVariations[].brokenRules[].operator.value integer, at least 0 yes Only when condition is gt.
creatives[].firstVariations[].brokenRules[].operator.value integer, at least 0 yes Only when condition is gte.
creatives[].firstVariations[].brokenRules[].operator.value array of (integer, at least 0), 1 to 50 items yes Only when condition is in.
creatives[].firstVariations[].brokenRules[].operator object yes Only when type is ratio.
creatives[].firstVariations[].brokenRules[].operator.condition eq or ne or lt or lte or gt or gte or in yes
creatives[].firstVariations[].brokenRules[].operator.value array of any, 2 items yes Only when condition is eq.
creatives[].firstVariations[].brokenRules[].operator.value array of any, 2 items yes Only when condition is ne.
creatives[].firstVariations[].brokenRules[].operator.value array of any, 2 items yes Only when condition is lt.
creatives[].firstVariations[].brokenRules[].operator.value array of any, 2 items yes Only when condition is lte.
creatives[].firstVariations[].brokenRules[].operator.value array of any, 2 items yes Only when condition is gt.
creatives[].firstVariations[].brokenRules[].operator.value array of any, 2 items yes Only when condition is gte.
creatives[].firstVariations[].brokenRules[].operator.value array of (array of any, 2 items), 1 to 50 items yes Only when condition is in.
creatives[].firstVariations[].brokenRules[].operator object yes Only when type is mime.
creatives[].firstVariations[].brokenRules[].operator.condition eq or ne or in yes
creatives[].firstVariations[].brokenRules[].operator.value string, 1 to 255 characters yes Only when condition is eq.
creatives[].firstVariations[].brokenRules[].operator.value string, 1 to 255 characters yes Only when condition is ne.
creatives[].firstVariations[].brokenRules[].operator.value array of (string, 1 to 255 characters), 1 to 50 items yes Only when condition is in.
creatives[].firstVariations[].brokenRules[].operator object yes Only when type is duration.
creatives[].firstVariations[].brokenRules[].operator.condition eq or ne or lt or lte or gt or gte or in yes
creatives[].firstVariations[].brokenRules[].operator.value integer, at least 0 yes Only when condition is eq.
creatives[].firstVariations[].brokenRules[].operator.value integer, at least 0 yes Only when condition is ne.
creatives[].firstVariations[].brokenRules[].operator.value integer, at least 0 yes Only when condition is lt.
creatives[].firstVariations[].brokenRules[].operator.value integer, at least 0 yes Only when condition is lte.
creatives[].firstVariations[].brokenRules[].operator.value integer, at least 0 yes Only when condition is gt.
creatives[].firstVariations[].brokenRules[].operator.value integer, at least 0 yes Only when condition is gte.
creatives[].firstVariations[].brokenRules[].operator.value array of (integer, at least 0), 1 to 50 items yes Only when condition is in.
creatives[].firstVariations[].createdAt number yes Milliseconds since the Unix epoch, UTC.
creatives[].firstVariations[].createdBy string yes The user who added the Variation.
creatives[].firstVariations[].creativeId string yes The Creative that the Variation belongs to, crv_….
creatives[].firstVariations[].deletedAt number or null yes Always null here. A removed Variation is not answered.
creatives[].firstVariations[].id string yes The id of the Variation, var_….
creatives[].firstVariations[].organizationId string yes The organization that owns the Creative.
creatives[].firstVariations[].placement object or null yes The Placement that the Variation names, or null. null also when the Placement was deleted after the Variation named it.
creatives[].firstVariations[].placement.channel one of meta, tiktok, snapchat, google_search, google_pmax, google_display, youtube, programmatic_display, linkedin, x yes The channel of a Line Item that the Placement belongs to.
creatives[].firstVariations[].placement.id string yes The id of the Placement, plm_….
creatives[].firstVariations[].placement.name string yes The name of the Placement.
creatives[].firstVariations[].placement.type one of image, video yes The kind of Asset that the Placement takes.
creatives[].firstVariations[].placementId string or null yes The id of the Placement that the Variation names, plm_…, or null when it names none.
creatives[].firstVariations[].unknownRules array of object yes The rules of the Placement that need a fact that the Asset does not have: a width, a height, a duration or a ratio of an Asset that AdCrunch could not read. They are neither held nor broken. Empty when placement is null. AdCrunch computes this list at each read.
creatives[].firstVariations[].unknownRules[].type width or height or size or ratio or mime or duration yes
creatives[].firstVariations[].unknownRules[].operator object yes Only when type is width.
creatives[].firstVariations[].unknownRules[].operator.condition eq or ne or lt or lte or gt or gte or in yes
creatives[].firstVariations[].unknownRules[].operator.value integer, at least 0 yes Only when condition is eq.
creatives[].firstVariations[].unknownRules[].operator.value integer, at least 0 yes Only when condition is ne.
creatives[].firstVariations[].unknownRules[].operator.value integer, at least 0 yes Only when condition is lt.
creatives[].firstVariations[].unknownRules[].operator.value integer, at least 0 yes Only when condition is lte.
creatives[].firstVariations[].unknownRules[].operator.value integer, at least 0 yes Only when condition is gt.
creatives[].firstVariations[].unknownRules[].operator.value integer, at least 0 yes Only when condition is gte.
creatives[].firstVariations[].unknownRules[].operator.value array of (integer, at least 0), 1 to 50 items yes Only when condition is in.
creatives[].firstVariations[].unknownRules[].operator object yes Only when type is height.
creatives[].firstVariations[].unknownRules[].operator.condition eq or ne or lt or lte or gt or gte or in yes
creatives[].firstVariations[].unknownRules[].operator.value integer, at least 0 yes Only when condition is eq.
creatives[].firstVariations[].unknownRules[].operator.value integer, at least 0 yes Only when condition is ne.
creatives[].firstVariations[].unknownRules[].operator.value integer, at least 0 yes Only when condition is lt.
creatives[].firstVariations[].unknownRules[].operator.value integer, at least 0 yes Only when condition is lte.
creatives[].firstVariations[].unknownRules[].operator.value integer, at least 0 yes Only when condition is gt.
creatives[].firstVariations[].unknownRules[].operator.value integer, at least 0 yes Only when condition is gte.
creatives[].firstVariations[].unknownRules[].operator.value array of (integer, at least 0), 1 to 50 items yes Only when condition is in.
creatives[].firstVariations[].unknownRules[].operator object yes Only when type is size.
creatives[].firstVariations[].unknownRules[].operator.condition eq or ne or lt or lte or gt or gte or in yes
creatives[].firstVariations[].unknownRules[].operator.value integer, at least 0 yes Only when condition is eq.
creatives[].firstVariations[].unknownRules[].operator.value integer, at least 0 yes Only when condition is ne.
creatives[].firstVariations[].unknownRules[].operator.value integer, at least 0 yes Only when condition is lt.
creatives[].firstVariations[].unknownRules[].operator.value integer, at least 0 yes Only when condition is lte.
creatives[].firstVariations[].unknownRules[].operator.value integer, at least 0 yes Only when condition is gt.
creatives[].firstVariations[].unknownRules[].operator.value integer, at least 0 yes Only when condition is gte.
creatives[].firstVariations[].unknownRules[].operator.value array of (integer, at least 0), 1 to 50 items yes Only when condition is in.
creatives[].firstVariations[].unknownRules[].operator object yes Only when type is ratio.
creatives[].firstVariations[].unknownRules[].operator.condition eq or ne or lt or lte or gt or gte or in yes
creatives[].firstVariations[].unknownRules[].operator.value array of any, 2 items yes Only when condition is eq.
creatives[].firstVariations[].unknownRules[].operator.value array of any, 2 items yes Only when condition is ne.
creatives[].firstVariations[].unknownRules[].operator.value array of any, 2 items yes Only when condition is lt.
creatives[].firstVariations[].unknownRules[].operator.value array of any, 2 items yes Only when condition is lte.
creatives[].firstVariations[].unknownRules[].operator.value array of any, 2 items yes Only when condition is gt.
creatives[].firstVariations[].unknownRules[].operator.value array of any, 2 items yes Only when condition is gte.
creatives[].firstVariations[].unknownRules[].operator.value array of (array of any, 2 items), 1 to 50 items yes Only when condition is in.
creatives[].firstVariations[].unknownRules[].operator object yes Only when type is mime.
creatives[].firstVariations[].unknownRules[].operator.condition eq or ne or in yes
creatives[].firstVariations[].unknownRules[].operator.value string, 1 to 255 characters yes Only when condition is eq.
creatives[].firstVariations[].unknownRules[].operator.value string, 1 to 255 characters yes Only when condition is ne.
creatives[].firstVariations[].unknownRules[].operator.value array of (string, 1 to 255 characters), 1 to 50 items yes Only when condition is in.
creatives[].firstVariations[].unknownRules[].operator object yes Only when type is duration.
creatives[].firstVariations[].unknownRules[].operator.condition eq or ne or lt or lte or gt or gte or in yes
creatives[].firstVariations[].unknownRules[].operator.value integer, at least 0 yes Only when condition is eq.
creatives[].firstVariations[].unknownRules[].operator.value integer, at least 0 yes Only when condition is ne.
creatives[].firstVariations[].unknownRules[].operator.value integer, at least 0 yes Only when condition is lt.
creatives[].firstVariations[].unknownRules[].operator.value integer, at least 0 yes Only when condition is lte.
creatives[].firstVariations[].unknownRules[].operator.value integer, at least 0 yes Only when condition is gt.
creatives[].firstVariations[].unknownRules[].operator.value integer, at least 0 yes Only when condition is gte.
creatives[].firstVariations[].unknownRules[].operator.value array of (integer, at least 0), 1 to 50 items yes Only when condition is in.
creatives[].firstVariations[].updatedAt number or null yes When the Placement of the Variation last changed, or null when it never did. Only the Placement changes: the Asset of a Variation never changes.
creatives[].requiredPlacementCount number yes How many Placements the Creative requires. Each one is a slot that the Creative must fill. 0 when nobody chose a Placement for it. A required Placement that was deleted is not counted. The difference with filledPlacementCount is the number of empty slots.
nextCursor string no Send this value as cursor to get the next page. It is absent on the last page.

Failure codes

A failed call has isError set, and structuredContent.error holds one of these codes. Errors describes the shape of a failed call.

  • invalid_cursor
  • organization_unentitled
  • forbidden
  • invalid_request
  • internal_error

Scope

The token must hold library:read. Auth & scopes lists each scope.

Annotations

A client reads these hints. A hint that the tool does not declare has the default value of the MCP specification.

  • Read-only. The tool changes nothing.
  • Closed world. The tool reads and writes the data of AdCrunch only.

Example

The arguments:

{
  "limit": 20
}

The result, in structuredContent:

{
  "creatives": [
    {
      "createdAt": 1790000300000,
      "createdBy": "usr_2e5b84",
      "deletedAt": null,
      "description": "Vertical video and square image for the spring sale.",
      "id": "crv_5e2a19",
      "name": "Spring sale",
      "organizationId": "org_3a7f10",
      "updatedAt": null,
      "variationCount": 2,
      "filledPlacementCount": 1,
      "firstVariations": [
        {
          "asset": {
            "contentHash": "9d2f41b7c6e8a35014f7b2d9c3e6a810",
            "createdAt": 1790000000000,
            "createdBy": "usr_2e5b84",
            "deletedAt": null,
            "durationMs": 15000,
            "failureCode": null,
            "failureReason": null,
            "filename": "spring-sale.mp4",
            "height": 1920,
            "id": "ast_7c1e9a",
            "key": "org_3a7f10/ast_7c1e9a",
            "kind": "video",
            "mimeType": "video/mp4",
            "name": "Spring sale 9:16",
            "organizationId": "org_3a7f10",
            "sizeBytes": 24117248,
            "status": "ready",
            "thumbnailUrl": "https://assets.adcrunch.dev/cdn-cgi/media/mode=frame,time=0s,width=400,height=400,fit=scale-down/org_3a7f10/ast_7c1e9a",
            "updatedAt": 1790000120000,
            "width": 1080
          },
          "assetId": "ast_7c1e9a",
          "brokenRules": [],
          "createdAt": 1790000360000,
          "createdBy": "usr_2e5b84",
          "creativeId": "crv_5e2a19",
          "deletedAt": null,
          "id": "var_8c3f60",
          "organizationId": "org_3a7f10",
          "placement": {
            "channel": "meta",
            "id": "plm_meta_stories_video",
            "name": "Meta Stories video",
            "type": "video"
          },
          "placementId": "plm_meta_stories_video",
          "unknownRules": [],
          "updatedAt": null
        },
        {
          "asset": {
            "contentHash": "4a7e1c9b0d3f26854b1e7a9c2d6f3081",
            "createdAt": 1789900000000,
            "createdBy": "usr_2e5b84",
            "deletedAt": null,
            "durationMs": null,
            "failureCode": null,
            "failureReason": null,
            "filename": "spring-sale-square.jpg",
            "height": 1080,
            "id": "ast_2d4f83",
            "key": "org_3a7f10/ast_2d4f83",
            "kind": "image",
            "mimeType": "image/jpeg",
            "name": null,
            "organizationId": "org_3a7f10",
            "sizeBytes": 486112,
            "status": "ready",
            "thumbnailUrl": "https://assets.adcrunch.dev/cdn-cgi/image/width=400,height=400,fit=scale-down,format=auto/org_3a7f10/ast_2d4f83",
            "updatedAt": 1789900090000,
            "width": 1080
          },
          "assetId": "ast_2d4f83",
          "brokenRules": [],
          "createdAt": 1790000350000,
          "createdBy": "usr_2e5b84",
          "creativeId": "crv_5e2a19",
          "deletedAt": null,
          "id": "var_1d7b42",
          "organizationId": "org_3a7f10",
          "placement": null,
          "placementId": null,
          "unknownRules": [],
          "updatedAt": null
        }
      ],
      "requiredPlacementCount": 2
    }
  ]
}

Was this page helpful?