type AudienceSegmentError (v202502)
Stay organized with collections
Save and categorize content based on your preferences.
AI-generated Key Takeaways
AudienceSegmentError represents errors that can occur on audience segment related requests.
This error type inherits from ApiError and includes fields like fieldPath, trigger, and errorString.
Specific reasons for an AudienceSegmentError are enumerated, covering various issues with audience segment creation, names, rules, and associated values.
Issues such as invalid or duplicate segment names, invalid rules or their components (ad units, custom criteria), and unsupported segment types can trigger this error.
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 core content outlines various services and errors within an ad management API, primarily focusing on `AudienceSegmentError`. Services include `AudienceSegmentService`, `ForecastService`, `LineItemService`, and others. Errors are structured through inheritance from `ApiError`, with `AudienceSegmentError` detailed to include reasons like unsupported first-party segments, invalid rules, duplicate names, or policy violations. Specific errors address invalid or missing IDs, rule formatting, membership details, nested segment restrictions, and general data validation problems.\n"]]