type CreativeAssetMacroError (v202411)

  • CreativeAssetMacroError is an error associated with creative asset macros.

  • It inherits from ApiError and includes fields like fieldPath, trigger, and errorString.

  • Specific to CreativeAssetMacroError is the 'reason' field, which provides an enum indicating the error cause, such as INVALID_MACRO_NAME or UNKNOWN.

  • The INVALID_MACRO_NAME reason indicates macro names must start with an alpha character, contain only alphanumeric characters and underscores, and be between 1 and 64 characters.

Lists all errors associated with creative asset macros.


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.

CreativeAssetMacroError

reason

CreativeAssetMacroError.Reason

The error reason represented by an enum.


Enumerations
INVALID_MACRO_NAME
Invalid macro name specified. Macro names must start with an alpha character and consist only of alpha-numeric characters and underscores and be between 1 and 64 characters.
UNKNOWN
The value returned if the actual value is not exposed by the requested API version.