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."],[],[],null,["**Service** \n**AudienceSegmentService** **Dependencies** \n[RuleBasedFirstPartyAudience...](/ad-manager/api/reference/v202502/AudienceSegmentService.RuleBasedFirstPartyAudienceSegment \"RuleBasedFirstPartyAudienceSegment\") \n▼\n**FirstPartyAudienceSegmentRule**\n\nRule of a [FirstPartyAudienceSegment](/ad-manager/api/reference/v202502/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/v202502`\n\n| Field ||\n|----------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `inventoryRule` | ` `[InventoryTargeting](/ad-manager/api/reference/v202502/AudienceSegmentService.InventoryTargeting)` ` Specifies the inventory (i.e. ad units and placements) that are part of the rule of a [FirstPartyAudienceSegment](/ad-manager/api/reference/v202502/AudienceSegmentService.FirstPartyAudienceSegment). This attribute is required. |\n| `customCriteriaRule` | ` `[CustomCriteriaSet](/ad-manager/api/reference/v202502/AudienceSegmentService.CustomCriteriaSet)` ` Specifies the collection of custom criteria that are part of the rule of a [FirstPartyAudienceSegment](/ad-manager/api/reference/v202502/AudienceSegmentService.FirstPartyAudienceSegment). Once the [FirstPartyAudienceSegment](/ad-manager/api/reference/v202502/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/v202502/AudienceSegmentService.CustomCriteriaSet) i.e. the `customTargeting` object can only contain a [CustomCriteriaSet.LogicalOperator.OR](/ad-manager/api/reference/v202502/AudienceSegmentService.CustomCriteriaSet.LogicalOperator#OR) of all its children. - The second level of [CustomCriteriaSet](/ad-manager/api/reference/v202502/AudienceSegmentService.CustomCriteriaSet) objects can only contain [CustomCriteriaSet.LogicalOperator.AND](/ad-manager/api/reference/v202502/AudienceSegmentService.CustomCriteriaSet.LogicalOperator#AND) of all their children. If a [CustomCriteria](/ad-manager/api/reference/v202502/AudienceSegmentService.CustomCriteria) is placed on this level, the server will wrap it in a [CustomCriteriaSet](/ad-manager/api/reference/v202502/AudienceSegmentService.CustomCriteriaSet). - The third level can only comprise of [CustomCriteria](/ad-manager/api/reference/v202502/AudienceSegmentService.CustomCriteria) objects. The resulting custom criteria rule would be of the form: \u003cbr /\u003e |"]]