enum AdRuleSlotBehavior (v202411)
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/v202411
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."],[[["\u003cp\u003e\u003ccode\u003eAdRuleSlotBehavior\u003c/code\u003e defines how ads within an ad rule slot should behave, dictating whether they are always shown, never shown, deferred to other rules, or unknown.\u003c/p\u003e\n"],["\u003cp\u003eIt's an enumeration within the AdRuleService and provides four possible values: \u003ccode\u003eALWAYS_SHOW\u003c/code\u003e, \u003ccode\u003eNEVER_SHOW\u003c/code\u003e, \u003ccode\u003eDEFER\u003c/code\u003e, and \u003ccode\u003eUNKNOWN\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe behavior is crucial in determining ad serving priority and how different ad rules interact within an ad slot.\u003c/p\u003e\n"]]],["The `AdRuleSlotBehavior` enumeration defines how ads behave within an ad rule slot. `ALWAYS_SHOW` ensures ads are always included. `NEVER_SHOW` excludes ads from the slot. `DEFER` indicates that the rule defers to lower priority rules for the slot's ad guidelines. `UNKNOWN` is a fallback value for cases where the API version doesn't expose the true value. The AdRuleService includes the `BaseAdRuleSlot` dependency, which is used by the `AdRuleSlotBehavior`.\n"],null,["# enum AdRuleSlotBehavior (v202411)\n\n**Service** \n**AdRuleService** **Dependencies** \n[BaseAdRuleSlot](/ad-manager/api/reference/v202411/AdRuleService.BaseAdRuleSlot) \n▼\n**AdRuleSlotBehavior**\n\nThe types of behaviors for ads within a [ad rule slot](/ad-manager/api/reference/v202411/AdRuleService.BaseAdRuleSlot).\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202411`\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. |"]]