type CreativeAssetMacroError (v202508)

  • CreativeAssetMacroError is an error class that lists all errors associated with creative asset macros within the CreativeService, CreativeSetService, and LineItemCreativeAssociationService.

  • It inherits from the ApiError class, gaining 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.

Lists all errors associated with creative asset macros.


Namespace
https://www.google.com/apis/ads/publisher/v202508

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.