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

List the Creatives of a Campaign Plan

Lists the pool of Creatives of a Campaign Plan, oldest first. 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.

Each Creative has its name, the number of its Variations, and lineItemIds: the Line Items of the plan that use it. An empty lineItemIds means that the Creative is not assigned yet. The pool holds at most 50 Creatives, so one page holds all of it and the answer has no nextCursor. A Creative that is deleted in the Library does not show in the answer.

The Variations of a Creative are in the Library: GET /library/creatives/{creativeId}. The MCP tool campaign_plan_creative_list gives the same answer to an agent.

GET/context/campaign-plans/{slug}/creatives
Authorization
AuthorizationBearer token · headerrequired

Send Authorization: Bearer <credential>.

Use an API key (acr_…), from the AdCrunch console under Settings → API keys.

The credential names the organization, and no operation takes an organization parameter.

See https://docs.adcrunch.dev/api/authentication.

Path parameters
slugstringrequired
Responses
200

The pool of the Campaign Plan, in one page.

dataobject[]required
Show properties
Array of object
idstringrequired

The id of the Creative in the Library, crv_….

namestring | nullrequired

The name of the Creative, or null when nobody named it.

variationCountnumberrequired

The number of Variations of the Creative. Read them with GET /library/creatives/{creativeId}.

lineItemIdsstring[]required

The ids of the live Line Items of the plan that use the Creative. Empty when the Creative is not assigned to a Line Item yet.

nextCursorstring

Send this value as cursor to get the next page. It is absent on the last page.

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.

issuesobject[]required

One entry for each field that does not match.

Show properties
Array of object
instringrequired

The part of the request that holds the field.

Allowed:bodycookieheadersparamsquery
messagestringrequired

A sentence to show a person. Written to say what to do next. Reworded whenever it can be said better, so never branch on it.

pathstringrequired

A JSON Pointer into that part of the request, such as /filename. An empty string is the whole part.

errorstringrequired

A stable code for the failure. This is the field to branch on. It does not change for a given failure.

Allowed:invalid_request
messagestringrequired

A sentence to show a person. Written to say what to do next. Reworded whenever it can be said better, so never branch on it.

401

No API key, or one that does not resolve. See the security scheme. error is unauthorized.

errorstringrequired

A stable code for the failure. This is the field to branch on. It does not change for a given failure.

Allowed:unauthorized
messagestringrequired

A sentence to show a person. Written to say what to do next. Reworded whenever it can be said better, so never branch on it.

402

The organization has no active subscription. An owner subscribes at paywallUrl. error is organization_unentitled.

paywallUrlstring<uri>required

The page where an owner of the organization subscribes. Show it to the person.

errorstringrequired

A stable code for the failure. This is the field to branch on. It does not change for a given failure.

Allowed:organization_unentitled
messagestringrequired

A sentence to show a person. Written to say what to do next. Reworded whenever it can be said better, so never branch on it.

403

The caller does not hold campaign_plan:read. error is forbidden.

errorstringrequired

A stable code for the failure. This is the field to branch on. It does not change for a given failure.

Allowed:forbidden
messagestringrequired

A sentence to show a person. Written to say what to do next. Reworded whenever it can be said better, so never branch on it.

404

No Campaign Plan with that slug. error is not_found.

errorstringrequired

A stable code for the failure. This is the field to branch on. It does not change for a given failure.

messagestringrequired

A sentence to show a person. Written to say what to do next. Reworded whenever it can be said better, so never branch on it.

Request
curl -X GET 'https://api.pr-1339.adcrunch.dev/context/campaign-plans/string/creatives' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json'
Response
{
  "data": [
    {
      "id": "crv_8c2e47",
      "lineItemIds": [
        "lni_7f3a9c"
      ],
      "name": "Spring sale",
      "variationCount": 2
    }
  ]
}