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 defines the `AssetError.Reason` enumeration within the `v202502` namespace. It outlines potential errors related to assets, including non-unique names, oversized or lengthy file names, missing required elements like client code, height, width, or format in dynamic allocation code snippets, invalid parameter values or asset Ids. The `UNKNOWN` value is used if the error isn't recognized in the API version. These errors relate to the CreativeService and others.\n"],null,["# enum AssetError.Reason (v202502)\n\n**Service** \n[CreativeService](/ad-manager/api/reference/v202502/CreativeService.AssetError.Reason) **CreativeSetService** [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](/ad-manager/api/reference/v202502/OrderService.AssetError.Reason) **Dependencies** \n[AssetError](/ad-manager/api/reference/v202502/CreativeSetService.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. |"]]