[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-06 UTC."],[],["The `NativeStyleError.Reason` enumeration within the `NativeStyleService` defines potential errors when working with native styles. Key actions include creating native styles under active creative templates, utilizing only exact match types for custom targeting, including only inventory units, and ensuring a non-null status. Native styles must have an HTML snippet, can have at most 20 custom targeting key-value pairs, and must reference valid macros and placeholders. Errors such as invalid inventory or targeting types can also be encountered.\n"],null,["# enum NativeStyleError.Reason (v202502)\n\n**Service** \n**NativeStyleService** **Dependencies** \n[NativeStyleError](/ad-manager/api/reference/v202502/NativeStyleService.NativeStyleError) \n▼\n**NativeStyleError.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| `ACTIVE_CREATIVE_TEMPLATE_REQUIRED` | Native styles can only be created under active creative templates. |\n| `INVALID_CUSTOM_TARGETING_MATCH_TYPE` | Targeting expressions on the NativeStyle can only have custom criteria targeting with [CustomTargetingValue.MatchType.EXACT](/ad-manager/api/reference/v202502/CustomTargetingService.CustomTargetingValue.MatchType#EXACT). |\n| `INVALID_INVENTORY_TARTGETING_TYPE` | Native styles only allows inclusion of inventory units. |\n| `INVALID_STATUS` | The status of a native style cannot be null. |\n| `INVALID_TARGETING_TYPE` | Targeting expressions on the native style can only have inventory targeting and/or custom targeting. |\n| `NATIVE_CREATIVE_TEMPLATE_REQUIRED` | Native styles can only be created under native creative templates. |\n| `TOO_MANY_CUSTOM_TARGETING_KEY_VALUES` | Targeting expressions on native styles can have a maximum of 20 key-value pairs. |\n| `UNIQUE_SNIPPET_REQUIRED` | Native styles must have an HTML snippet. |\n| `UNRECOGNIZED_MACRO` | The macro referenced in the snippet is not valid. |\n| `UNRECOGNIZED_PLACEHOLDER` | The snippet of the native style contains a placeholder which is not defined as a variable on the creative template of this native style. |\n| `UNKNOWN` | The value returned if the actual value is not exposed by the requested API version. |"]]