campaign_plan_creative_remove
Take a Creative out of a Campaign Plan and off each of its Line Items.
Ask to remove a Creative from a Campaign Plan.
“Remove the winter creative from the spring sale plan.”
The agent calls campaign_plan_creative_remove with the slug of the Campaign Plan and the id of the Creative. The answer is the pool after the call.
- The Creative leaves the pool and every Line Item of the plan. Before the call, the agent tells you which Line Items lose the Creative.
- To take the Creative off one Line Item only, the agent calls
line_item_creative_remove. The Creative then stays in the pool. - The Creative stays in your Library. No ad account changes, and an ad that was built from the Creative is not touched.
- The call is idempotent. A Creative that is not in the pool gives the same result.
- The plan does not change. Its revision stays, and an approved plan stays approved.
Reference
Take a Creative out of the pool of a Campaign Plan. The Creative also leaves every Line Item of the Campaign Plan. The answer is the pool after the call. To take the Creative off one Line Item and keep it in the pool, call line_item_creative_remove. campaign_plan_creative_list shows the Line Items that use the Creative: tell the user which Line Items lose it before you call this Tool. The Creative stays in the Library, and no ad account changes. Removing a Creative that is not in the pool changes nothing. The call does not change the revision or the status of the Campaign Plan or of a Line Item: a validated Line Item stays validated.
Input
| Argument | Type | Required | Description |
|---|---|---|---|
campaign_plan_name |
string | yes | The Campaign Plan slug — its stable per-organization handle. |
creative_id |
string | yes | The id of a Creative of the Library, crv_…. library_creative_list gives the Creatives of the organization. |
Output
A successful call returns this object in structuredContent.
| Field | Type | Always present | Description |
|---|---|---|---|
creatives |
array of object | yes | The Creatives of the pool, oldest first, at most 50: the whole pool, in one answer. A Creative that was deleted in the Library is not listed. |
creatives[].id |
string | yes | The id of the Creative in the Library, crv_…. |
creatives[].name |
string or null | yes | The name of the Creative, or null when it has none. |
creatives[].variationCount |
number | yes | The number of Variations of the Creative. library_creative_get gives them. |
creatives[].firstVariations |
array of object | yes | The first three Variations of the Creative, newest first, each with its Asset, the thumbnailUrl of the Asset, and the rules of its Placement that the Asset breaks. Fewer when the Creative holds fewer. library_creative_get gives every Variation. |
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[].lineItemIds |
array of string | yes | The ids of the Line Items of the Campaign Plan that use the Creative. Empty when the Creative is not assigned to a Line Item yet. |
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 campaign_plan: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:
{
"campaign_plan_name": "spring-sale",
"creative_id": "crv_8c2e47"
}
The result, in structuredContent:
{
"creatives": []
}