type DateTimeRangeTargeting (v202502)
    
    
      
    
    
      
      Stay organized with collections
    
    
      
      Save and categorize content based on your preferences.
    
  
  
      
    
  
  
  
  
  
    
  
  
    
    
      
         
         
         
         The date time ranges that the line item is eligible to serve.
         
         
            - Namespace
- 
               https://www.google.com/apis/ads/publisher/v202502
 
   
  
  
    
  
 
  
    
    
      
       
    
    
  
  
  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 content outlines the `DateTimeRangeTargeting` feature, specifying date and time ranges for ad serving eligibility. This functionality is accessible across multiple services including `AdRuleService`, `AdjustmentService`, `ForecastService`, `LineItemService`, `NativeStyleService`, `ProposalLineItemService`, `ProposalService`, `TargetingPresetService`, and `YieldGroupService`. The `targetedDateTimeRanges` field within `DateTimeRangeTargeting` utilizes an array of `DateTimeRange` objects, defined within the `PublisherQueryLanguageService`, to define these eligible timeframes.\n"]]