# Google Ads Data Manager V1 Client - Class PartnerLink (0.5.0)

0.5.0 (latest) 0.4.0 0.3.1 0.2.0 0.1.2 Reference documentation and code samples for the Google Ads Data Manager V1 Client class PartnerLink.

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

Generated from protobuf message `google.ads.datamanager.v1.PartnerLink`

## Namespace

Google \\ Ads \\ DataManager \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Identifier. The name of the partner link. Format: accountTypes/{account_type}/accounts/{account}/partnerLinks/{partner_link} |
| `↳ partner_link_id` | `string` Output only. The partner link ID. |
| `↳ owning_account` | `https://docs.cloud.google.com/php/docs/reference/data-manager/latest/V1.ProductAccount` Required. The owning account granting access to the partner account. |
| `↳ partner_account` | `https://docs.cloud.google.com/php/docs/reference/data-manager/latest/V1.ProductAccount` Required. The partner account granted access by the owning account. |

### getName

Identifier. The name of the partner link.

Format:
accountTypes/{account_type}/accounts/{account}/partnerLinks/{partner_link}

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setName

Identifier. The name of the partner link.

Format:
accountTypes/{account_type}/accounts/{account}/partnerLinks/{partner_link}

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getPartnerLinkId

Output only. The partner link ID.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setPartnerLinkId

Output only. The partner link ID.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getOwningAccount

Required. The owning account granting access to the partner account.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/data-manager/latest/V1.ProductAccount|null` |   |

### hasOwningAccount

### clearOwningAccount

### setOwningAccount

Required. The owning account granting access to the partner account.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/data-manager/latest/V1.ProductAccount` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getPartnerAccount

Required. The partner account granted access by the owning account.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/data-manager/latest/V1.ProductAccount|null` |   |

### hasPartnerAccount

### clearPartnerAccount

### setPartnerAccount

Required. The partner account granted access by the owning account.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/data-manager/latest/V1.ProductAccount` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |