# Google Ads Data Manager V1 Client - Class Destination (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 Destination.

The Google product you're sending data to. For example, a Google
Ads account.

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

## Namespace

Google \\ Ads \\ DataManager \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ reference` | `string` Optional. ID for this `Destination` resource, unique within the request. Use to reference this `Destination` in the [IngestEventsRequest](https://docs.cloud.google.com/php/docs/reference/data-manager/latest/V1.IngestEventsRequest) and [IngestAudienceMembersRequest](https://docs.cloud.google.com/php/docs/reference/data-manager/latest/V1.IngestAudienceMembersRequest). |
| `↳ login_account` | `https://docs.cloud.google.com/php/docs/reference/data-manager/latest/V1.ProductAccount` Optional. The account used to make this API call. To add or remove data from the [`operating_account`](https://docs.cloud.google.com/php/docs/reference/data-manager/latest/V1.Destination#_Google_Ads_DataManager_V1_Destination__getOperatingAccount__), this `login_account` must have write access to the `operating_account`. For example, a manager account of the `operating_account`, or an account with an established link to the `operating_account`. |
| `↳ linked_account` | `https://docs.cloud.google.com/php/docs/reference/data-manager/latest/V1.ProductAccount` Optional. An account that the calling user's [`login_account`](https://docs.cloud.google.com/php/docs/reference/data-manager/latest/V1.Destination#_Google_Ads_DataManager_V1_Destination__getLoginAccount__) has access to, through an established account link. For example, a data partner's `login_account` might have access to a client's `linked_account`. The partner might use this field to send data from the `linked_account` to another [`operating_account`](https://docs.cloud.google.com/php/docs/reference/data-manager/latest/V1.Destination#_Google_Ads_DataManager_V1_Destination__getOperatingAccount__). |
| `↳ operating_account` | `https://docs.cloud.google.com/php/docs/reference/data-manager/latest/V1.ProductAccount` Required. The account to send the data to or remove the data from. |
| `↳ product_destination_id` | `string` Required. The object within the product account to ingest into. For example, a Google Ads audience ID, a Display \& Video 360 audience ID or a Google Ads conversion action ID. |

### getReference

Optional. ID for this `Destination` resource, unique within the request.

Use to reference this `Destination` in the
[IngestEventsRequest](https://docs.cloud.google.com/php/docs/reference/data-manager/latest/V1.IngestEventsRequest) and
[IngestAudienceMembersRequest](https://docs.cloud.google.com/php/docs/reference/data-manager/latest/V1.IngestAudienceMembersRequest).

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

### setReference

Optional. ID for this `Destination` resource, unique within the request.

Use to reference this `Destination` in the
[IngestEventsRequest](https://docs.cloud.google.com/php/docs/reference/data-manager/latest/V1.IngestEventsRequest) and
[IngestAudienceMembersRequest](https://docs.cloud.google.com/php/docs/reference/data-manager/latest/V1.IngestAudienceMembersRequest).

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

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

### getLoginAccount

Optional. The account used to make this API call. To add or remove data
from the
[`operating_account`](https://docs.cloud.google.com/php/docs/reference/data-manager/latest/V1.Destination#_Google_Ads_DataManager_V1_Destination__getOperatingAccount__),
this `login_account` must have write access to the `operating_account`. For
example, a manager account of the `operating_account`, or an account with
an established link to the `operating_account`.

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

### hasLoginAccount

### clearLoginAccount

### setLoginAccount

Optional. The account used to make this API call. To add or remove data
from the
[`operating_account`](https://docs.cloud.google.com/php/docs/reference/data-manager/latest/V1.Destination#_Google_Ads_DataManager_V1_Destination__getOperatingAccount__),
this `login_account` must have write access to the `operating_account`. For
example, a manager account of the `operating_account`, or an account with
an established link to the `operating_account`.

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

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

### getLinkedAccount

Optional. An account that the calling user's
[`login_account`](https://docs.cloud.google.com/php/docs/reference/data-manager/latest/V1.Destination#_Google_Ads_DataManager_V1_Destination__getLoginAccount__) has
access to, through an established account link. For example, a data
partner's `login_account` might have access to a client's `linked_account`.

The partner might use this field to send data from the `linked_account` to
another
[`operating_account`](https://docs.cloud.google.com/php/docs/reference/data-manager/latest/V1.Destination#_Google_Ads_DataManager_V1_Destination__getOperatingAccount__).

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

### hasLinkedAccount

### clearLinkedAccount

### setLinkedAccount

Optional. An account that the calling user's
[`login_account`](https://docs.cloud.google.com/php/docs/reference/data-manager/latest/V1.Destination#_Google_Ads_DataManager_V1_Destination__getLoginAccount__) has
access to, through an established account link. For example, a data
partner's `login_account` might have access to a client's `linked_account`.

The partner might use this field to send data from the `linked_account` to
another
[`operating_account`](https://docs.cloud.google.com/php/docs/reference/data-manager/latest/V1.Destination#_Google_Ads_DataManager_V1_Destination__getOperatingAccount__).

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

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

### getOperatingAccount

Required. The account to send the data to or remove the data from.

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

### hasOperatingAccount

### clearOperatingAccount

### setOperatingAccount

Required. The account to send the data to or remove the data from.

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

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

### getProductDestinationId

Required. The object within the product account to ingest into. For
example, a Google Ads audience ID, a Display \& Video 360 audience ID or a
Google Ads conversion action ID.

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

### setProductDestinationId

Required. The object within the product account to ingest into. For
example, a Google Ads audience ID, a Display \& Video 360 audience ID or a
Google Ads conversion action ID.

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

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