# type CustomTargetingKey (v202602)

**Service** **CustomTargetingService** **Dependencies** [CustomTargetingKeyPage](https://developers.google.com/ad-manager/api/reference/v202602/CustomTargetingService.CustomTargetingKeyPage) [createCustomTargetingKeys()](https://developers.google.com/ad-manager/api/reference/v202602/CustomTargetingService#createCustomTargetingKeys) [updateCustomTargetingKeys()](https://developers.google.com/ad-manager/api/reference/v202602/CustomTargetingService#updateCustomTargetingKeys) ▼ **CustomTargetingKey**


`CustomTargetingKey` represents a key used for custom targeting.

*** ** * ** ***

Namespace
:
    `https://www.google.com/apis/ads/publisher/v202602`

| ## Field ||
|---|---|
| ### `id` | ` xsd:long` The ID of the `CustomTargetingKey`. This value is readonly and is populated by Google. |
| ### `name` | ` xsd:string` Name of the key. Keys can contain up to 10 characters each. You can use alphanumeric characters and symbols other than the following: ", ', =, !, +, #, \*, \~, ;, \^, (, ), \<, \>, \[, \], the white space character. |
| ### `displayName` | ` xsd:string` Descriptive name for the key. |
| ### `type` | ` https://developers.google.com/ad-manager/api/reference/v202602/CustomTargetingService.CustomTargetingKey.Type ` Indicates whether users will select from predefined values or create new targeting values, while specifying targeting criteria for a line item. *** ** * ** *** **Enumerations** `PREDEFINED` :   Target audiences by criteria values that are defined in advance. `FREEFORM` :   Target audiences by adding criteria values when creating line items. <br /> |
| ### `status` | ` https://developers.google.com/ad-manager/api/reference/v202602/CustomTargetingService.CustomTargetingKey.Status ` Status of the `CustomTargetingKey`. This field is read-only. A key can be activated and deactivated by calling [CustomTargetingService.performCustomTargetingKeyAction](https://developers.google.com/ad-manager/api/reference/v202602/CustomTargetingService#performCustomTargetingKeyAction). *** ** * ** *** **Enumerations** `ACTIVE` :   The object is active. `INACTIVE` :   The object is no longer active. `UNKNOWN` :   The value returned if the actual value is not exposed by the requested API version. <br /> |
| ### `reportableType` | ` https://developers.google.com/ad-manager/api/reference/v202602/CustomTargetingService.ReportableType ` Reportable state of a {@CustomTargetingKey} as defined in [ReportableType](https://developers.google.com/ad-manager/api/reference/v202602/CustomTargetingService.ReportableType). *** ** * ** *** **Enumerations** `UNKNOWN` :   The value returned if the actual value is not exposed by the requested API version. `ON` :   Available for reporting in the Ad Manager query tool. `OFF` :   Not available for reporting in the Ad Manager query tool. `CUSTOM_DIMENSION` :   Custom dimension available for reporting in the AdManager query tool. <br /> |