Delete a creative
Deletes a creative from the library. Meta only allows deleting creatives not referenced by any ad — otherwise its 400 surfaces verbatim.
API key authentication - use your Zernio API key as a Bearer token
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
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"
}{
"error": "Unauthorized"
}Rename a creative PUT
Renames a creative. 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`).
Render pre-create ad previews POST
Renders how a creative would look per placement BEFORE any ad exists, via Meta's `/generatepreviews`. Provide exactly one creative source: `existingCreativeId` or `creativeSpec`. Each preview is an HTML `<iframe>` snippet embeddable directly. Unknown `formats` values return Meta's 400 verbatim.