# Google Analytics Admin V1beta Client - Class GoogleAdsLink (0.32.0)

0.32.0 (latest) 0.31.3 0.30.0 0.29.1 0.28.1 0.27.0 0.26.0 0.25.2 0.24.2 0.23.0 0.22.5 0.20.0 0.19.0 0.18.1 0.17.0 0.16.0 0.15.1 0.14.0 0.13.0 0.12.0 0.11.1 0.10.0 0.9.0 0.8.2

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

Reference documentation and code samples for the Google Analytics Admin V1beta Client class GoogleAdsLink.

A link between a Google Analytics property and a Google Ads account.

Generated from protobuf message `google.analytics.admin.v1beta.GoogleAdsLink`

## Namespace

Google \\ Analytics \\ Admin \\ V1beta

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Output only. Format: properties/{propertyId}/googleAdsLinks/{googleAdsLinkId} Note: googleAdsLinkId is not the Google Ads customer ID. |
| `↳ customer_id` | `string` Immutable. Google Ads customer ID. |
| `↳ can_manage_clients` | `bool` Output only. If true, this link is for a Google Ads manager account. |
| `↳ ads_personalization_enabled` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/BoolValue` Enable personalized advertising features with this integration. Automatically publish my Google Analytics audience lists and Google Analytics remarketing events/parameters to the linked Google Ads account. If this field is not set on create/update, it will be defaulted to true. |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. Time when this link was originally created. |
| `↳ update_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. Time when this link was last updated. |
| `↳ creator_email_address` | `string` Output only. Email address of the user that created the link. An empty string will be returned if the email address can't be retrieved. |

### getName

Output only. Format:
properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
Note: googleAdsLinkId is not the Google Ads customer ID.

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

### setName

Output only. Format:
properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
Note: googleAdsLinkId is not the Google Ads customer ID.

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

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

### getCustomerId

Immutable. Google Ads customer ID.

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

### setCustomerId

Immutable. Google Ads customer ID.

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

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

### getCanManageClients

Output only. If true, this link is for a Google Ads manager account.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setCanManageClients

Output only. If true, this link is for a Google Ads manager account.

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

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

### getAdsPersonalizationEnabled

Enable personalized advertising features with this integration.

Automatically publish my Google Analytics audience lists and Google
Analytics remarketing events/parameters to the linked Google Ads account.
If this field is not set on create/update, it will be defaulted to true.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/BoolValue|null` |   |

### hasAdsPersonalizationEnabled

### clearAdsPersonalizationEnabled

### getAdsPersonalizationEnabledUnwrapped

Returns the unboxed value from `getAdsPersonalizationEnabled()`

Enable personalized advertising features with this integration.
Automatically publish my Google Analytics audience lists and Google
Analytics remarketing events/parameters to the linked Google Ads account.
If this field is not set on create/update, it will be defaulted to true.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool|null` |   |

### setAdsPersonalizationEnabled

Enable personalized advertising features with this integration.

Automatically publish my Google Analytics audience lists and Google
Analytics remarketing events/parameters to the linked Google Ads account.
If this field is not set on create/update, it will be defaulted to true.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/BoolValue` |

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

### setAdsPersonalizationEnabledUnwrapped

Sets the field by wrapping a primitive type in a Google\\Protobuf\\BoolValue object.

Enable personalized advertising features with this integration.
Automatically publish my Google Analytics audience lists and Google
Analytics remarketing events/parameters to the linked Google Ads account.
If this field is not set on create/update, it will be defaulted to true.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool|null` |

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

### getCreateTime

Output only. Time when this link was originally created.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. Time when this link was originally created.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getUpdateTime

Output only. Time when this link was last updated.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasUpdateTime

### clearUpdateTime

### setUpdateTime

Output only. Time when this link was last updated.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getCreatorEmailAddress

Output only. Email address of the user that created the link.

An empty string will be returned if the email address can't be retrieved.

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

### setCreatorEmailAddress

Output only. Email address of the user that created the link.

An empty string will be returned if the email address can't be retrieved.

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

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