type TimeZoneError (v202411)

  • The ForecastService provides tools for forecasting ad inventory availability and performance.

  • TimeZoneError is a specific type of error related to invalid or incorrectly formatted timezone IDs within the ForecastService.

  • TimeZoneError can occur due to reasons such as using an unsupported timezone ID or providing it in an incorrect format.

  • The reason field in TimeZoneError provides more details about the specific cause of the error, including INVALID_TIMEZONE_ID and TIMEZONE_ID_IN_WRONG_FORMAT.

  • Developers should ensure they use valid and correctly formatted timezone IDs (e.g., "America/Los_Angeles") when working with the ForecastService to avoid TimeZoneErrors.

Errors related to timezones.


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.

TimeZoneError

reason

TimeZoneError.Reason


Enumerations
INVALID_TIMEZONE_ID
Indicates that the timezone ID provided is not supported.
TIMEZONE_ID_IN_WRONG_FORMAT
Indicates that the timezone ID provided is in the wrong format. The timezone ID must be in tz database format (e.g. "America/Los_Angeles").
UNKNOWN
The value returned if the actual value is not exposed by the requested API version.