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

Remove a Creative from a Line Item

Takes a Creative off one Line Item. The Creative stays in the pool of the Campaign Plan, and on each other Line Item that uses it.

To take the Creative out of the plan, use DELETE /campaign-plans/{slug}/creatives/{creativeId}. Removing a Creative that the Line Item does not use 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.

DELETE/context/campaign-plans/{slug}/line-items/{lineItemId}/creatives/{creativeId}
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
creativeIdstringrequired

The id of a Creative in the Library of your organization, crv_…. List the Creatives with GET /library/creatives.

matches ^crv_[\s\S]{0,}$
lineItemIdstringrequired
matches ^lni_[\s\S]{0,}$
slugstringrequired
Responses
200

The Creatives of the Line Item after the call, oldest first.

creativesobject[]required

The Creatives of the Library that the Line Item uses, oldest first, at most 20. The ads of the Line Item are built from them. Each one is in the pool of the Campaign Plan. A Creative that the Library deleted is not listed.

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}.

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:write. 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 such Campaign Plan, or no Line Item with that id on it. 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 DELETE 'https://api.pr-1339.adcrunch.dev/context/campaign-plans/string/line-items/string/creatives/string' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json'
Response
{
  "creatives": []
}

Was this page helpful?