enum AdRuleSlotError.Reason (v202411)
Stay organized with collections
Save and categorize content based on your preferences.
Describes reason for AdRuleSlotError
s.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202411
Enumeration |
Description |
DIFFERENT_STATUS_THAN_AD_RULE
|
Has a different status than the ad rule to which it belongs.
|
INVALID_VIDEO_AD_DURATION_RANGE
|
Min video ad duration is greater than max video ad duration.
|
INVALID_VIDEO_MIDROLL_FREQUENCY_TYPE
|
Video mid-roll frequency type other than NONE for pre-roll or post-roll.
|
MALFORMED_VIDEO_MIDROLL_FREQUENCY_CSV
|
Invalid format for video mid-roll frequency when expecting a CSV
list of numbers. Valid formats are the following:
- empty
- comma-separated list of numbers (time milliseconds or cue
points)
- a single number (every n milliseconds or cue points, or one
specific time / cue point)
|
MALFORMED_VIDEO_MIDROLL_FREQUENCY_SINGLE_NUMBER
|
Invalid format for video mid-roll frequency when expecting a single
number only, e.g., every n seconds or every n cue points.
|
INVALID_OVERLAY_AD_DURATION_RANGE
|
Min overlay ad duration is greater than max overlay ad duration.
|
INVALID_OVERLAY_MIDROLL_FREQUENCY_TYPE
|
Overlay mid-roll frequency type other than NONE for pre-roll or
post-roll.
|
MALFORMED_OVERLAY_MIDROLL_FREQUENCY_CSV
|
Invalid format for overlay mid-roll frequency for list of numbers. See
valid formats above.
|
MALFORMED_OVERLAY_MIDROLL_FREQUENCY_SINGLE_NUMBER
|
Invalid format for overlay mid-roll frequency for a single number.
|
INVALID_BUMPER_MAX_DURATION
|
Non-positive bumper duration when expecting a positive number.
|
TOO_MANY_MIDROLL_SLOTS_WITHOUT_ADS
|
At most one mid-roll can be set to disallow 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\u003eAdRuleSlotError.Reason\u003c/code\u003e describes the potential errors encountered when setting up ad rule slots within Google Ad Manager.\u003c/p\u003e\n"],["\u003cp\u003eThese errors can range from mismatched statuses between ad rules and their slots to invalid configurations for video or overlay ad durations and frequencies.\u003c/p\u003e\n"],["\u003cp\u003eThe error reasons also cover specific formats for defining mid-roll frequencies for both video and overlay ads, ensuring accurate ad delivery.\u003c/p\u003e\n"],["\u003cp\u003eIf an error arises that isn't explicitly listed within the provided reasons, it's categorized as \u003ccode\u003eUNKNOWN\u003c/code\u003e due to limitations in the API version's exposure.\u003c/p\u003e\n"]]],["The `AdRuleSlotError.Reason` enumeration details potential errors within the `AdRuleService`. These errors encompass issues like mismatched statuses between ad slots and their rules (`DIFFERENT_STATUS_THAN_AD_RULE`), invalid duration ranges for video or overlay ads, and incorrect formats for video or overlay mid-roll frequencies. Other reasons include invalid bumper durations, too many mid-roll slots without ads and unknown. Each error has a distinct description.\n"],null,["# enum AdRuleSlotError.Reason (v202411)\n\n**Service** \n**AdRuleService** **Dependencies** \n[AdRuleSlotError](/ad-manager/api/reference/v202411/AdRuleService.AdRuleSlotError) \n▼\n**AdRuleSlotError.Reason**\n\nDescribes reason for `AdRuleSlotError`s.\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202411`\n\n| Enumeration | Description |\n|-----------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `DIFFERENT_STATUS_THAN_AD_RULE` | Has a different status than the ad rule to which it belongs. |\n| `INVALID_VIDEO_AD_DURATION_RANGE` | Min video ad duration is greater than max video ad duration. |\n| `INVALID_VIDEO_MIDROLL_FREQUENCY_TYPE` | Video mid-roll frequency type other than NONE for pre-roll or post-roll. |\n| `MALFORMED_VIDEO_MIDROLL_FREQUENCY_CSV` | Invalid format for video mid-roll frequency when expecting a CSV list of numbers. Valid formats are the following: - empty - comma-separated list of numbers (time milliseconds or cue points) - a single number (every n milliseconds or cue points, or one specific time / cue point) |\n| `MALFORMED_VIDEO_MIDROLL_FREQUENCY_SINGLE_NUMBER` | Invalid format for video mid-roll frequency when expecting a single number only, e.g., every n seconds or every n cue points. |\n| `INVALID_OVERLAY_AD_DURATION_RANGE` | Min overlay ad duration is greater than max overlay ad duration. |\n| `INVALID_OVERLAY_MIDROLL_FREQUENCY_TYPE` | Overlay mid-roll frequency type other than NONE for pre-roll or post-roll. |\n| `MALFORMED_OVERLAY_MIDROLL_FREQUENCY_CSV` | Invalid format for overlay mid-roll frequency for list of numbers. See valid formats above. |\n| `MALFORMED_OVERLAY_MIDROLL_FREQUENCY_SINGLE_NUMBER` | Invalid format for overlay mid-roll frequency for a single number. |\n| `INVALID_BUMPER_MAX_DURATION` | Non-positive bumper duration when expecting a positive number. |\n| `TOO_MANY_MIDROLL_SLOTS_WITHOUT_ADS` | At most one mid-roll can be set to disallow ads. |\n| `UNKNOWN` | The value returned if the actual value is not exposed by the requested API version. |"]]