AI-generated Key Takeaways
- 
          
AdRuleSlotError.Reasondescribes the reasons forAdRuleSlotErrors within the AdRuleService. - 
          
The reasons cover various validation failures related to ad rule slots, including issues with status, ad durations, and mid-roll frequency formats.
 - 
          
Specific error reasons are defined for video ads, overlay ads, and bumper ads.
 - 
          
There is an
UNKNOWNreason for values not exposed by the requested API version. 
Describes reason for AdRuleSlotErrors.
- Namespace
 - 
               
https://www.google.com/apis/ads/publisher/v202505 
| 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:
  | 
                  
                        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. |