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

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

*** ** * ** ***

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

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