# Google Shopping Merchant Conversions V1 Client - Class MerchantCenterDestination (1.2.0)

1.2.0 (latest) 1.1.3 1.0.0 0.3.0 0.2.1 0.1.5 Reference documentation and code samples for the Google Shopping Merchant Conversions V1 Client class MerchantCenterDestination.

"Merchant Center Destination" sources can be used to send conversion events
from an online store using a Google tag directly to a Merchant Center account
where the source is created.

Generated from protobuf message `google.shopping.merchant.conversions.v1.MerchantCenterDestination`

## Namespace

Google \\ Shopping \\ Merchant \\ Conversions \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ destination` | `string` Output only. Merchant Center Destination ID. |
| `↳ attribution_settings` | `https://docs.cloud.google.com/php/docs/reference/shopping-merchant-conversions/latest/V1.AttributionSettings` Required. Attribution settings used for the Merchant Center Destination. |
| `↳ display_name` | `string` Required. Merchant-specified display name for the destination. This is the name that identifies the conversion source within the Merchant Center UI. The maximum length is 64 characters. |
| `↳ currency_code` | `string` Required. Three-letter currency code (ISO 4217). The currency code defines in which currency the conversions sent to this destination will be reported in Merchant Center. |

### getDestination

Output only. Merchant Center Destination ID.

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

### setDestination

Output only. Merchant Center Destination ID.

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

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

### getAttributionSettings

Required. Attribution settings used for the Merchant Center Destination.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/shopping-merchant-conversions/latest/V1.AttributionSettings|null` |   |

### hasAttributionSettings

### clearAttributionSettings

### setAttributionSettings

Required. Attribution settings used for the Merchant Center Destination.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/shopping-merchant-conversions/latest/V1.AttributionSettings` |

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

### getDisplayName

Required. Merchant-specified display name for the destination. This is the
name that identifies the conversion source within the Merchant Center UI.

The maximum length is 64 characters.

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

### setDisplayName

Required. Merchant-specified display name for the destination. This is the
name that identifies the conversion source within the Merchant Center UI.

The maximum length is 64 characters.

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

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

### getCurrencyCode

Required. Three-letter currency code (ISO 4217). The currency code defines
in which currency the conversions sent to this destination will be reported
in Merchant Center.

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

### setCurrencyCode

Required. Three-letter currency code (ISO 4217). The currency code defines
in which currency the conversions sent to this destination will be reported
in Merchant Center.

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

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