type StringFormatError (v202411)Stay organized with collectionsSave and categorize content based on your preferences.
Page Summary
The StringFormatError in the OrderService is used for reporting invalid content in input strings.
It includes inherited fields from ApiError such as fieldPath, fieldPathElements, trigger, and errorString to help identify the cause of the error.
The StringFormatError itself has a 'reason' field which can be UNKNOWN, ILLEGAL_CHARS, or INVALID_FORMAT, indicating why the string was considered 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 content details various services and errors within an ad management system. Services include managing ads, audiences, content, creatives, forecasts, inventory, and targeting. Error handling is categorized under `ApiError`, with specific errors like `StringFormatError` which arise from invalid string inputs. `StringFormatError` indicates issues like `ILLEGAL_CHARS` or `INVALID_FORMAT` and it contains `fieldPath`, `fieldPathElements`, `trigger`, `errorString` to help identify the invalid string.\n"]]