# Google Ads Ad Manager V1 Client - Class GetCustomTargetingValueRequest (0.1.1)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [0.1.1 (latest)](https://docs.cloud.google.com/php/docs/reference/googleads/ad-manager/latest/V1.GetCustomTargetingValueRequest)
- [0.1.0](https://docs.cloud.google.com/php/docs/reference/googleads/ad-manager/0.1.0/V1.GetCustomTargetingValueRequest)
Reference documentation and code samples for the Google Ads Ad Manager V1 Client class GetCustomTargetingValueRequest.

Request object for `GetCustomTargetingValue` method.

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

## Namespace

Google \\ Ads \\ AdManager \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Required. The resource name of the CustomTargetingValue. Format: `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}/customTargetingValues/{custom_targeting_value_id}` |

### getName

Required. The resource name of the CustomTargetingValue.

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

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

### setName

Required. The resource name of the CustomTargetingValue.

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

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

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

### static::build

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The resource name of the CustomTargetingValue. Format: `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}/customTargetingValues/{custom_targeting_value_id}` Please see Google\\Ads\\AdManager\\V1\\CustomTargetingValueServiceClient::customTargetingValueName() for help formatting this field. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/googleads/ad-manager/latest/V1.GetCustomTargetingValueRequest` |   |