---
title: "POST /v1alpha/{+parent}/analyticsAccountLinks"
method: POST
path: "/v1alpha/{+parent}/analyticsAccountLinks"
tags: ["organizations"]
---

# POST /v1alpha/{+parent}/analyticsAccountLinks

`POST /v1alpha/{+parent}/analyticsAccountLinks`

Creates the link between the Analytics account and the Google Marketing Platform organization. User needs to be an org user, and admin on the Analytics account to create the link. If the account is already linked to an organization, user needs to unlink the account from the current organization, then try link again.

## Path parameters

- `parent` string, required

## Request body

- AnalyticsAccountLink — A resource message representing the link between a Google Analytics account and a Google Marketing Platform organization.
  - `analyticsAccount` string — Required. Immutable. The resource name of the AnalyticsAdmin API account. The account ID will be used as the ID of this AnalyticsAccountLink resource, which will become the final component of the resource name. Format: analyticsadmin.googleapis.com/accounts/{account_id}
  - `displayName` string — Output only. The human-readable name for the Analytics account.
  - `linkVerificationState` 'LINK_VERIFICATION_STATE_UNSPECIFIED' | 'LINK_VERIFICATION_STATE_VERIFIED' | 'LINK_VERIFICATION_STATE_NOT_VERIFIED' — Output only. The verification state of the link between the Analytics account and the parent organization.
  - `name` string — Identifier. Resource name of this AnalyticsAccountLink. Note the resource ID is the same as the ID of the Analtyics account. Format: organizations/{org_id}/analyticsAccountLinks/{analytics_account_link_id} Example: "organizations/xyz/analyticsAccountLinks/1234"

## Response `200`

Successful response

---

[API](https://skmtc.dev/google/apis/marketingplatformadmin.md) · [All operations](https://skmtc.dev/google/apis/marketingplatformadmin/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/google/marketingplatformadmin/revisions/c54eac1bad33/schema)
