type PrecisionError (v202411)

  • PrecisionError is a type of ApiError that occurs when a numerical value does not adhere to the required precision.

  • The reason field identifies the specific type of precision error encountered, primarily indicating if the least significant digits are not zero (WRONG_PRECISION).

  • This error is often associated with services like ForecastService, LineItemService, and OrderService, impacting operations involving numerical data like pricing or forecasting.

  • PrecisionError inherits properties from ApiError, providing detailed context such as the field path (fieldPath, fieldPathElements), trigger data (trigger), and a descriptive error message (errorString).

  • Developers should consult the documentation for each service to understand the precision requirements for numerical fields to avoid these errors.

List all errors associated with number precisions.


Namespace
https://www.google.com/apis/ads/publisher/v202411

Field

ApiError (inherited)

fieldPath

xsd:string

The OGNL field path to identify cause of error.

fieldPathElements

FieldPathElement[]

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.

PrecisionError

reason

PrecisionError.Reason


Enumerations
WRONG_PRECISION
The lowest N digits of the number must be zero.
UNKNOWN
The value returned if the actual value is not exposed by the requested API version.