type CustomCriteria (v202502)
Stay organized with collections
Save and categorize content based on your preferences.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-06 UTC.
[null,null,["Last updated 2025-08-06 UTC."],[],["The content outlines custom criteria targeting within various services, including AdRuleService, AdjustmentService, and others. CustomCriteria, inherited from CustomCriteriaNode and CustomCriteriaLeaf, targets custom keys of predefined or freeform types. It uses `keyId` (CustomTargetingKey ID), `valueIds` (CustomTargetingValue IDs), and a `operator` to define targeting. The available operations are \"IS\" and \"IS_NOT\". This process utilizes `CustomTargetingKey` and `CustomTargetingValue` objects. The namespace for this schema is `https://www.google.com/apis/ads/publisher/v202502`.\n"],null,["# type CustomCriteria (v202502)\n\n**Service** \n[AdRuleService](/ad-manager/api/reference/v202502/AdRuleService.CustomCriteria) [AdjustmentService](/ad-manager/api/reference/v202502/AdjustmentService.CustomCriteria) [AudienceSegmentService](/ad-manager/api/reference/v202502/AudienceSegmentService.CustomCriteria) [ForecastService](/ad-manager/api/reference/v202502/ForecastService.CustomCriteria) [LineItemService](/ad-manager/api/reference/v202502/LineItemService.CustomCriteria) [NativeStyleService](/ad-manager/api/reference/v202502/NativeStyleService.CustomCriteria) [ProposalLineItemService](/ad-manager/api/reference/v202502/ProposalLineItemService.CustomCriteria) **ProposalService** [PublisherQueryLanguageService](/ad-manager/api/reference/v202502/PublisherQueryLanguageService.CustomCriteria) [TargetingPresetService](/ad-manager/api/reference/v202502/TargetingPresetService.CustomCriteria) [YieldGroupService](/ad-manager/api/reference/v202502/YieldGroupService.CustomCriteria) **Inheritance** \n[CustomCriteriaNode](/ad-manager/api/reference/v202502/ProposalService.CustomCriteriaNode) \n▼\n[CustomCriteriaLeaf](/ad-manager/api/reference/v202502/ProposalService.CustomCriteriaLeaf) \n▼\n[AudienceSegmentCriteria](/ad-manager/api/reference/v202502/ProposalService.AudienceSegmentCriteria) [CmsMetadataCriteria](/ad-manager/api/reference/v202502/ProposalService.CmsMetadataCriteria) **CustomCriteria**\n\nA [CustomCriteria](/ad-manager/api/reference/v202502/ProposalService.CustomCriteria) object is used to perform custom criteria targeting on custom targeting\nkeys of type [CustomTargetingKey.Type.PREDEFINED](/ad-manager/api/reference/v202502/CustomTargetingService.CustomTargetingKey.Type#PREDEFINED) or [CustomTargetingKey.Type.FREEFORM](/ad-manager/api/reference/v202502/CustomTargetingService.CustomTargetingKey.Type#FREEFORM).\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202502`\n\n| Field ----- ||\n|----------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| **`CustomCriteriaNode` (inherited)** ||\n| **`CustomCriteriaLeaf` (inherited)** ||\n| **`CustomCriteria`** ||\n| ### `keyId` | ` `xsd:`long` The [CustomTargetingKey.id](/ad-manager/api/reference/v202502/CustomTargetingService.CustomTargetingKey#id) of the [CustomTargetingKey](/ad-manager/api/reference/v202502/CustomTargetingService.CustomTargetingKey) object that was created using [CustomTargetingService](/ad-manager/api/reference/v202502/CustomTargetingService). This attribute is required. |\n| ### `valueIds` | ` `xsd:`long[]` The ids of [CustomTargetingValue](/ad-manager/api/reference/v202502/CustomTargetingService.CustomTargetingValue) objects to target the custom targeting key with id [CustomCriteria.keyId](/ad-manager/api/reference/v202502/ProposalService.CustomCriteria#keyId). This attribute is required. |\n| ### `operator` | ` `[CustomCriteria.ComparisonOp...](/ad-manager/api/reference/v202502/ProposalService.CustomCriteria.ComparisonOperator \"CustomCriteria.ComparisonOperator\")` ` The comparison operator. This attribute is required. *** ** * ** *** **Enumerations** `IS` : `IS_NOT` : \u003cbr /\u003e |"]]