ads
Archive a Lead Gen form
Meta has no hard delete for forms; this archives the form (status=ARCHIVED).
AuthorizationBearer <token>
API key authentication - use your Zernio API key as a Bearer token
In: header
Path Parameters
formIdstring
Query Parameters
accountIdstring
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.ads.archiveLeadForm({ path: { formId: 'form_abc123', }, query: { accountId: 'account_abc123', },});console.log(data);{
"status": "string",
"formId": "string",
"archived": true
}{
"error": "Unauthorized"
}Associate campaigns with a conversion destination POST
Associate one or more campaigns with this conversion rule. Returns a per-campaign success/failure result so callers can retry only the rows that failed (e.g. wrong campaign type for the rule's objective).
Boost post as ad POST
Creates a paid ad campaign from an existing published post. Creates the full platform campaign hierarchy (campaign, ad set, ad).