type StringLengthError (v202411)Stay organized with collectionsSave and categorize content based on your preferences.
Page Summary
StringLengthError is an error type in the Ad Manager API v202411, specifically within the ContentService.
This error occurs when a string value does not meet the required length constraints.
It inherits properties from ApiError, including fieldPath, fieldPathElements, trigger, and errorString, which provide details about the error's cause and location.
StringLengthError has a specificreasonfield, which can indicate if the string isTOO_LONGorTOO_SHORT.
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 services and errors within the Google Ad Manager API (v202411). It details various services like AdRuleService, ContentService, ForecastService, and ReportService. It also lists an inheritance structure under the `ApiError`, including specific error types such as `StringLengthError`. StringLengthError explains errors that arise from strings not meeting length constraints, with possible reasons like TOO_LONG, TOO_SHORT, or UNKNOWN. Key fields of errors include fieldPath, trigger, and errorString.\n"]]