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

A single identifier for the user.

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

## Namespace

Google \\ Ads \\ DataManager \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ email_address` | `string` Hashed email address using SHA-256 hash function after normalization. |
| `↳ phone_number` | `string` Hashed phone number using SHA-256 hash function after normalization (E164 standard). |
| `↳ address` | `https://docs.cloud.google.com/php/docs/reference/data-manager/latest/V1.AddressInfo` The known components of a user's address. Holds a grouping of identifiers that are matched all at once. |

### getEmailAddress

Hashed email address using SHA-256 hash function after normalization.

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

### hasEmailAddress

### setEmailAddress

Hashed email address using SHA-256 hash function after normalization.

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

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

### getPhoneNumber

Hashed phone number using SHA-256 hash function after normalization (E164
standard).

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

### hasPhoneNumber

### setPhoneNumber

Hashed phone number using SHA-256 hash function after normalization (E164
standard).

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

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

### getAddress

The known components of a user's address. Holds a grouping
of identifiers that are matched all at once.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/data-manager/latest/V1.AddressInfo|null` |   |

### hasAddress

### setAddress

The known components of a user's address. Holds a grouping
of identifiers that are matched all at once.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/data-manager/latest/V1.AddressInfo` |

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

### getIdentifier

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