Specifies the collection of custom criteria that are part of the
rule of a FirstPartyAudienceSegment.
Once the FirstPartyAudienceSegment is updated or modified with custom
criteria, the server may return a normalized, but equivalent
representation of the custom criteria rule.
customCriteriaRulewill have
up to three levels including itself.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-06 UTC."],[[["\u003cp\u003eFirstPartyAudienceSegmentRule defines the criteria for users to be included in a FirstPartyAudienceSegment.\u003c/p\u003e\n"],["\u003cp\u003eIt uses \u003ccode\u003einventoryRule\u003c/code\u003e for specifying inventory like ad units and placements within the segment rule.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ecustomCriteriaRule\u003c/code\u003e allows for defining custom criteria sets to further refine user eligibility based on custom targeting.\u003c/p\u003e\n"],["\u003cp\u003eThe custom criteria rule structure is hierarchical, with specific logical operators (OR, AND) at different levels to combine criteria.\u003c/p\u003e\n"]]],[],null,["# type FirstPartyAudienceSegmentRule (v202411)\n\n**Service** \n**AudienceSegmentService** **Dependencies** \n[RuleBasedFirstPartyAudience...](/ad-manager/api/reference/v202411/AudienceSegmentService.RuleBasedFirstPartyAudienceSegment \"RuleBasedFirstPartyAudienceSegment\") \n▼\n**FirstPartyAudienceSegmentRule**\n\nRule of a [FirstPartyAudienceSegment](/ad-manager/api/reference/v202411/AudienceSegmentService.FirstPartyAudienceSegment) that defines user's eligibility criteria to be part\nof a segment.\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202411`\n\n| Field ----- ||\n|--------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ### `inventoryRule` | ` `[InventoryTargeting](/ad-manager/api/reference/v202411/AudienceSegmentService.InventoryTargeting)` ` Specifies the inventory (i.e. ad units and placements) that are part of the rule of a [FirstPartyAudienceSegment](/ad-manager/api/reference/v202411/AudienceSegmentService.FirstPartyAudienceSegment). This attribute is required. |\n| ### `customCriteriaRule` | ` `[CustomCriteriaSet](/ad-manager/api/reference/v202411/AudienceSegmentService.CustomCriteriaSet)` ` Specifies the collection of custom criteria that are part of the rule of a [FirstPartyAudienceSegment](/ad-manager/api/reference/v202411/AudienceSegmentService.FirstPartyAudienceSegment). Once the [FirstPartyAudienceSegment](/ad-manager/api/reference/v202411/AudienceSegmentService.FirstPartyAudienceSegment) is updated or modified with custom criteria, the server may return a normalized, but equivalent representation of the custom criteria rule. `customCriteriaRule`will have up to three levels including itself. - The top level [CustomCriteriaSet](/ad-manager/api/reference/v202411/AudienceSegmentService.CustomCriteriaSet) i.e. the `customTargeting` object can only contain a [CustomCriteriaSet.LogicalOperator.OR](/ad-manager/api/reference/v202411/AudienceSegmentService.CustomCriteriaSet.LogicalOperator#OR) of all its children. - The second level of [CustomCriteriaSet](/ad-manager/api/reference/v202411/AudienceSegmentService.CustomCriteriaSet) objects can only contain [CustomCriteriaSet.LogicalOperator.AND](/ad-manager/api/reference/v202411/AudienceSegmentService.CustomCriteriaSet.LogicalOperator#AND) of all their children. If a [CustomCriteria](/ad-manager/api/reference/v202411/AudienceSegmentService.CustomCriteria) is placed on this level, the server will wrap it in a [CustomCriteriaSet](/ad-manager/api/reference/v202411/AudienceSegmentService.CustomCriteriaSet). - The third level can only comprise of [CustomCriteria](/ad-manager/api/reference/v202411/AudienceSegmentService.CustomCriteria) objects. The resulting custom criteria rule would be of the form: \u003cbr /\u003e |"]]