abstract type CustomCriteriaNode (v202411)
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."],[[["\u003cp\u003eA \u003ccode\u003eCustomCriteriaNode\u003c/code\u003e represents a node within the custom targeting tree in Google Ad Manager.\u003c/p\u003e\n"],["\u003cp\u003eIt can be either a \u003ccode\u003eCustomCriteriaSet\u003c/code\u003e (non-leaf, representing a group) or a \u003ccode\u003eCustomCriteria\u003c/code\u003e (leaf, representing a single criterion).\u003c/p\u003e\n"],["\u003cp\u003eThe structure and rules of the custom targeting tree are governed by the \u003ccode\u003eTargeting.customTargeting\u003c/code\u003e field.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCustomCriteriaNode\u003c/code\u003e objects reside within the \u003ccode\u003ehttps://www.google.com/apis/ads/publisher/v202411\u003c/code\u003e namespace.\u003c/p\u003e\n"],["\u003cp\u003eThis object is used by various services like AdRuleService, AdjustmentService and others to manage custom targeting.\u003c/p\u003e\n"]]],["The core content outlines the structure of custom targeting within an ad management system. It details the use of `CustomCriteriaNode`, which can be either a `CustomCriteriaSet` (grouping node) or a `CustomCriteriaLeaf` (individual criterion). These nodes form a tree structure governing ad targeting, following rules defined in `Targeting.customTargeting`. Several services, including `AdRuleService`, `ForecastService`, and `NativeStyleService`, utilize this node type, which is part of the `v202411` namespace.\n"],null,["# abstract type CustomCriteriaNode (v202411)\n\n**Service** \n[AdRuleService](/ad-manager/api/reference/v202411/AdRuleService.CustomCriteriaNode) [AdjustmentService](/ad-manager/api/reference/v202411/AdjustmentService.CustomCriteriaNode) [AudienceSegmentService](/ad-manager/api/reference/v202411/AudienceSegmentService.CustomCriteriaNode) [ForecastService](/ad-manager/api/reference/v202411/ForecastService.CustomCriteriaNode) [LineItemService](/ad-manager/api/reference/v202411/LineItemService.CustomCriteriaNode) **NativeStyleService** [ProposalLineItemService](/ad-manager/api/reference/v202411/ProposalLineItemService.CustomCriteriaNode) [ProposalService](/ad-manager/api/reference/v202411/ProposalService.CustomCriteriaNode) [PublisherQueryLanguageService](/ad-manager/api/reference/v202411/PublisherQueryLanguageService.CustomCriteriaNode) [TargetingPresetService](/ad-manager/api/reference/v202411/TargetingPresetService.CustomCriteriaNode) [YieldGroupService](/ad-manager/api/reference/v202411/YieldGroupService.CustomCriteriaNode) **Dependencies** \n[CustomCriteriaSet](/ad-manager/api/reference/v202411/NativeStyleService.CustomCriteriaSet) \n▼\n**CustomCriteriaNode** **Inheritance** \n**CustomCriteriaNode** \n▼\n[CustomCriteriaLeaf](/ad-manager/api/reference/v202411/NativeStyleService.CustomCriteriaLeaf) [CustomCriteriaSet](/ad-manager/api/reference/v202411/NativeStyleService.CustomCriteriaSet)\n\nA [CustomCriteriaNode](/ad-manager/api/reference/v202411/NativeStyleService.CustomCriteriaNode) is a node in the custom targeting tree. A custom criteria node can\neither be a [CustomCriteriaSet](/ad-manager/api/reference/v202411/NativeStyleService.CustomCriteriaSet) (a non-leaf node) or a [CustomCriteria](/ad-manager/api/reference/v202411/NativeStyleService.CustomCriteria) (a leaf\nnode). The custom criteria targeting tree is subject to the rules defined on [Targeting.customTargeting](/ad-manager/api/reference/v202411/NativeStyleService.Targeting#customTargeting).\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202411`\n\n| Field ----- ||\n|---|---|"]]