# type CustomCriteria (v202608)

**Service** [AdRuleService](https://developers.google.com/ad-manager/api/reference/v202608/AdRuleService.CustomCriteria.md.txt) [AdjustmentService](https://developers.google.com/ad-manager/api/reference/v202608/AdjustmentService.CustomCriteria.md.txt) [AudienceSegmentService](https://developers.google.com/ad-manager/api/reference/v202608/AudienceSegmentService.CustomCriteria.md.txt) [ForecastService](https://developers.google.com/ad-manager/api/reference/v202608/ForecastService.CustomCriteria.md.txt) [LineItemService](https://developers.google.com/ad-manager/api/reference/v202608/LineItemService.CustomCriteria.md.txt) **NativeStyleService** [ProposalLineItemService](https://developers.google.com/ad-manager/api/reference/v202608/ProposalLineItemService.CustomCriteria.md.txt) [ProposalService](https://developers.google.com/ad-manager/api/reference/v202608/ProposalService.CustomCriteria.md.txt) [PublisherQueryLanguageService](https://developers.google.com/ad-manager/api/reference/v202608/PublisherQueryLanguageService.CustomCriteria.md.txt) [TargetingPresetService](https://developers.google.com/ad-manager/api/reference/v202608/TargetingPresetService.CustomCriteria.md.txt) [YieldGroupService](https://developers.google.com/ad-manager/api/reference/v202608/YieldGroupService.CustomCriteria.md.txt) **Inheritance** [CustomCriteriaNode](https://developers.google.com/ad-manager/api/reference/v202608/NativeStyleService.CustomCriteriaNode.md.txt) ▼ [CustomCriteriaLeaf](https://developers.google.com/ad-manager/api/reference/v202608/NativeStyleService.CustomCriteriaLeaf.md.txt) ▼ [AudienceSegmentCriteria](https://developers.google.com/ad-manager/api/reference/v202608/NativeStyleService.AudienceSegmentCriteria.md.txt) [CmsMetadataCriteria](https://developers.google.com/ad-manager/api/reference/v202608/NativeStyleService.CmsMetadataCriteria.md.txt) **CustomCriteria**

A [CustomCriteria](https://developers.google.com/ad-manager/api/reference/v202608/NativeStyleService.CustomCriteria.md.txt) object is used to perform custom criteria targeting on custom targeting
keys of type [CustomTargetingKey.Type.PREDEFINED](https://developers.google.com/ad-manager/api/reference/v202608/CustomTargetingService.CustomTargetingKey.Type.md.txt#PREDEFINED) or [CustomTargetingKey.Type.FREEFORM](https://developers.google.com/ad-manager/api/reference/v202608/CustomTargetingService.CustomTargetingKey.Type.md.txt#FREEFORM).

*** ** * ** ***

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

| ## Field ||
|---|---|
| **`CustomCriteriaNode` (inherited)** ||
| **`CustomCriteriaLeaf` (inherited)** ||
| **`CustomCriteria`** ||
| ### `keyId` | ` xsd:long` The [CustomTargetingKey.id](https://developers.google.com/ad-manager/api/reference/v202608/CustomTargetingService.CustomTargetingKey.md.txt#id) of the [CustomTargetingKey](https://developers.google.com/ad-manager/api/reference/v202608/CustomTargetingService.CustomTargetingKey.md.txt) object that was created using [CustomTargetingService](https://developers.google.com/ad-manager/api/reference/v202608/CustomTargetingService.md.txt). This attribute is required. |
| ### `valueIds` | ` xsd:long[]` The ids of [CustomTargetingValue](https://developers.google.com/ad-manager/api/reference/v202608/CustomTargetingService.CustomTargetingValue.md.txt) objects to target the custom targeting key with id [CustomCriteria.keyId](https://developers.google.com/ad-manager/api/reference/v202608/NativeStyleService.CustomCriteria.md.txt#keyId). This attribute is required. |
| ### `operator` | ` CustomCriteria.ComparisonOp... ` The comparison operator. This attribute is required. *** ** * ** *** **Enumerations** `IS` : `IS_NOT` : <br /> |