Returns a single-use URL to embed in an iframe: the end user logs in to Meta inside it and chooses which ad accounts to activate. The token in clear text is shown only once. On activation, Neike notifies by webhook (ads.connected) and the result is available through GET of the session. It requires that someone has accepted the Marketing terms: otherwise it answers 403 on creation, not inside the iframe. Requires the marketing:manage scope.
Origins allowed to embed the iframe. They feed the frame-ancestors of the CSP and the targetOrigin of the result postMessage. Up to 10. Example: ["https://app.tu-dominio.com"].
external_ref
string
optional
Business id in the client’s system. It comes back unchanged in the webhook and in the result, to correlate the accounts with their tenant. Example: "tenant_8842".
ttl_minutes
number
optional
Validity of the session in minutes. Default: 30.
provider
meta
optional
Ads provider. Today only meta; any other value answers 400 unsupported_provider. Default: "meta".