enum AdRuleTargetingError.Reason (v202411)
Stay organized with collections
Save and categorize content based on your preferences.
Describes reasons for AdRuleTargetingError ad rule targeting errors
.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202411
Enumeration |
Description |
VIDEO_POSITION_TARGETING_NOT_ALLOWED
|
Cannot target video positions.
|
EXACT_CUSTOM_VALUE_TARGETING_REQUIRED
|
As part of COPPA requirements, custom targeting for session ad rules requires exact custom
value matching.
|
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\u003eAdRuleTargetingError.Reason\u003c/code\u003e outlines the potential errors encountered when targeting ad rules within Google Ad Manager.\u003c/p\u003e\n"],["\u003cp\u003eThis enumeration includes reasons like restricted video position targeting and mandatory exact custom value targeting for COPPA compliance.\u003c/p\u003e\n"],["\u003cp\u003eIt is part of the AdRuleService and uses the namespace \u003ccode\u003ehttps://www.google.com/apis/ads/publisher/v202411\u003c/code\u003e.\u003c/p\u003e\n"]]],["The `AdRuleTargetingError.Reason` enumeration defines potential errors when targeting ad rules within the `AdRuleService`. Key information includes: `VIDEO_POSITION_TARGETING_NOT_ALLOWED` indicates that targeting video positions is prohibited. `EXACT_CUSTOM_VALUE_TARGETING_REQUIRED` means session ad rules need precise custom value matching due to COPPA. `UNKNOWN` represents cases where the actual error reason is not available in the current API version. These are the possible error types associated with targeting issues.\n"],null,["# enum AdRuleTargetingError.Reason (v202411)\n\n**Service** \n**AdRuleService** **Dependencies** \n[AdRuleTargetingError](/ad-manager/api/reference/v202411/AdRuleService.AdRuleTargetingError) \n▼\n**AdRuleTargetingError.Reason**\n\nDescribes reasons for `AdRuleTargetingError ad rule targeting errors`.\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202411`\n\n| Enumeration | Description |\n|-----------------------------------------|------------------------------------------------------------------------------------------------------------|\n| `VIDEO_POSITION_TARGETING_NOT_ALLOWED` | Cannot target video positions. |\n| `EXACT_CUSTOM_VALUE_TARGETING_REQUIRED` | As part of COPPA requirements, custom targeting for session ad rules requires exact custom value matching. |\n| `UNKNOWN` | The value returned if the actual value is not exposed by the requested API version. |"]]