type CreativeAssetMacroError (v202411)

  • The CreativeAssetMacroError lists all errors associated with creative asset macros within the CreativeService.

  • This error type inherits from ApiError and includes fields like fieldPath, fieldPathElements, trigger, and errorString.

  • The CreativeAssetMacroError specifically includes a reason field which is an enum indicating the cause of the error, such as an invalid macro name.

  • Invalid macro names must start with an alpha character, contain only alpha-numeric characters and underscores, and be between 1 and 64 characters long.

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.