type StringLengthError (v202502)Stay organized with collectionsSave and categorize content based on your preferences.
Page Summary
The content describes the StringLengthError in the Ad Manager API, which occurs when strings violate length constraints.
The StringLengthError is part of a hierarchy of API errors, inheriting from ApiError.
Key fields for StringLengthError include fieldPath, fieldPathElements, trigger, errorString, and a reason indicating if the string was too long, too short, or unknown.
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 document outlines numerous services within an ad management system, including `AdRuleService`, `AdjustmentService`, and `AudienceSegmentService`, among many others. These manage various aspects such as content, creatives, forecasting, inventory, and user data. It also details the `StringLengthError`, part of the `ApiError` inheritance hierarchy. `StringLengthError` occurs when string fields violate length constraints and includes information like `fieldPath`, `trigger`, and the `reason`, such as `TOO_LONG` or `TOO_SHORT`.\n"]]