- [Resource: PartnerLink](https://developers.google.com/data-manager/api/reference/rest/v1/accountTypes.accounts.partnerLinks#PartnerLink)
  - [JSON representation](https://developers.google.com/data-manager/api/reference/rest/v1/accountTypes.accounts.partnerLinks#PartnerLink.SCHEMA_REPRESENTATION)
- [ProductAccount](https://developers.google.com/data-manager/api/reference/rest/v1/accountTypes.accounts.partnerLinks#ProductAccount)
  - [JSON representation](https://developers.google.com/data-manager/api/reference/rest/v1/accountTypes.accounts.partnerLinks#ProductAccount.SCHEMA_REPRESENTATION)
- [Product](https://developers.google.com/data-manager/api/reference/rest/v1/accountTypes.accounts.partnerLinks#Product)
- [AccountType](https://developers.google.com/data-manager/api/reference/rest/v1/accountTypes.accounts.partnerLinks#AccountType)
- [FeatureSet](https://developers.google.com/data-manager/api/reference/rest/v1/accountTypes.accounts.partnerLinks#FeatureSet)
- [PartnerCustomerAccount](https://developers.google.com/data-manager/api/reference/rest/v1/accountTypes.accounts.partnerLinks#PartnerCustomerAccount)
  - [JSON representation](https://developers.google.com/data-manager/api/reference/rest/v1/accountTypes.accounts.partnerLinks#PartnerCustomerAccount.SCHEMA_REPRESENTATION)
- [PartnerLinkMetadata](https://developers.google.com/data-manager/api/reference/rest/v1/accountTypes.accounts.partnerLinks#PartnerLinkMetadata)
  - [JSON representation](https://developers.google.com/data-manager/api/reference/rest/v1/accountTypes.accounts.partnerLinks#PartnerLinkMetadata.SCHEMA_REPRESENTATION)
- [Methods](https://developers.google.com/data-manager/api/reference/rest/v1/accountTypes.accounts.partnerLinks#METHODS_SUMMARY)

## Resource: PartnerLink

A partner link between an owning account and a partner account.

| JSON representation |
|---|
| ``` { "name": string, "partnerLinkId": string, "owningAccount": { object (`https://developers.google.com/data-manager/api/reference/rest/v1/accountTypes.accounts.partnerLinks#ProductAccount`) }, "partnerAccount": { object (`https://developers.google.com/data-manager/api/reference/rest/v1/accountTypes.accounts.partnerLinks#ProductAccount`) }, "featureSet": enum (`https://developers.google.com/data-manager/api/reference/rest/v1/accountTypes.accounts.partnerLinks#FeatureSet`), "partnerCustomerAccount": { object (`https://developers.google.com/data-manager/api/reference/rest/v1/accountTypes.accounts.partnerLinks#PartnerCustomerAccount`) }, "partnerLinkMetadata": { object (`https://developers.google.com/data-manager/api/reference/rest/v1/accountTypes.accounts.partnerLinks#PartnerLinkMetadata`) } } ``` |

| Fields ||
|---|---|
| `name` | `string` Identifier. The name of the partner link. Format: accountTypes/{accountType}/accounts/{account}/partnerLinks/{partnerLink} |
| `partnerLinkId` | `string` Output only. The partner link ID. |
| `owningAccount` | ``object (`https://developers.google.com/data-manager/api/reference/rest/v1/accountTypes.accounts.partnerLinks#ProductAccount`)`` Required. The owning account granting access to the partner account. |
| `partnerAccount` | ``object (`https://developers.google.com/data-manager/api/reference/rest/v1/accountTypes.accounts.partnerLinks#ProductAccount`)`` Required. The partner account granted access by the owning account. |
| `featureSet` | ``enum (`https://developers.google.com/data-manager/api/reference/rest/v1/accountTypes.accounts.partnerLinks#FeatureSet`)`` Optional. Immutable. The set of features supported for the partner link. If not specified, the system behavior defaults to `https://developers.google.com/data-manager/api/reference/rest/v1/accountTypes.accounts.partnerLinks#FeatureSet.ENUM_VALUES.FEATURE_SET_AUDIENCE_AND_EVENT_MANAGEMENT`. |
| `partnerCustomerAccount` | ``object (`https://developers.google.com/data-manager/api/reference/rest/v1/accountTypes.accounts.partnerLinks#PartnerCustomerAccount`)`` Optional. The customer account in the partner system. This is required for partner links with the `https://developers.google.com/data-manager/api/reference/rest/v1/accountTypes.accounts.partnerLinks#FeatureSet.ENUM_VALUES.FEATURE_SET_AD_EVENT_MANAGEMENT` feature set. |
| `partnerLinkMetadata` | ``object (`https://developers.google.com/data-manager/api/reference/rest/v1/accountTypes.accounts.partnerLinks#PartnerLinkMetadata`)`` Optional. Metadata associated with the partner link. This is optional and only accepted for partner links with the `https://developers.google.com/data-manager/api/reference/rest/v1/accountTypes.accounts.partnerLinks#FeatureSet.ENUM_VALUES.FEATURE_SET_AD_EVENT_MANAGEMENT`. |

## ProductAccount

Represents a specific account.

| JSON representation |
|---|
| ``` { "product": enum (`https://developers.google.com/data-manager/api/reference/rest/v1/accountTypes.accounts.partnerLinks#Product`), "accountId": string, "accountType": enum (`https://developers.google.com/data-manager/api/reference/rest/v1/accountTypes.accounts.partnerLinks#AccountType`) } ``` |

| Fields ||
|---|---|
| `product (deprecated)` | ``enum (`https://developers.google.com/data-manager/api/reference/rest/v1/accountTypes.accounts.partnerLinks#Product`)`` > [!WARNING] > This item is deprecated! Deprecated. Use `https://developers.google.com/data-manager/api/reference/rest/v1/accountTypes.accounts.partnerLinks#ProductAccount.FIELDS.account_type` instead. |
| `accountId` | `string` Required. The ID of the account. For example, your Google Ads account ID. |
| `accountType` | ``enum (`https://developers.google.com/data-manager/api/reference/rest/v1/accountTypes.accounts.partnerLinks#AccountType`)`` Required. The type of the account. For example, `GOOGLE_ADS`. Either `accountType` or the deprecated `product` is required. If both are set, the values must match. |

## Product

> [!WARNING]
> This item is deprecated!

Deprecated. Use `https://developers.google.com/data-manager/api/reference/rest/v1/accountTypes.accounts.partnerLinks#AccountType` instead. Represents a specific Google product.

| Enums ||
|---|---|
| `PRODUCT_UNSPECIFIED` | Unspecified product. Should never be used. |
| `GOOGLE_ADS` | Google Ads. |
| `DISPLAY_VIDEO_PARTNER` | Display \& Video 360 partner. |
| `DISPLAY_VIDEO_ADVERTISER` | Display \& Video 360 advertiser. |
| `DATA_PARTNER` | Data Partner. |

## AccountType

Represents Google account types. Used to locate accounts and destinations.

| Enums ||
|---|---|
| `ACCOUNT_TYPE_UNSPECIFIED` | Unspecified product. Should never be used. |
| `GOOGLE_ADS` | Google Ads. |
| `DISPLAY_VIDEO_PARTNER` | Display \& Video 360 partner. |
| `DISPLAY_VIDEO_ADVERTISER` | Display \& Video 360 advertiser. |
| `DATA_PARTNER` | Data Partner. |
| `GOOGLE_ANALYTICS_PROPERTY` | Google Analytics. |
| `GOOGLE_AD_MANAGER_AUDIENCE_LINK` | Google Ad Manager audience link. |
| `FLOODLIGHT_CONFIG` | Floodlight configuration. |
| `GOOGLE_AD_MANAGER` | Google Ad Manager. |

## FeatureSet

The set of supported features for a partner link.

| Enums ||
|---|---|
| `FEATURE_SET_UNSPECIFIED` | Unspecified feature set. If unspecified, the system behavior defaults to `https://developers.google.com/data-manager/api/reference/rest/v1/accountTypes.accounts.partnerLinks#FeatureSet.ENUM_VALUES.FEATURE_SET_AUDIENCE_AND_EVENT_MANAGEMENT`. |
| `FEATURE_SET_AUDIENCE_AND_EVENT_MANAGEMENT` | Indicates a link used for audience and event management. |
| `FEATURE_SET_AD_EVENT_MANAGEMENT` | Indicates a link used for ad event management. |

## PartnerCustomerAccount

Represents a customer account in the partner's system.

| JSON representation |
|---|
| ``` { "accountId": string, "accountName": string, "accountType": string } ``` |

| Fields ||
|---|---|
| `accountId` | `string` Required. The identifier of the customer account in the partner's ID space. |
| `accountName` | `string` Optional. The name of the account. |
| `accountType` | `string` Optional. The type of the account. Can be used to distinguish between advertiser accounts and business level accounts, for example. |

## PartnerLinkMetadata

Represents metadata associated with a partner link.

| JSON representation |
|---|
| ``` { "implicitAccounts": [ { object (`https://developers.google.com/data-manager/api/reference/rest/v1/accountTypes.accounts.partnerLinks#PartnerCustomerAccount`) } ] } ``` |

| Fields ||
|---|---|
| `implicitAccounts[]` | ``object (`https://developers.google.com/data-manager/api/reference/rest/v1/accountTypes.accounts.partnerLinks#PartnerCustomerAccount`)`` Optional. The list of implicit accounts. |

| ## Methods ||
|---|---|
| ### `https://developers.google.com/data-manager/api/reference/rest/v1/accountTypes.accounts.partnerLinks/create` | Creates a partner link for the given account. |
| ### `https://developers.google.com/data-manager/api/reference/rest/v1/accountTypes.accounts.partnerLinks/delete` | Deletes a partner link for the given account. |
| ### `https://developers.google.com/data-manager/api/reference/rest/v1/accountTypes.accounts.partnerLinks/search` | Searches for all partner links to and from a given account. |