# type CustomCriteria (v202508)

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

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

*** ** * ** ***

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

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