enum AdRuleTargetingError.Reason (v202408)
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/v202408
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\u003eThe \u003ccode\u003eAdRuleTargetingError.Reason\u003c/code\u003e enumeration describes potential errors when targeting ad rules.\u003c/p\u003e\n"],["\u003cp\u003eTargeting video positions with ad rules is not allowed.\u003c/p\u003e\n"],["\u003cp\u003eDue to COPPA regulations, custom targeting for session ad rules must use exact custom value matching.\u003c/p\u003e\n"],["\u003cp\u003eAn \u003ccode\u003eUNKNOWN\u003c/code\u003e reason is returned if the error reason is not defined within the API version being used.\u003c/p\u003e\n"]]],["The `AdRuleTargetingError.Reason` enumeration defines potential errors when targeting ad rules within the `AdRuleService`. Key error reasons include: `VIDEO_POSITION_TARGETING_NOT_ALLOWED`, indicating that video positions cannot be targeted; `EXACT_CUSTOM_VALUE_TARGETING_REQUIRED`, highlighting the need for exact custom value matching for session ad rules due to COPPA requirements; and `UNKNOWN`, used when the error value is not accessible in the current API version. These errors provide insights into the constraints and requirements when setting up ad rule targeting.\n"],null,["# enum AdRuleTargetingError.Reason (v202408)\n\n**Service** \n**AdRuleService** **Dependencies** \n[AdRuleTargetingError](/ad-manager/api/reference/v202408/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/v202408`\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. |"]]