AI-generated Key Takeaways
-
OrderError lists all errors associated with orders within the specified API namespace.
-
OrderError includes fields inherited from ApiError such as fieldPath, fieldPathElements, trigger, and errorString, which help identify the cause and details of an error.
-
The OrderError itself contains a 'reason' field, represented by an enum, detailing specific error conditions such as updating canceled or pending orders, invalid user assignments, or setting programmatic fields on non-programmatic orders.
-
The enumerations for OrderError.Reason provide specific details for various errors like
UPDATE_CANCELED_ORDER_NOT_ALLOWED,PRIMARY_USER_REQUIRED, andINVALID_FIELDS_SET_FOR_NON_PROGRAMMATIC_ORDER. -
An
UNKNOWNreason is returned if the actual error value is not exposed by the requested API version.
Lists all errors associated with orders.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202411
Field |
|
|---|---|
ApiError (inherited)
|
|
|
The OGNL field path to identify cause of error. |
|
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)}. |
|
The data that caused the error. |
|
A simple string representation of the error and reason. |
OrderError
|
|
|
The error reason represented by an enum. Enumerations
|