Assign a user to an ad account
Gives a person of the portfolio tasks on the ad account. MANAGE is admin, ADVERTISE
creates and edits ads, ANALYZE reads reports, DRAFT edits drafts only. Assigning an
already assigned user replaces their task set.
Authorization
bearerAuth API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
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.adaccounts.assignAdAccountUser({ body: { accountId: 'account_abc123', adAccountId: 'adaccount_abc123', userId: 'user_abc123', tasks: [ 'MANAGE', ], },});console.log(data);{ "adAccountId": "string", "user": { "id": "string", "tasks": [ "string" ] }}Get DSA recommendations
Returns Meta's suggested beneficiary/payor names for an ad account, derived by Meta from the account's recent activity. Useful for prefilling `dsaBeneficiary`/`dsaPayor` inputs, or the defaults sent to `PATCH /v1/ads/accounts`, in your own UI. Meta returns a single flat list. Entries are not labeled as beneficiary or payor, and since these are legal disclosures Zernio never applies them automatically: let your user pick the right entity. The list may be empty for accounts with little activity. Meta accounts only.
Assign a user to a Page
Gives a person of the portfolio tasks on a Page the portfolio owns or was granted as a partner. Meta does not assign partner admins automatically, so after an owner shares a Page the partner calls this for the people whose tokens will advertise for it. `ADVERTISE` is what ad creation needs. Assigning an already assigned user replaces their task set.