Delete a creative
Deletes a Meta creative from the library, which Meta only allows when no ad uses it.
Meta only allows deleting creatives not referenced by any ad; otherwise its 400 surfaces verbatim.
Authorization
bearerAuth API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
In: header
Path Parameters
Platform creative id
Query Parameters
Zernio SocialAccount id (posting or ads variant) used to resolve the Meta token.
Response Body
application/json
application/json
application/json
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.adcreatives.deleteAdCreative({ path: { creativeId: 'creative_abc123', }, query: { accountId: 'account_abc123', },});console.log(data);{ "creativeId": "string", "message": "string"}Rename a creative
Renames a Meta creative (Meta does not allow other changes, so make a new creative to change its content). Creatives are immutable on Meta beyond `name`. For content changes create a new creative (POST /v1/ads/creatives) and swap it onto the ad (PUT /v1/ads/{adId} with `creative`).
Delete an ad video
Removes a video from a Meta ad account's video library. Meta's canonical `DELETE /{video_id}` fails with code 10 / subcode 1363055 for videos uploaded via `/act_X/advideos` even with `ads_management`; this endpoint uses the working account-scoped shape `DELETE /act_X/advideos?video_id=<id>` and returns Meta's `{success: true}` verbatim. Deleting a video that lives in a different ad account, or that Meta has already removed, returns Meta's error verbatim as a 4xx.