Interfejs Google Marketing Platform Admin API jest w wersji alfa. Wersja alfa to niestabilna wczesna wersja testowa. Aby otrzymywać oficjalne ogłoszenia dotyczące tego interfejsu API, zasubskrybuj
grupę powiadamiania Google Marketing Platform API.
REST Resource: organizations.analyticsAccountLinks
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-25 UTC.
[null,null,["Ostatnia aktualizacja: 2025-07-25 UTC."],[[["\u003cp\u003eAn \u003ccode\u003eAnalyticsAccountLink\u003c/code\u003e resource represents the connection between a Google Analytics account and a Google Marketing Platform organization.\u003c/p\u003e\n"],["\u003cp\u003eThis link has a verification state, which can be \u003ccode\u003eVERIFIED\u003c/code\u003e, \u003ccode\u003eNOT_VERIFIED\u003c/code\u003e, or \u003ccode\u003eUNSPECIFIED\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eYou can manage these links by creating, deleting, listing, and updating the service level using provided methods.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAnalyticsAccountLink\u003c/code\u003e resource contains key information like name, Analytics account details, display name, and link verification status.\u003c/p\u003e\n"]]],["This document outlines the `AnalyticsAccountLink` resource, representing a link between a Google Analytics account and a Google Marketing Platform organization. Key information includes: the resource name, the linked Analytics account's resource name, a display name, and the `linkVerificationState` (verified or not verified). Key actions include creating, deleting, and listing links, as well as updating the service level for a linked property. Three verification states are available: unspecified, verified, and not verified.\n"],null,["# REST Resource: organizations.analyticsAccountLinks\n\n- [Resource: AnalyticsAccountLink](#AnalyticsAccountLink)\n - [JSON representation](#AnalyticsAccountLink.SCHEMA_REPRESENTATION)\n- [LinkVerificationState](#LinkVerificationState)\n- [Methods](#METHODS_SUMMARY)\n\nResource: AnalyticsAccountLink\n------------------------------\n\nA resource message representing the link between a Google Analytics account and a Google Marketing Platform organization.\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"name\": string, \"analyticsAccount\": string, \"displayName\": string, \"linkVerificationState\": enum (/marketing-platform/devguides/api/admin/v1/rest/v1alpha/organizations.analyticsAccountLinks#LinkVerificationState) } ``` |\n\n| Fields ||\n|-------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `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\" |\n| `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} |\n| `displayName` | `string` Output only. The human-readable name for the Analytics account. |\n| `linkVerificationState` | `enum (`[LinkVerificationState](/marketing-platform/devguides/api/admin/v1/rest/v1alpha/organizations.analyticsAccountLinks#LinkVerificationState)`)` Output only. The verification state of the link between the Analytics account and the parent organization. |\n\nLinkVerificationState\n---------------------\n\nThe verification state of the link between a product account and a GMP organization.\n\n| Enums ||\n|----------------------------------------|-------------------------------------------------------------------------------|\n| `LINK_VERIFICATION_STATE_UNSPECIFIED` | The link state is unknown. |\n| `LINK_VERIFICATION_STATE_VERIFIED` | The link is established. |\n| `LINK_VERIFICATION_STATE_NOT_VERIFIED` | The link is requested, but hasn't been approved by the product account admin. |\n\n| Methods ------- ||\n|----------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------|\n| ### [create](/marketing-platform/devguides/api/admin/v1/rest/v1alpha/organizations.analyticsAccountLinks/create) | Creates the link between the Analytics account and the Google Marketing Platform organization. |\n| ### [delete](/marketing-platform/devguides/api/admin/v1/rest/v1alpha/organizations.analyticsAccountLinks/delete) | Deletes the AnalyticsAccountLink, which detaches the Analytics account from the Google Marketing Platform organization. |\n| ### [list](/marketing-platform/devguides/api/admin/v1/rest/v1alpha/organizations.analyticsAccountLinks/list) | Lists the Google Analytics accounts link to the specified Google Marketing Platform organization. |\n| ### [setPropertyServiceLevel](/marketing-platform/devguides/api/admin/v1/rest/v1alpha/organizations.analyticsAccountLinks/setPropertyServiceLevel) | Updates the service level for an Analytics property. |"]]