enum InvalidColorError.Reason (v202411)
Stay organized with collections
Save and categorize content based on your preferences.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202411
Enumeration |
Description |
INVALID_FORMAT
|
The provided value is not a valid hexadecimal color.
|
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."],[[["\u003cp\u003eThe \u003ccode\u003eInvalidColorError\u003c/code\u003e object, within the \u003ccode\u003eInventoryService\u003c/code\u003e, indicates an issue with a color value provided to the Ad Manager API.\u003c/p\u003e\n"],["\u003cp\u003eThis error arises when the color format is incorrect (not a valid hexadecimal color) or if the reason for the error is unknown in the current API version.\u003c/p\u003e\n"],["\u003cp\u003eThe error is part of the namespace \u003ccode\u003ehttps://www.google.com/apis/ads/publisher/v202411\u003c/code\u003e and has two potential reason codes: \u003ccode\u003eINVALID_FORMAT\u003c/code\u003e and \u003ccode\u003eUNKNOWN\u003c/code\u003e.\u003c/p\u003e\n"]]],["The `InventoryService` uses `InvalidColorError` to handle color-related issues. This error has a `Reason` field with two possible values: `INVALID_FORMAT`, indicating an invalid hexadecimal color format, and `UNKNOWN`, representing a value not exposed by the API version. These values are part of the `https://www.google.com/apis/ads/publisher/v202411` namespace.\n"],null,["# enum InvalidColorError.Reason (v202411)\n\n**Service** \n**InventoryService** **Dependencies** \n[InvalidColorError](/ad-manager/api/reference/v202411/InventoryService.InvalidColorError) \n▼\n**InvalidColorError.Reason**\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202411`\n\n| Enumeration | Description |\n|------------------|-------------------------------------------------------------------------------------|\n| `INVALID_FORMAT` | The provided value is not a valid hexadecimal color. |\n| `UNKNOWN` | The value returned if the actual value is not exposed by the requested API version. |"]]