type AudienceSegmentError (v202411)
Stay organized with collections
Save and categorize content based on your preferences.
AI-generated Key Takeaways
AudienceSegmentError is used to indicate errors related to audience segment requests within various services like AudienceSegmentService, ForecastService, and LineItemService.
This error inherits properties from ApiError such as fieldPath, fieldPathElements, trigger, and errorString.
AudienceSegmentError includes a specific reason field with various enumeration values explaining different causes for the error, such as invalid names, rules, values, or segment IDs.
The possible reasons cover a wide range of issues including unsupported segment types, invalid rule complexity, and policy violations.
A parsed copy of the field path. For example, the field path "operations[1].operand"
corresponds to this list: {FieldPathElement(field = "operations", index = 1),
FieldPathElement(field = "operand", index = null)}.
trigger
xsd:string
The data that caused the error.
errorString
xsd:string
A simple string representation of the error and reason.
[[["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."],[],["The content outlines the `AudienceSegmentError` within the context of various services like `AudienceSegmentService`, `ForecastService`, and `LineItemService`. It details specific errors that can occur during audience segment related operations, categorized by `AudienceSegmentError.Reason`. These errors include issues with segment creation, naming, rules, and validation, such as `INVALID_AUDIENCE_SEGMENT_NAME`, `AUDIENCE_SEGMENT_RULE_TOO_LONG`, `INVALID_AUDIENCE_SEGMENT_RECENCY`, and policy violations like `SEGMENT_VIOLATED_POLICY`. It also explains the `ApiError` and its fields for error identification.\n"]]