Page Summary
-
AssetError lists all errors associated with assets across various services like CreativeService, ForecastService, and LineItemService.
-
AssetError inherits properties from ApiError including fieldPath, fieldPathElements, trigger, and errorString.
-
AssetError specifically includes a
reasonfield which provides an enum value explaining the specific cause of the error, such asNON_UNIQUE_NAMEorFILE_SIZE_TOO_LARGE. -
The possible reasons for an AssetError are listed as enumerations with descriptions, covering issues from file names and sizes to missing dynamic allocation parameters and invalid code snippet values.
-
The namespace for these errors is
https://www.google.com/apis/ads/publisher/v202505.
Lists all errors associated with assets.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202505
Field
ApiError
(inherited) fieldPath
xsd:
string
The OGNL field path to identify cause of error.
fieldPathElements
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.
AssetError
reason
The error reason represented by an enum.
Enumerations
-
NON_UNIQUE_NAME - An asset name must be unique across advertiser.
-
FILE_NAME_TOO_LONG - The file name is too long.
-
FILE_SIZE_TOO_LARGE - The file size is too large.
-
MISSING_REQUIRED_DYNAMIC_ALLOCATION_CLIENT - Required client code is not present in the code snippet.
-
MISSING_REQUIRED_DYNAMIC_ALLOCATION_HEIGHT - Required height is not present in the code snippet.
-
MISSING_REQUIRED_DYNAMIC_ALLOCATION_WIDTH - Required width is not present in the code snippet.
-
MISSING_REQUIRED_DYNAMIC_ALLOCATION_FORMAT - Required format is not present in the mobile code snippet.
-
INVALID_CODE_SNIPPET_PARAMETER_VALUE - The parameter value in the code snippet is invalid.
-
INVALID_ASSET_ID - Invalid asset Id.
-
UNKNOWN - The value returned if the actual value is not exposed by the requested API version.

