# type CustomCriteria (v202602)

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

A [CustomCriteria](https://developers.google.com/ad-manager/api/reference/v202602/ProposalService.CustomCriteria) 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/v202602/CustomTargetingService.CustomTargetingKey.Type#PREDEFINED) or [CustomTargetingKey.Type.FREEFORM](https://developers.google.com/ad-manager/api/reference/v202602/CustomTargetingService.CustomTargetingKey.Type#FREEFORM).

*** ** * ** ***

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

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