type StringLengthError (v202502)Stay organized with collectionsSave and categorize content based on your preferences.
Page Summary
StringLengthError is an error type in the OrderService that occurs when strings do not meet specified length constraints.
This error inherits from ApiError and includes details like the field path, the data that triggered the error, and a string representation of the error.
The specific reason for the StringLengthError, such as TOO_LONG or TOO_SHORT, is provided by the Reason enumeration.
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 and errors within the Google Ad Manager API (v202502). Key services include managing ads, content, creatives, forecasts, inventory, orders, proposals, and reports. It lists specific services like `AdRuleService`, `OrderService`, and `ReportService`, among others. The document also details an extensive list of inherited error types, such as `ApiError` and `StringLengthError`, for handling issues like data format and field constraints, including reasons like `TOO_LONG` and `TOO_SHORT`.\n"]]