library_creative_create
Create a Creative in your Library, one ad idea, with no Variation yet, and with the Placements that it requires.
Ask to keep the files of one ad idea together. The agent creates a Creative, and then adds a Variation for each file.
“Make a creative called Spring sale with the teaser video and the square banner.”
The agent calls this tool with the name and, if you gave one, a description, and then calls library_variation_add once for each file. You then see the Creative with its two Variations. The Creative stays in AdCrunch, and no ad account changes.
A Creative can also require Placements: the slots that the idea needs, for example a Meta Stories video and a Meta Feed image. Each required Placement is an empty slot until a Variation names it. The agent asks you which Placements the Creative needs, or uses a preset that you name: a Placement group whose Placements the create copies.
“Make a creative called Spring sale with the Meta vertical preset.”
The agent finds the preset with library_placement_group_list, and calls this tool with it. The Creative keeps no link to the preset, so a later change of the preset changes no Creative. A Placement that is both in the list and in the preset counts one time. One Creative requires 50 Placements at most. A Placement or a preset that your organization does not see answers not_found, and nothing is created. A Creative with no required Placement is valid.
This tool is part of the job Bring your own creative.
Reference
Create a Creative in your Library: one ad idea, with no Variation yet. Then add a Variation for each rendition of the idea with library_variation_add, for example a 9:16 video and a square image. Name the Placements that the Creative requires with placement_ids, with a preset in placement_group_id, or with both. 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. At the create, ask the user which Placements the Creative needs, or use a Placement group that the user names as a preset. Never choose the Placements yourself. A Creative with no required Placement is valid. library_creative_get shows the slots after the create. 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. The Creative stays in AdCrunch: this changes no ad account.
Input
| Argument | Type | Required | Description |
|---|---|---|---|
description |
string, at most 1000 characters or null | no | A free text about the Creative, up to 1000 characters. A blank description or null stores no description. |
name |
string, at most 255 characters or null | no | The name of the Creative, for people. A blank name or null stores no name. There is no fallback name. |
placement_group_id |
string | no | A Placement group (plg_…) used as a preset: AdCrunch adds its Placements to the required Placements at this moment, and keeps no link to the group. A later change of the group changes no Creative. library_placement_group_list gives the groups, the global ones too. |
placement_ids |
array of string | no | The Placements that the Creative requires (plm_…), each a slot to fill. library_placement_list gives them. A global Placement and a Placement of your organization both work. The Placements of placement_group_id join this list, and a Placement in both counts one time. 50 at most in all. Leave it out for a Creative with no required Placement. |
Output
A successful call returns this object in structuredContent.
| Field | Type | Always present | Description |
|---|---|---|---|
creative |
object | yes | The new Creative. Its variationCount is 0. The answer does not list its required Placements: library_creative_get shows its slots. |
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. |
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_foundcreative_placement_limitorganization_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.
- Not destructive. The tool makes only additive changes.
- Not idempotent. A second call with the same arguments can change more.
- Closed world. The tool reads and writes the data of AdCrunch only.
Example
The arguments:
{
"description": "Vertical video and square image for the spring sale.",
"name": "Spring sale",
"placement_group_id": "plg_meta_vertical",
"placement_ids": [
"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": 0
}
}