type FeatureError (v202411)

  • This documentation details the FeatureError in Google Ad Manager's ForecastService, indicating an issue with feature availability.

  • FeatureError occurs when using a feature not enabled for the current network, often due to it being a premium feature or not yet rolled out.

  • It's identified by the reason field which specifies the cause, like MISSING_FEATURE, meaning the requested feature isn't activated.

  • The namespace for this error is https://www.google.com/apis/ads/publisher/v202411, which is useful for programmatic access and debugging.

  • Developers can use the fieldPath, fieldPathElements, trigger, and errorString fields, inherited from ApiError, to understand the specific context and cause of the error.

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.