type RequiredError (v202411)Stay organized with collectionsSave and categorize content based on your preferences.
AI-generated Key Takeaways
RequiredError indicates errors that occur when a required field is missing.
It inherits from ApiError and includes a reason field which is an enumeration indicating the specific reason for the requirement error, such asREQUIRED.
The ApiError parent class provides fields likefieldPath,fieldPathElements,trigger, anderrorStringto help identify the cause and details of the error.
The namespace for RequiredError and related services ishttps://www.google.com/apis/ads/publisher/v202411.
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 outlines various services within an ad management API, including AdRule, Adjustment, AdsTxt, AudienceSegment, and many others related to content, creatives, targeting, and reporting. It details potential errors, specifically `RequiredError`, triggered by missing fields. The `ApiError` lists fields such as `fieldPath`, `trigger`, and `errorString`. The `RequiredError` contains the field reason which explains why the error happened, in this case due to a field that was required but is missing.\n"]]