enum AdRuleTargetingError.Reason (v202502)
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/v202502
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."],[],["The content details `AdRuleTargetingError.Reason`, an enumeration within the `AdRuleService` for Ad Manager API v202502. It outlines potential errors when targeting ad rules. Key information includes reasons: `VIDEO_POSITION_TARGETING_NOT_ALLOWED` for when video positions cannot be targeted, `EXACT_CUSTOM_VALUE_TARGETING_REQUIRED` indicating a COPPA compliance requirement for precise custom value targeting in session ad rules, and `UNKNOWN` for unexposed API version values. The namespace for these definitions is also provided.\n"],null,["# enum AdRuleTargetingError.Reason (v202502)\n\n**Service** \n**AdRuleService** **Dependencies** \n[AdRuleTargetingError](/ad-manager/api/reference/v202502/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/v202502`\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. |"]]