{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-ads/json-schema/google-ads-partner-link-schema.json",
  "title": "PartnerLink",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-ads-datamanager-account-types-api-openapi.yml#/components/schemas/PartnerLink",
  "properties": {
    "featureSet": {
      "type": "string",
      "enum": [
        "FEATURE_SET_UNSPECIFIED",
        "FEATURE_SET_AUDIENCE_AND_EVENT_MANAGEMENT",
        "FEATURE_SET_AD_EVENT_MANAGEMENT"
      ]
    },
    "owningAccount": {
      "$ref": "#/$defs/ProductAccount"
    },
    "partnerLinkMetadata": {
      "$ref": "#/$defs/PartnerLinkMetadata"
    },
    "partnerCustomerAccount": {
      "$ref": "#/$defs/PartnerCustomerAccount"
    },
    "name": {
      "type": "string"
    },
    "partnerLinkId": {
      "readOnly": true,
      "type": "string"
    },
    "partnerAccount": {
      "$ref": "#/$defs/ProductAccount"
    }
  },
  "type": "object",
  "$defs": {
    "PartnerCustomerAccount": {
      "properties": {
        "accountName": {
          "type": "string"
        },
        "accountType": {
          "type": "string"
        },
        "accountId": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "PartnerLinkMetadata": {
      "type": "object",
      "properties": {
        "implicitAccounts": {
          "items": {
            "$ref": "#/$defs/PartnerCustomerAccount"
          },
          "type": "array"
        }
      }
    },
    "ProductAccount": {
      "type": "object",
      "properties": {
        "product": {
          "type": "string",
          "enum": [
            "PRODUCT_UNSPECIFIED",
            "GOOGLE_ADS",
            "DISPLAY_VIDEO_PARTNER",
            "DISPLAY_VIDEO_ADVERTISER",
            "DATA_PARTNER"
          ],
          "deprecated": true
        },
        "accountId": {
          "type": "string"
        },
        "accountType": {
          "type": "string",
          "enum": [
            "ACCOUNT_TYPE_UNSPECIFIED",
            "GOOGLE_ADS",
            "DISPLAY_VIDEO_PARTNER",
            "DISPLAY_VIDEO_ADVERTISER",
            "DATA_PARTNER",
            "GOOGLE_ANALYTICS_PROPERTY",
            "GOOGLE_AD_MANAGER_AUDIENCE_LINK",
            "FLOODLIGHT_CONFIG",
            "GOOGLE_AD_MANAGER"
          ]
        }
      }
    }
  }
}