Bulk Creative Operations
In addition to the single-creative endpoints, the Creative Library supports 3 bulk operations. They differ in scope (one account or many), in what they do, and in whether they are atomic.
Bulk endpoints
| Operation | Method and path | Scope | Atomic |
|---|---|---|---|
| Bulk create creatives | POST /account_id/creatives/bulk | One account (in the path) | Always. If any creative fails, none is created. |
| Bulk upsert creatives | POST /creatives/bulk?is_atomic=false | Any accounts (account_id per creative) | Never. Each creative succeeds or fails on its own. is_atomic=false is required. |
| Bulk delete creatives | DELETE /creatives/bulk | Any accounts (account_id per creative) | Always. If any creative fails, none is deleted. |
Request and response shapes
- Bulk create takes a plain
collectionof creative objects. - Bulk upsert and bulk delete take an
elementslist. Each element wraps a creative invalueand carries anerrorslot, which must benullin the request. - All 3 respond with an
elementslist, one element per request element, in the same order. On success,valueis the resulting creative anderrorisnull.
Only bulk upsert reports failures per element: a failed element echoes the input in value and reports a field validation error in error. Bulk create and bulk delete are atomic and fail as a whole. See each endpoint for full request and response examples.
Guidelines
- Limit each bulk upsert and bulk delete request to a maximum of 200 creatives.
- In bulk upsert, an element with an
idis an update and an element without anidis a create. Read-only and per-type field rules are the same as for the single endpoints.account_idis required in everyvalueof bulk upsert and bulk delete. In bulk upsert, an unknown creativeid, or a creative from another account, fails the whole request (404 or 403).- Bulk operations create, update and delete creatives. To create ads from the new creatives, assign them to campaigns; see Assigning creatives to campaigns.
- Creative consolidation applies to bulk create and bulk upsert, including creatives that are identical to each other within the same request.
- Bulk delete stops every ad of every deleted creative. See Deleting a creative.
See also
- Bulk Operations - the bulk endpoints for campaign items.
- Creative Library overview
Updated 20 days ago
Did this page help you?
