type FeatureError (v202411)

  • The FeatureError indicates errors related to feature management in Google Ad Manager.

  • It occurs when attempting to use a feature not enabled on the current network, triggering a MISSING_FEATURE error reason.

  • It provides information about the error through fields like fieldPath, trigger, and errorString.

  • FeatureError inherits from ApiError, containing additional error context.

  • The reason field clarifies the specific cause of the FeatureError, such as MISSING_FEATURE or UNKNOWN.

Errors related to feature management. If you attempt using a feature that is not available to the current network you'll receive a FeatureError with the missing feature as the trigger.


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.

FeatureError

reason

FeatureError.Reason


Enumerations
MISSING_FEATURE
A feature is being used that is not enabled on the current network.
UNKNOWN
The value returned if the actual value is not exposed by the requested API version.