AI-generated Key Takeaways
- 
          
The DateTimeRangeTargetingError lists errors related to date time range targeting associated with line items in various services like AdjustmentService, ForecastService, and LineItemService.
 - 
          
This error inherits from ApiError and includes fields for identifying the cause of the error such as fieldPath, trigger, and errorString.
 - 
          
The error reason is represented by an enum with various possible values indicating specific issues like empty ranges, overlapping ranges, or times falling outside the line item's active period.
 - 
          
Other reasons include incorrect line item types (not sponsorship, standard, or preferred deal), past ranges being changed, or start/end times not matching line item start/end times or start/end of the day.
 
Lists all date time range errors caused by associating a line item with a targeting expression.
- Namespace
 - 
               
https://www.google.com/apis/ads/publisher/v202508 
                        Field | 
                  |
|---|---|
                        
                           ApiError (inherited)
                      | 
                  |
                        
                           
                      | 
                     
                         
                            The OGNL field path to identify cause of error.  | 
                  
                        
                           
                      | 
                     
                        
                         A parsed copy of the field path. For example, the field path "operations[1].operand" corresponds to this list: {FieldPathElement(field = "operations", index = 1), FieldPathElement(field = "operand", index = null)}.  | 
                  
                        
                           
                      | 
                     
                         
                            The data that caused the error.  | 
                  
                        
                           
                      | 
                     
                         
                            A simple string representation of the error and reason.  | 
                  
                        
                           DateTimeRangeTargetingError
                        
                      | 
                  |
                        
                           
                      | 
                     
                         
                            The error reason represented by an enum. Enumerations 
  |