{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-marketing-platform/json-schema/google-marketing-platform-analytics-account-link-schema.json",
  "title": "AnalyticsAccountLink",
  "description": "A resource message representing the link between a Google Analytics account and a Google Marketing Platform organization.",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-marketing-platform-analyticsaccountlinks-api-openapi.yml#/components/schemas/AnalyticsAccountLink",
  "type": "object",
  "properties": {
    "analyticsAccount": {
      "type": "string",
      "description": "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}"
    },
    "name": {
      "type": "string",
      "description": "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\""
    },
    "displayName": {
      "type": "string",
      "description": "Output only. The human-readable name for the Analytics account.",
      "readOnly": true
    },
    "linkVerificationState": {
      "type": "string",
      "description": "Output only. The verification state of the link between the Analytics account and the parent organization.",
      "enum": [
        "LINK_VERIFICATION_STATE_UNSPECIFIED",
        "LINK_VERIFICATION_STATE_VERIFIED",
        "LINK_VERIFICATION_STATE_NOT_VERIFIED"
      ],
      "readOnly": true,
      "x-enum-descriptions": [
        "The link state is unknown.",
        "The link is established.",
        "The link is requested, but hasn't been approved by the product account admin."
      ]
    }
  }
}