OverviewProductsPlatformsAPI ReferenceResources
Creatives

Delete a creative

DELETEhttps://zernio.com/api/v1/ads/creatives/{creativeId}

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.

PlatformsMeta

Authentication

AuthorizationBearer tokenRequired

API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.

Path parameters

creativeIdstringRequired

Platform creative id

Query parameters

accountIdstringRequired

Zernio SocialAccount id (posting or ads variant) used to resolve the Meta token.

Responses

Success· the request worked

Errors· the request failed

DELETE/v1/ads/creatives/{creativeId}
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"}
OpenAPI specification
Was this page helpful?