OverviewProductsPlatformsAPI ReferenceResources
Accounts & Ops

Assign a user to an ad account

POSThttps://zernio.com/api/v1/ads/accounts/users

Gives a person in your business portfolio access to a Meta ad account, as admin, advertiser, analyst or draft editor.

MANAGE is admin, ADVERTISE creates and edits ads, ANALYZE reads reports, DRAFT edits drafts only. Assigning an already assigned user replaces their task set.

PlatformsMeta

Authentication

AuthorizationBearer tokenRequired

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

Body

application/json

What every request needs

accountIdstringRequired

Zernio SocialAccount id used to resolve the Meta token.

adAccountIdstringRequired

Meta ad account id (act_).

userIdstringRequired

Business-scoped user id from GET /v1/ads/businesses/users.

tasksarray of stringsRequired

Responses

Success· the request worked

Errors· the request failed

POST/v1/ads/accounts/users
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"    ]  }}
OpenAPI specification
Was this page helpful?