OverviewProductsPlatformsAPI ReferenceResources
Accounts & Ops

List invitations awaiting multi-party approval

GEThttps://zernio.com/api/v1/ads/accounts/user-invitations/pending-approvals

Lists the email invitations to a Google Ads account that Google is holding until a second admin approves them.

When Google requires multi-party approval, POST /v1/ads/accounts/user-invitations answers status: PENDING_APPROVAL and sends nothing. Those requests are not in GET /v1/ads/accounts/user-invitations.

This reads Google's multi_party_auth_review resource for the ones still PENDING that target an invitation. Approved, rejected, revoked and expired reviews are not listed.

PlatformsGoogle

Authentication

AuthorizationBearer tokenRequired

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

Query parameters

accountIdstringRequired

Google ads SocialAccount id.

adAccountIdstring

Google Ads customer id, digits only. Defaults to the connection's selected customer.

Responses

Success· the request worked

Errors· the request failed

How it behaves

Caching

Results are cached for 10 minutes and dropped on every invite or withdrawal through Zernio. An approval or rejection made in Google Ads can take that long to show.

Invite a user to an ad account by email

Emails someone an invitation to a Google Ads account with the access role you choose, for example to hand a client account you created under your manager to its owner. It creates a user access invitation (Google's CustomerUserAccessInvitationService) on `adAccountId`. The recipient accepts from the email, possibly with another Google account. ### Access needed The connection's Google user needs admin access to that account, directly or through a manager above it. That is the case for an account created with POST /v1/ads/accounts. ### Multi-party approval When Google requires multi-party approval, nothing is sent until a second admin of the account approves the request in Google Ads. The response then has `status: PENDING_APPROVAL` and a `multiPartyAuthReviewId` instead of an `invitationId`. DELETE /v1/ads/accounts/user-invitations/pending-approvals withdraws it. ### Retries and validation Not idempotent: Google refuses a second invitation while the email has one pending or awaiting approval. Google has no server-side check for this call. So `validateOnly: true` reads the account's invitations with the same credentials (proving the account is reachable) and fails if the email already has a pending one, without sending anything.

List user access invitations

Lists the email invitations to a Google Ads account, with their role and status. Reads Google's `customer_user_access_invitation` resource for one customer. Listed invitations are: - `PENDING` - `DECLINED` - `EXPIRED` (Google expires them 20 days after sending) ### Not listed - An accepted invitation becomes a user of the account and leaves this list, which can take Google up to 24 hours. - An invitation still waiting for multi-party approval is not listed until a second admin approves it. GET /v1/ads/accounts/user-invitations/pending-approvals lists those. Results are cached for 10 minutes and dropped on every invite or revoke through Zernio.

GET/v1/ads/accounts/user-invitations/pending-approvals
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.adaccounts.listAdAccountUserInvitationApprovals({  query: {    accountId: 'account_abc123',  },});console.log(data);
{  "customerId": "string",  "approvals": [    {      "multiPartyAuthReviewId": "string",      "emailAddress": "string",      "accessRole": "ADMIN",      "requestUserEmail": "string",      "createdAt": "string"    }  ],  "cachedAt": "2019-08-24T14:15:22Z",  "stale": true}
OpenAPI specification
Was this page helpful?