Method: organizations.analyticsAccountLinks.create
Stay organized with collections
Save and categorize content based on your preferences.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["\u003cp\u003eCreates a link between a Google Analytics account and a Google Marketing Platform organization.\u003c/p\u003e\n"],["\u003cp\u003eRequires the user to be an organization user and an admin on the Google Analytics account.\u003c/p\u003e\n"],["\u003cp\u003eIf the account is already linked, it needs to be unlinked before creating a new link.\u003c/p\u003e\n"],["\u003cp\u003eUses an HTTP POST request to create the link with specified parameters and request body.\u003c/p\u003e\n"],["\u003cp\u003eNeeds \u003ccode\u003ehttps://www.googleapis.com/auth/marketingplatformadmin.analytics.update\u003c/code\u003e authorization scope.\u003c/p\u003e\n"]]],["This outlines linking an Analytics account to a Google Marketing Platform organization. A user, with org membership and Analytics admin privileges, can link accounts via a `POST` request to `organizations/*/analyticsAccountLinks`. The request requires the organization ID as a path parameter. The request and response bodies use the `AnalyticsAccountLink` format. If the Analytics account is currently linked, it must be unlinked first. This action also requires the `marketingplatformadmin.analytics.update` authorization scope.\n"],null,[]]