type CreativeTemplateOperationError (v202411)

  • CreativeTemplateOperationError signifies errors encountered during operations on creative templates.

  • It inherits properties like fieldPath, trigger, and errorString from the ApiError class for detailed error information.

  • This error includes a 'reason' field, indicating the cause, such as user permission issues or invalid operation attempts, represented by the CreativeTemplateOperationError.Reason enum.

  • Potential reasons include NOT_ALLOWED (insufficient user permissions), NOT_APPLICABLE (invalid operation for the template's current state), and UNKNOWN (reason not exposed in the API version).

  • Developers can use these properties to understand and address errors related to creative template operations in their applications.

An error that can occur while performing an operation on a creative template.


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.

CreativeTemplateOperationError

reason

CreativeTemplateOperationEr...

The error reason represented by an enum.


Enumerations
NOT_ALLOWED
The current user is not allowed to modify this creative template.
NOT_APPLICABLE
The operation is not applicable to the current state. (e.g. Trying to activate an active creative template)
UNKNOWN
The value returned if the actual value is not exposed by the requested API version.