type StringLengthError (v202411)Stay organized with collectionsSave and categorize content based on your preferences.
AI-generated Key Takeaways
StringLengthError indicates errors when strings don't meet required length constraints.
It includes inherited fields from ApiError such as fieldPath, fieldPathElements, trigger, and errorString to identify the cause and details of the error.
The StringLengthError specifically includes a reason field with possible values like TOO_LONG, TOO_SHORT, or UNKNOWN, indicating why the string length was invalid.
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."],[],["This document outlines various services within an ad management API, including AdRule, Adjustment, AdsTxt, AudienceSegment, and many others, totaling over 40. These services manage aspects like content, creatives, forecasting, inventory, and targeting. It also defines error handling, specifically `StringLengthError`, indicating issues with string length constraints. `StringLengthError` details include `reason` field and enumerations such as `TOO_LONG`, `TOO_SHORT`, and `UNKNOWN` for string length error classifications.\n"]]