---
search:
  tags:
    - Campaign Plans
    - POST
seo:
  description: >-
    Puts a Creative of the Library into the pool of a Campaign… Reference for
    the POST /context/campaign-plans/{slug}/creatives endpoint in the AdCrunch
    API.
sidebar:
  label: Add a Creative to a Campaign Plan
  badge: POST
title: Add a Creative to a Campaign Plan
type: openapi-operation
---
Puts a Creative of the Library into the pool of a Campaign Plan. A Campaign Plan holds a pool of Creatives of the Library, at most 50. Each Line Item of the plan picks its Creatives from the pool, at most 20. The ads of a Line Item are built from the Creatives of that Line Item only. A Creative of the pool that no Line Item uses is not assigned yet.

Adding a Creative that is in the pool already changes nothing. A Creative with no Variation is valid. The Creative is not on a Line Item after this call: add it to a Line Item with `POST /campaign-plans/{slug}/line-items/{lineItemId}/creatives`. 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.

`POST /context/campaign-plans/{slug}/creatives`

**Request body** (`application/json`, required)

- `creativeId` (string, required) — The id of a Creative in the Library of your organization, \`crv\_…\`. List the Creatives with GET /library/creatives.

Request body example:

```json
{
  "creativeId": "crv_8c2e47"
}
```

**Responses**

- `200` — The Creatives of the pool after the call, oldest first, each with the Line Items that use it.
- `400` — The request does not match the schema of this operation: a field is missing or has the wrong type, or the body is not valid JSON. \`error\` is \`invalid\_request\`, and \`issues\` names each field. Nothing was changed.
- `401` — No API key, or one that does not resolve. See the security scheme. \`error\` is \`unauthorized\`.
- `402` — The organization has no active subscription. An owner subscribes at \`paywallUrl\`. \`error\` is \`organization\_unentitled\`.
- `403` — The caller does not hold \`campaign\_plan:write\`. \`error\` is \`forbidden\`.
- `404` — No Campaign Plan with that slug, or no Creative with that id in the Library of your organization. A deleted Creative and the Creative of another organization are not found. \`error\` is \`not\_found\`, and \`message\` names which one.
- `409` — The pool has 50 Creatives already. \`error\` is \`creative\_limit\`.

Response example, 200:

```json
{
  "creatives": [
    {
      "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_8c2e47",
          "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_8c2e47",
          "deletedAt": null,
          "id": "var_1d7b42",
          "organizationId": "org_3a7f10",
          "placement": null,
          "placementId": null,
          "unknownRules": [],
          "updatedAt": null
        }
      ],
      "id": "crv_8c2e47",
      "lineItemIds": [],
      "name": "Spring sale",
      "variationCount": 2
    }
  ]
}
```
