library_creative_placement_remove
Remove one required Placement from a Creative of your Library. The files of the Creative stay.
Ask to drop a slot that an ad idea no longer needs. The agent removes one required Placement from the Creative. Only the requirement goes: each Variation stays, also a Variation that names the Placement, and the Placement stays in your Library.
“The Spring sale creative does not need a Meta Feed video.”
The agent finds the Creative with library_creative_list, reads its slots with library_creative_get, and calls this tool. You see the Creative with the slots that stay. A Placement that the Creative does not require changes nothing, and the call still succeeds. No ad account changes.
A Placement of your organization that a Creative requires cannot be deleted. Remove the requirement with this tool first, then delete the Placement with library_placement_delete.
This tool is part of the job Bring your own creative.
Reference
Remove one required Placement from a Creative of your Library. Only the requirement goes: the Placement stays in the Library, and each Variation stays, also a Variation that names the Placement. The answer is the Creative with its slots after the call. A required Placement is a slot: a Placement that the Creative needs a file for. A slot is filled when a live Variation of the Creative names the Placement. A Variation that breaks a rule of the Placement fills the slot too. A slot that no live Variation names is empty. A Placement that the Creative does not require changes nothing, and the call still succeeds. Remove a required Placement only when the user asks for 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.
Input
| Argument | Type | Required | Description |
|---|---|---|---|
creative_id |
string | yes | The id of a Creative of your Library (crv_…). library_creative_list gives it. |
placement_id |
string | yes | The id of a Placement (plm_…). library_placement_list gives it. A Placement of AdCrunch (isGlobal) and a Placement of your organization both work. |
Output
A successful call returns this object in structuredContent.
| Field | Type | Always present | Description |
|---|---|---|---|
creative |
object | yes | The Creative after the call, with each Placement that it still requires in requiredPlacements and the first page of its Variations. |
creative.createdAt |
number | yes | Milliseconds since the Unix epoch, UTC. |
creative.createdBy |
string | yes | The user who created the Creative. |
creative.deletedAt |
number or null | yes | Always null here. A deleted Creative is not answered. |
creative.description |
string or null | yes | A free text about the Creative. null when nobody wrote one. There is no fallback text. |
creative.id |
string | yes | The id of the Creative, crv_…. |
creative.name |
string or null | yes | The name a person gave the Creative. null when nobody named it. There is no fallback name. |
creative.organizationId |
string | yes | The organization that owns the Creative. |
creative.updatedAt |
number or null | yes | When the Creative last changed, in milliseconds since the Unix epoch, UTC. null until its first update. |
creative.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. |
creative.requiredPlacements |
array of object | yes | The Placements that the Creative requires, ordered by channel and then name. Each one is a slot, filled or empty. Empty when nobody chose a Placement for the Creative. A Variation that names no required Placement is in variations and not here. |
creative.requiredPlacements[].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. |
creative.requiredPlacements[].id |
string | yes | The id of the Placement, plm_…. |
creative.requiredPlacements[].name |
string | yes | The name of the Placement. |
creative.requiredPlacements[].type |
one of image, video |
yes | The kind of Asset that the Placement takes. |
creative.requiredPlacements[].isFilled |
boolean | yes | True when a live Variation of the Creative names this Placement: the slot is filled. False when no live Variation does: the slot is empty, and the Creative still needs a file for it. A Variation that breaks a rule of the Placement still fills the slot, and its own read lists the broken rule. To fill an empty slot, add a Variation with this placementId, and only when the user names the Asset or confirms it. |
creative.variations |
object | yes | |
creative.variations.data |
array of object | yes | |
creative.variations.data[].asset |
object | yes | |
creative.variations.data[].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. |
creative.variations.data[].asset.createdAt |
number | yes | Milliseconds since the Unix epoch, UTC. |
creative.variations.data[].asset.createdBy |
string | yes | The user who reserved the upload. |
creative.variations.data[].asset.deletedAt |
number or null | yes | Always null here. A deleted Asset is not answered. |
creative.variations.data[].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. |
creative.variations.data[].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. |
creative.variations.data[].asset.failureReason |
string or null | yes | Why AdCrunch refused the file, as a sentence. null unless status is failed. |
creative.variations.data[].asset.filename |
string | yes | The name the file was uploaded under. Never a lookup key. |
creative.variations.data[].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. |
creative.variations.data[].asset.id |
string | yes | The id of the Asset, ast_…. |
creative.variations.data[].asset.key |
string | yes | Where the bytes are held. Read-only, and never sent by you. |
creative.variations.data[].asset.kind |
one of image, video |
yes | Follows from mimeType. It selects how a provider takes the file. |
creative.variations.data[].asset.mimeType |
string | yes | The type that finalize identified from the stored bytes. The Content-Type of the upload does not set it. |
creative.variations.data[].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. |
creative.variations.data[].asset.organizationId |
string | yes | The organization that owns the Asset. |
creative.variations.data[].asset.sizeBytes |
number | yes | Read from the stored object at finalize. |
creative.variations.data[].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. |
creative.variations.data[].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. |
creative.variations.data[].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. |
creative.variations.data[].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. |
creative.variations.data[].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. |
creative.variations.data[].brokenRules[].type |
width or height or size or ratio or mime or duration |
yes | |
creative.variations.data[].brokenRules[].operator |
object | yes | Only when type is width. |
creative.variations.data[].brokenRules[].operator.condition |
eq or ne or lt or lte or gt or gte or in |
yes | |
creative.variations.data[].brokenRules[].operator.value |
integer, at least 0 | yes | Only when condition is eq. |
creative.variations.data[].brokenRules[].operator.value |
integer, at least 0 | yes | Only when condition is ne. |
creative.variations.data[].brokenRules[].operator.value |
integer, at least 0 | yes | Only when condition is lt. |
creative.variations.data[].brokenRules[].operator.value |
integer, at least 0 | yes | Only when condition is lte. |
creative.variations.data[].brokenRules[].operator.value |
integer, at least 0 | yes | Only when condition is gt. |
creative.variations.data[].brokenRules[].operator.value |
integer, at least 0 | yes | Only when condition is gte. |
creative.variations.data[].brokenRules[].operator.value |
array of (integer, at least 0), 1 to 50 items | yes | Only when condition is in. |
creative.variations.data[].brokenRules[].operator |
object | yes | Only when type is height. |
creative.variations.data[].brokenRules[].operator.condition |
eq or ne or lt or lte or gt or gte or in |
yes | |
creative.variations.data[].brokenRules[].operator.value |
integer, at least 0 | yes | Only when condition is eq. |
creative.variations.data[].brokenRules[].operator.value |
integer, at least 0 | yes | Only when condition is ne. |
creative.variations.data[].brokenRules[].operator.value |
integer, at least 0 | yes | Only when condition is lt. |
creative.variations.data[].brokenRules[].operator.value |
integer, at least 0 | yes | Only when condition is lte. |
creative.variations.data[].brokenRules[].operator.value |
integer, at least 0 | yes | Only when condition is gt. |
creative.variations.data[].brokenRules[].operator.value |
integer, at least 0 | yes | Only when condition is gte. |
creative.variations.data[].brokenRules[].operator.value |
array of (integer, at least 0), 1 to 50 items | yes | Only when condition is in. |
creative.variations.data[].brokenRules[].operator |
object | yes | Only when type is size. |
creative.variations.data[].brokenRules[].operator.condition |
eq or ne or lt or lte or gt or gte or in |
yes | |
creative.variations.data[].brokenRules[].operator.value |
integer, at least 0 | yes | Only when condition is eq. |
creative.variations.data[].brokenRules[].operator.value |
integer, at least 0 | yes | Only when condition is ne. |
creative.variations.data[].brokenRules[].operator.value |
integer, at least 0 | yes | Only when condition is lt. |
creative.variations.data[].brokenRules[].operator.value |
integer, at least 0 | yes | Only when condition is lte. |
creative.variations.data[].brokenRules[].operator.value |
integer, at least 0 | yes | Only when condition is gt. |
creative.variations.data[].brokenRules[].operator.value |
integer, at least 0 | yes | Only when condition is gte. |
creative.variations.data[].brokenRules[].operator.value |
array of (integer, at least 0), 1 to 50 items | yes | Only when condition is in. |
creative.variations.data[].brokenRules[].operator |
object | yes | Only when type is ratio. |
creative.variations.data[].brokenRules[].operator.condition |
eq or ne or lt or lte or gt or gte or in |
yes | |
creative.variations.data[].brokenRules[].operator.value |
array of any, 2 items | yes | Only when condition is eq. |
creative.variations.data[].brokenRules[].operator.value |
array of any, 2 items | yes | Only when condition is ne. |
creative.variations.data[].brokenRules[].operator.value |
array of any, 2 items | yes | Only when condition is lt. |
creative.variations.data[].brokenRules[].operator.value |
array of any, 2 items | yes | Only when condition is lte. |
creative.variations.data[].brokenRules[].operator.value |
array of any, 2 items | yes | Only when condition is gt. |
creative.variations.data[].brokenRules[].operator.value |
array of any, 2 items | yes | Only when condition is gte. |
creative.variations.data[].brokenRules[].operator.value |
array of (array of any, 2 items), 1 to 50 items | yes | Only when condition is in. |
creative.variations.data[].brokenRules[].operator |
object | yes | Only when type is mime. |
creative.variations.data[].brokenRules[].operator.condition |
eq or ne or in |
yes | |
creative.variations.data[].brokenRules[].operator.value |
string, 1 to 255 characters | yes | Only when condition is eq. |
creative.variations.data[].brokenRules[].operator.value |
string, 1 to 255 characters | yes | Only when condition is ne. |
creative.variations.data[].brokenRules[].operator.value |
array of (string, 1 to 255 characters), 1 to 50 items | yes | Only when condition is in. |
creative.variations.data[].brokenRules[].operator |
object | yes | Only when type is duration. |
creative.variations.data[].brokenRules[].operator.condition |
eq or ne or lt or lte or gt or gte or in |
yes | |
creative.variations.data[].brokenRules[].operator.value |
integer, at least 0 | yes | Only when condition is eq. |
creative.variations.data[].brokenRules[].operator.value |
integer, at least 0 | yes | Only when condition is ne. |
creative.variations.data[].brokenRules[].operator.value |
integer, at least 0 | yes | Only when condition is lt. |
creative.variations.data[].brokenRules[].operator.value |
integer, at least 0 | yes | Only when condition is lte. |
creative.variations.data[].brokenRules[].operator.value |
integer, at least 0 | yes | Only when condition is gt. |
creative.variations.data[].brokenRules[].operator.value |
integer, at least 0 | yes | Only when condition is gte. |
creative.variations.data[].brokenRules[].operator.value |
array of (integer, at least 0), 1 to 50 items | yes | Only when condition is in. |
creative.variations.data[].createdAt |
number | yes | Milliseconds since the Unix epoch, UTC. |
creative.variations.data[].createdBy |
string | yes | The user who added the Variation. |
creative.variations.data[].creativeId |
string | yes | The Creative that the Variation belongs to, crv_…. |
creative.variations.data[].deletedAt |
number or null | yes | Always null here. A removed Variation is not answered. |
creative.variations.data[].id |
string | yes | The id of the Variation, var_…. |
creative.variations.data[].organizationId |
string | yes | The organization that owns the Creative. |
creative.variations.data[].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. |
creative.variations.data[].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. |
creative.variations.data[].placement.id |
string | yes | The id of the Placement, plm_…. |
creative.variations.data[].placement.name |
string | yes | The name of the Placement. |
creative.variations.data[].placement.type |
one of image, video |
yes | The kind of Asset that the Placement takes. |
creative.variations.data[].placementId |
string or null | yes | The id of the Placement that the Variation names, plm_…, or null when it names none. |
creative.variations.data[].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. |
creative.variations.data[].unknownRules[].type |
width or height or size or ratio or mime or duration |
yes | |
creative.variations.data[].unknownRules[].operator |
object | yes | Only when type is width. |
creative.variations.data[].unknownRules[].operator.condition |
eq or ne or lt or lte or gt or gte or in |
yes | |
creative.variations.data[].unknownRules[].operator.value |
integer, at least 0 | yes | Only when condition is eq. |
creative.variations.data[].unknownRules[].operator.value |
integer, at least 0 | yes | Only when condition is ne. |
creative.variations.data[].unknownRules[].operator.value |
integer, at least 0 | yes | Only when condition is lt. |
creative.variations.data[].unknownRules[].operator.value |
integer, at least 0 | yes | Only when condition is lte. |
creative.variations.data[].unknownRules[].operator.value |
integer, at least 0 | yes | Only when condition is gt. |
creative.variations.data[].unknownRules[].operator.value |
integer, at least 0 | yes | Only when condition is gte. |
creative.variations.data[].unknownRules[].operator.value |
array of (integer, at least 0), 1 to 50 items | yes | Only when condition is in. |
creative.variations.data[].unknownRules[].operator |
object | yes | Only when type is height. |
creative.variations.data[].unknownRules[].operator.condition |
eq or ne or lt or lte or gt or gte or in |
yes | |
creative.variations.data[].unknownRules[].operator.value |
integer, at least 0 | yes | Only when condition is eq. |
creative.variations.data[].unknownRules[].operator.value |
integer, at least 0 | yes | Only when condition is ne. |
creative.variations.data[].unknownRules[].operator.value |
integer, at least 0 | yes | Only when condition is lt. |
creative.variations.data[].unknownRules[].operator.value |
integer, at least 0 | yes | Only when condition is lte. |
creative.variations.data[].unknownRules[].operator.value |
integer, at least 0 | yes | Only when condition is gt. |
creative.variations.data[].unknownRules[].operator.value |
integer, at least 0 | yes | Only when condition is gte. |
creative.variations.data[].unknownRules[].operator.value |
array of (integer, at least 0), 1 to 50 items | yes | Only when condition is in. |
creative.variations.data[].unknownRules[].operator |
object | yes | Only when type is size. |
creative.variations.data[].unknownRules[].operator.condition |
eq or ne or lt or lte or gt or gte or in |
yes | |
creative.variations.data[].unknownRules[].operator.value |
integer, at least 0 | yes | Only when condition is eq. |
creative.variations.data[].unknownRules[].operator.value |
integer, at least 0 | yes | Only when condition is ne. |
creative.variations.data[].unknownRules[].operator.value |
integer, at least 0 | yes | Only when condition is lt. |
creative.variations.data[].unknownRules[].operator.value |
integer, at least 0 | yes | Only when condition is lte. |
creative.variations.data[].unknownRules[].operator.value |
integer, at least 0 | yes | Only when condition is gt. |
creative.variations.data[].unknownRules[].operator.value |
integer, at least 0 | yes | Only when condition is gte. |
creative.variations.data[].unknownRules[].operator.value |
array of (integer, at least 0), 1 to 50 items | yes | Only when condition is in. |
creative.variations.data[].unknownRules[].operator |
object | yes | Only when type is ratio. |
creative.variations.data[].unknownRules[].operator.condition |
eq or ne or lt or lte or gt or gte or in |
yes | |
creative.variations.data[].unknownRules[].operator.value |
array of any, 2 items | yes | Only when condition is eq. |
creative.variations.data[].unknownRules[].operator.value |
array of any, 2 items | yes | Only when condition is ne. |
creative.variations.data[].unknownRules[].operator.value |
array of any, 2 items | yes | Only when condition is lt. |
creative.variations.data[].unknownRules[].operator.value |
array of any, 2 items | yes | Only when condition is lte. |
creative.variations.data[].unknownRules[].operator.value |
array of any, 2 items | yes | Only when condition is gt. |
creative.variations.data[].unknownRules[].operator.value |
array of any, 2 items | yes | Only when condition is gte. |
creative.variations.data[].unknownRules[].operator.value |
array of (array of any, 2 items), 1 to 50 items | yes | Only when condition is in. |
creative.variations.data[].unknownRules[].operator |
object | yes | Only when type is mime. |
creative.variations.data[].unknownRules[].operator.condition |
eq or ne or in |
yes | |
creative.variations.data[].unknownRules[].operator.value |
string, 1 to 255 characters | yes | Only when condition is eq. |
creative.variations.data[].unknownRules[].operator.value |
string, 1 to 255 characters | yes | Only when condition is ne. |
creative.variations.data[].unknownRules[].operator.value |
array of (string, 1 to 255 characters), 1 to 50 items | yes | Only when condition is in. |
creative.variations.data[].unknownRules[].operator |
object | yes | Only when type is duration. |
creative.variations.data[].unknownRules[].operator.condition |
eq or ne or lt or lte or gt or gte or in |
yes | |
creative.variations.data[].unknownRules[].operator.value |
integer, at least 0 | yes | Only when condition is eq. |
creative.variations.data[].unknownRules[].operator.value |
integer, at least 0 | yes | Only when condition is ne. |
creative.variations.data[].unknownRules[].operator.value |
integer, at least 0 | yes | Only when condition is lt. |
creative.variations.data[].unknownRules[].operator.value |
integer, at least 0 | yes | Only when condition is lte. |
creative.variations.data[].unknownRules[].operator.value |
integer, at least 0 | yes | Only when condition is gt. |
creative.variations.data[].unknownRules[].operator.value |
integer, at least 0 | yes | Only when condition is gte. |
creative.variations.data[].unknownRules[].operator.value |
array of (integer, at least 0), 1 to 50 items | yes | Only when condition is in. |
creative.variations.data[].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. |
creative.variations.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.
not_foundorganization_unentitledforbiddeninvalid_requestinternal_error
Scope
The token must hold library:write. 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.
- Writes. The tool can change data.
- Destructive. The tool can make a change that you cannot undo. A client can ask you to confirm before it calls the tool.
- Idempotent. A second call with the same arguments changes nothing more.
- Closed world. The tool reads and writes the data of AdCrunch only.
Example
The arguments:
{
"creative_id": "crv_5e2a19",
"placement_id": "plm_meta_feed_image"
}
The result, in structuredContent:
{
"creative": {
"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,
"requiredPlacements": [
{
"channel": "meta",
"id": "plm_meta_stories_video",
"isFilled": true,
"name": "Meta Stories video",
"type": "video"
}
],
"variations": {
"data": [
{
"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",
"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",
"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
}
]
}
}
}