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

A bucket of any additional [user
properties](https://developers.google.com/analytics/devguides/collection/protocol/ga4/user-properties)
for the user associated with this event.

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

## Namespace

Google \\ Ads \\ DataManager \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ property_name` | `string` Required. The name of the user property to use. |
| `↳ value` | `string` Required. The string representation of the value of the user property to use. |

### getPropertyName

Required. The name of the user property to use.

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

### setPropertyName

Required. The name of the user property to use.

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

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

### getValue

Required. The string representation of the value of the user property to
use.

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

### setValue

Required. The string representation of the value of the user property to
use.

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

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