0.15.1 (latest) 0.15.0 0.14.1 0.8.0 0.7.0 0.6.2 0.5.0 0.4.1 0.3.1 0.2.0 0.1.3 Reference documentation and code samples for the Google Ads Ad Manager V1 Client class CustomTargetingValue.

The `CustomTargetingValue` resource.

Generated from protobuf message `google.ads.admanager.v1.CustomTargetingValue`

## Namespace

Google \\ Ads \\ AdManager \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Identifier. The resource name of the `CustomTargetingValue`. Format: `networks/{network_code}/customTargetingValues/{custom_targeting_value_id}` |
| `↳ custom_targeting_key` | `string` Required. Immutable. The resource name of the `CustomTargetingKey`. Format: `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}` |
| `↳ ad_tag_name` | `string` Immutable. Name of the `CustomTargetingValue`. Values can contain up to 40 characters each. You can use alphanumeric characters and symbols other than the following: ", ', =, !, +, #, \*, \~, ;, \^, (, ), \<, \>, \[, \]. Values are not data-specific; all values are treated as strings. For example, instead of using "age\>=18 AND \<=34", try "18-34" |
| `↳ display_name` | `string` Optional. Descriptive name for the `CustomTargetingValue`. |
| `↳ match_type` | `int` Required. Immutable. The way in which the CustomTargetingValue.name strings will be matched. |
| `↳ status` | `int` Output only. Status of the `CustomTargetingValue`. |

### getName

Identifier. The resource name of the `CustomTargetingValue`.

Format:
`networks/{network_code}/customTargetingValues/{custom_targeting_value_id}`

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

### setName

Identifier. The resource name of the `CustomTargetingValue`.

Format:
`networks/{network_code}/customTargetingValues/{custom_targeting_value_id}`

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

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

### getCustomTargetingKey

Required. Immutable. The resource name of the `CustomTargetingKey`.

Format:
`networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}`

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

### hasCustomTargetingKey

### clearCustomTargetingKey

### setCustomTargetingKey

Required. Immutable. The resource name of the `CustomTargetingKey`.

Format:
`networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}`

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

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

### getAdTagName

Immutable. Name of the `CustomTargetingValue`. Values can contain up to 40
characters each. You can use alphanumeric characters and symbols other than
the following: ", ', =, !, +, #, \*, \~, ;, \^, (, ), \<, \>, \[, \]. Values are
not data-specific; all values are treated as strings. For example, instead
of using "age\>=18 AND \<=34", try "18-34"

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

### hasAdTagName

### clearAdTagName

### setAdTagName

Immutable. Name of the `CustomTargetingValue`. Values can contain up to 40
characters each. You can use alphanumeric characters and symbols other than
the following: ", ', =, !, +, #, \*, \~, ;, \^, (, ), \<, \>, \[, \]. Values are
not data-specific; all values are treated as strings. For example, instead
of using "age\>=18 AND \<=34", try "18-34"

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

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

### getDisplayName

Optional. Descriptive name for the `CustomTargetingValue`.

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

### hasDisplayName

### clearDisplayName

### setDisplayName

Optional. Descriptive name for the `CustomTargetingValue`.

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

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

### getMatchType

Required. Immutable. The way in which the CustomTargetingValue.name strings
will be matched.

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

### hasMatchType

### clearMatchType

### setMatchType

Required. Immutable. The way in which the CustomTargetingValue.name strings
will be matched.

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

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

### getStatus

Output only. Status of the `CustomTargetingValue`.

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

### hasStatus

### clearStatus

### setStatus

Output only. Status of the `CustomTargetingValue`.

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

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