OverviewProductsPlatformsAPI ReferenceResources
Accounts & Ops

Accept, decline, cancel or end a manager link

PATCHhttps://zernio.com/api/v1/ads/accounts/manager-links

Accepts, declines or cancels a Google Ads manager invitation, or ends an existing manager-client link.

Changes one manager-client link, identified by managerCustomerId, clientCustomerId and managerLinkId (all from GET /v1/ads/accounts/hierarchy).

PlatformsGoogle

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

Google ads SocialAccount id.

managerCustomerIdstringRequired

Manager customer id, digits only.

clientCustomerIdstringRequired

Client customer id, digits only.

managerLinkIdstringRequired

Numeric link id from GET /v1/ads/accounts/hierarchy.

actionstringRequiredOne of accept | decline | cancel | unlink
Optional parameters1 field
validateOnlybooleanDefault false

Responses

Success· the request worked

Errors· the request failed

How it behaves

Actions

  • accept and decline: answer a pending invitation as the client (CustomerManagerLinkService). The connection's Google user needs direct access to the client account; access through a manager is not enough, because the link does not exist yet.
  • cancel: withdraws a pending invitation, as the manager (CustomerClientLinkService).
  • unlink: ends an active link, as the manager (CustomerClientLinkService).

Send validateOnly: true to have Google check the change without applying it.

Invite a client account to a manager

Invites a Google Ads account to be managed by one of your manager accounts; the link stays pending until the client accepts. Sends a manager-to-client link invitation from `managerCustomerId` to `clientCustomerId` (Google's CustomerClientLinkService). - The manager must be one the connection's Google user reaches, directly or under another manager (see GET /v1/ads/accounts/hierarchy). - The client can be any Google Ads account. The link stays `PENDING` until someone with access to the client accepts it in Google Ads or through PATCH on this path. Not idempotent: Google refuses a second invitation while one is pending. Send `validateOnly: true` to have Google check the request without sending anything.

Ad account change / audit log

Shows who changed what in an ad account and when, as an audit log of edits to campaigns, ad sets and ads. ### Google Reads the customer's `change_event` history, newest first. `adAccountId` is the numeric customer id. Google keeps 30 days of it, so `since` defaults to 29 days ago and an older `since` returns 400. `until` defaults to today. Each change is mapped onto the Meta row shape: - `event_type` = resource_change_operation (CREATE, UPDATE, REMOVE) - `event_time` = change_date_time - `actor_name` = user_email - `object_type` = change_resource_type - `object_id` = the last numeric id of `object_resource_name` - `application_name` = client_type - `changed_fields` (array) - `extra_data` = a JSON string `{ old, new }` with Google's old and new resource #### Pagination Pass `paging.after` back as `after` for the next page; it is null when nothing older is left. A page never splits a change batch (the changes of one request share an `event_time`). So a page can hold fewer rows than `limit` while more follow, or more when one batch is larger than `limit`. ### Meta Account-level audit log from Meta's `/act_X/activities`: who changed what and when (creates, edits, status flips, budget changes...). Includes Meta's translated event names and the structured before/after in `extra_data`. Rows are returned verbatim. Meta has no server-side per-object filter on this edge, so `objectId` filters the returned page client-side. Combine it with paging to walk history for one campaign/ad set/ad.

PATCH/v1/ads/accounts/manager-links
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.adaccounts.updateAdAccountManagerLink({  body: {    accountId: 'account_abc123',    managerCustomerId: 'managercustomer_abc123',    clientCustomerId: 'clientcustomer_abc123',    managerLinkId: 'managerlink_abc123',    action: 'accept',  },});console.log(data);
{  "managerCustomerId": "string",  "clientCustomerId": "string",  "managerLinkId": "string",  "status": "PENDING",  "validateOnly": true}
OpenAPI specification
Was this page helpful?