enum CreativeAssetMacroError.Reason (v202411)
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/v202411
Enumeration |
Description |
INVALID_MACRO_NAME
|
Invalid macro name specified. Macro names must start with an alpha
character and consist only of alpha-numeric characters and underscores
and be between 1 and 64 characters.
|
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\u003e\u003ccode\u003eCreativeAssetMacroError.Reason\u003c/code\u003e outlines the potential errors encountered when using creative asset macros.\u003c/p\u003e\n"],["\u003cp\u003eThe errors include issues like invalid macro names (e.g., incorrect format) and unknown errors that the API version might not reveal.\u003c/p\u003e\n"],["\u003cp\u003eMacro names should adhere to specific rules: start with a letter, contain only alphanumeric characters and underscores, and have a length between 1 and 64 characters.\u003c/p\u003e\n"]]],["The core content details the `CreativeAssetMacroError.Reason` enumeration, found within the `CreativeService` and its dependencies, `CreativeSetService` and `LineItemCreativeAssociationService`. It defines the possible error reasons related to macros. Two specific reasons are outlined: `INVALID_MACRO_NAME`, which occurs when a macro name doesn't follow the naming rules (starts with alpha, alpha-numeric, underscores, 1-64 characters), and `UNKNOWN` for values not exposed by the API version. The namespace for this is `https://www.google.com/apis/ads/publisher/v202411`.\n"],null,["# enum CreativeAssetMacroError.Reason (v202411)\n\n**Service** \n**CreativeService** [CreativeSetService](/ad-manager/api/reference/v202411/CreativeSetService.CreativeAssetMacroError.Reason) [LineItemCreativeAssociationService](/ad-manager/api/reference/v202411/LineItemCreativeAssociationService.CreativeAssetMacroError.Reason) **Dependencies** \n[CreativeAssetMacroError](/ad-manager/api/reference/v202411/CreativeService.CreativeAssetMacroError) \n▼\n**CreativeAssetMacroError.Reason**\n\nThe reasons for the target error.\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202411`\n\n| Enumeration | Description |\n|----------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `INVALID_MACRO_NAME` | Invalid macro name specified. Macro names must start with an alpha character and consist only of alpha-numeric characters and underscores and be between 1 and 64 characters. |\n| `UNKNOWN` | The value returned if the actual value is not exposed by the requested API version. |"]]