# Google Shopping Merchant Conversions V1 Client - Class GoogleAnalyticsLink (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 GoogleAnalyticsLink.

"Google Analytics Link" sources can be used to get conversion data from an
existing Google Analytics property into the linked Merchant Center account.

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ property_id` | `int|string` Required. Immutable. ID of the Google Analytics property the merchant is linked to. |
| `↳ attribution_settings` | `https://docs.cloud.google.com/php/docs/reference/shopping-merchant-conversions/latest/V1.AttributionSettings` Output only. Attribution settings for the linked Google Analytics property. |
| `↳ property` | `string` Output only. Name of the Google Analytics property the merchant is linked to. |

### getPropertyId

Required. Immutable. ID of the Google Analytics property the merchant is
linked to.

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

### setPropertyId

Required. Immutable. ID of the Google Analytics property the merchant is
linked to.

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

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

### getAttributionSettings

Output only. Attribution settings for the linked Google Analytics property.

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

### hasAttributionSettings

### clearAttributionSettings

### setAttributionSettings

Output only. Attribution settings for the linked Google Analytics property.

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

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

### getProperty

Output only. Name of the Google Analytics property the merchant is linked
to.

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

### setProperty

Output only. Name of the Google Analytics property the merchant is linked
to.

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

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