enum AssetError.Reason (v202502)
Stay organized with collections
Save and categorize content based on your preferences.
The reasons for the target error.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202502
Enumeration |
Description |
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.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-06 UTC.
[null,null,["Last updated 2025-08-06 UTC."],[],["The content details the `AssetError.Reason` enumeration, used across multiple services like `CreativeService`, `CreativeSetService`, `ForecastService`, `LineItem` related services, and `OrderService`. It lists various reasons for asset errors, including `NON_UNIQUE_NAME`, `FILE_NAME_TOO_LONG`, `FILE_SIZE_TOO_LARGE`, missing or invalid dynamic allocation parameters (`client`, `height`, `width`, `format`), `INVALID_CODE_SNIPPET_PARAMETER_VALUE`, `INVALID_ASSET_ID`, and an `UNKNOWN` catch-all. These represent possible errors when using these services.\n"],null,["# enum AssetError.Reason (v202502)\n\n**Service** \n[CreativeService](/ad-manager/api/reference/v202502/CreativeService.AssetError.Reason) [CreativeSetService](/ad-manager/api/reference/v202502/CreativeSetService.AssetError.Reason) **ForecastService** [LineItemCreativeAssociationService](/ad-manager/api/reference/v202502/LineItemCreativeAssociationService.AssetError.Reason) [LineItemService](/ad-manager/api/reference/v202502/LineItemService.AssetError.Reason) [LineItemTemplateService](/ad-manager/api/reference/v202502/LineItemTemplateService.AssetError.Reason) [OrderService](/ad-manager/api/reference/v202502/OrderService.AssetError.Reason) **Dependencies** \n[AssetError](/ad-manager/api/reference/v202502/ForecastService.AssetError) \n▼\n**AssetError.Reason**\n\nThe reasons for the target error.\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202502`\n\n| Enumeration | Description |\n|----------------------------------------------|-------------------------------------------------------------------------------------|\n| `NON_UNIQUE_NAME` | An asset name must be unique across advertiser. |\n| `FILE_NAME_TOO_LONG` | The file name is too long. |\n| `FILE_SIZE_TOO_LARGE` | The file size is too large. |\n| `MISSING_REQUIRED_DYNAMIC_ALLOCATION_CLIENT` | Required client code is not present in the code snippet. |\n| `MISSING_REQUIRED_DYNAMIC_ALLOCATION_HEIGHT` | Required height is not present in the code snippet. |\n| `MISSING_REQUIRED_DYNAMIC_ALLOCATION_WIDTH` | Required width is not present in the code snippet. |\n| `MISSING_REQUIRED_DYNAMIC_ALLOCATION_FORMAT` | Required format is not present in the mobile code snippet. |\n| `INVALID_CODE_SNIPPET_PARAMETER_VALUE` | The parameter value in the code snippet is invalid. |\n| `INVALID_ASSET_ID` | Invalid asset Id. |\n| `UNKNOWN` | The value returned if the actual value is not exposed by the requested API version. |"]]