# Google Ads Marketing Platform Admin V1alpha Client - Class CreateAnalyticsAccountLinkRequest (0.4.2)

0.4.2 (latest) 0.4.1 0.3.1 0.2.1 0.1.4

> [!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 Ads Marketing Platform Admin V1alpha Client class CreateAnalyticsAccountLinkRequest.

Request message for CreateAnalyticsAccountLink RPC.

Generated from protobuf message `google.marketingplatform.admin.v1alpha.CreateAnalyticsAccountLinkRequest`

## Namespace

Google \\ Ads \\ MarketingPlatform \\ Admin \\ V1alpha

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. The parent resource where this Analytics account link will be created. Format: organizations/{org_id} |
| `↳ analytics_account_link` | `https://docs.cloud.google.com/php/docs/reference/marketingplatform-admin/latest/V1alpha.AnalyticsAccountLink` Required. The Analytics account link to create. |

### getParent

Required. The parent resource where this Analytics account link will be
created. Format: organizations/{org_id}

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

### setParent

Required. The parent resource where this Analytics account link will be
created. Format: organizations/{org_id}

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

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

### getAnalyticsAccountLink

Required. The Analytics account link to create.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/marketingplatform-admin/latest/V1alpha.AnalyticsAccountLink|null` |   |

### hasAnalyticsAccountLink

### clearAnalyticsAccountLink

### setAnalyticsAccountLink

Required. The Analytics account link to create.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/marketingplatform-admin/latest/V1alpha.AnalyticsAccountLink` |

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The parent resource where this Analytics account link will be created. Format: organizations/{org_id} Please see MarketingplatformAdminServiceClient::organizationName() for help formatting this field. |
| `analyticsAccountLink` | `https://docs.cloud.google.com/php/docs/reference/marketingplatform-admin/latest/V1alpha.AnalyticsAccountLink` Required. The Analytics account link to create. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/marketingplatform-admin/latest/V1alpha.CreateAnalyticsAccountLinkRequest` |   |