Method: organizations.analyticsAccountLinks.create

  • Creates a link between a Google Analytics account and a Google Marketing Platform organization.

  • Requires the user to be an organization user and an admin on the Google Analytics account.

  • If the account is already linked, it needs to be unlinked before creating a new link.

  • Uses an HTTP POST request to create the link with specified parameters and request body.

  • Needs https://www.googleapis.com/auth/marketingplatformadmin.analytics.update authorization scope.

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.

HTTP request

POST https://marketingplatformadmin.googleapis.com/v1alpha/{parent=organizations/*}/analyticsAccountLinks

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. The parent resource where this Analytics account link will be created. Format: organizations/{org_id}

Request body

The request body contains an instance of AnalyticsAccountLink.

Response body

If successful, the response body contains a newly created instance of AnalyticsAccountLink.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/marketingplatformadmin.analytics.update