enum AdRuleSlotBehavior (v202502)
Stay organized with collections
Save and categorize content based on your preferences.
The types of behaviors for ads within a ad rule slot.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202502
Enumeration |
Description |
ALWAYS_SHOW
|
This ad rule always includes this slot's ads.
|
NEVER_SHOW
|
This ad rule never includes this slot's ads.
|
DEFER
|
Defer to lower priority rules. This ad rule doesn't specify guidelines for this slot's ads.
|
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 `AdRuleSlotBehavior` defines how ads within an `AdRuleSlot` are handled. Key behaviors include `ALWAYS_SHOW`, ensuring ads are always included; `NEVER_SHOW`, excluding ads; and `DEFER`, which passes the decision to lower-priority rules. An `UNKNOWN` value indicates the actual behavior isn't available in the current API version. The AdRuleService uses the BaseAdRuleSlot and AdRuleSlotBehavior within the namespace of https://www.google.com/apis/ads/publisher/v202502.\n"],null,["# enum AdRuleSlotBehavior (v202502)\n\n**Service** \n**AdRuleService** **Dependencies** \n[BaseAdRuleSlot](/ad-manager/api/reference/v202502/AdRuleService.BaseAdRuleSlot) \n▼\n**AdRuleSlotBehavior**\n\nThe types of behaviors for ads within a [ad rule slot](/ad-manager/api/reference/v202502/AdRuleService.BaseAdRuleSlot).\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202502`\n\n| Enumeration | Description |\n|---------------|---------------------------------------------------------------------------------------------|\n| `ALWAYS_SHOW` | This ad rule always includes this slot's ads. |\n| `NEVER_SHOW` | This ad rule never includes this slot's ads. |\n| `DEFER` | Defer to lower priority rules. This ad rule doesn't specify guidelines for this slot's ads. |\n| `UNKNOWN` | The value returned if the actual value is not exposed by the requested API version. |"]]