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 document defines `AssetError.Reason`, outlining potential errors within various services like Creative, CreativeSet, Forecast, and Order services. These errors, detailed in an enumeration, include non-unique asset names, excessively long file names, and oversized files. It also covers issues with dynamic allocation, such as missing client codes, heights, widths, and formats, alongside invalid code snippet parameter values and asset IDs. The `UNKNOWN` value signals an unexposed error type.\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](/ad-manager/api/reference/v202502/ForecastService.AssetError.Reason) [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** **Dependencies** \n[AssetError](/ad-manager/api/reference/v202502/OrderService.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. |"]]