type AudienceSegmentError (v202502)
    
    
      
    
    
      
      Stay organized with collections
    
    
      
      Save and categorize content based on your preferences.
    
  
  
      
    
  
  
  
  
  
    
  
  
    
    
      
         
         
         
         Errors that could occur on audience segment related requests.
         
         
            - Namespace
- 
               https://www.google.com/apis/ads/publisher/v202502
               
                  
                     | Field | 
               
               
                  
                     | ApiError(inherited) | 
                  
                     | 
                           fieldPath | 
                           
                              xsd:string The OGNL field path to identify cause of error.
 | 
                  
                     | 
                           fieldPathElements | 
                           
                              FieldPathElement[] 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)}.
 | 
                  
                     | 
                           trigger | 
                           
                              xsd:string The data that caused the error.
 | 
                  
                     | 
                           errorString | 
                           
                              xsd:string A simple string representation of the error and reason.
 | 
                  
                     | AudienceSegmentError | 
                  
                     | 
                           reason | 
                           
                              AudienceSegmentError.Reason
                            
                            Enumerations
 
                              
                                 FIRST_PARTY_AUDIENCE_SEGMENT_NOT_SUPPORTEDFirst party audience segment is not supported.
                                 ONLY_RULE_BASED_FIRST_PARTY_AUDIENCE_SEGMENTS_CAN_BE_CREATEDOnly rule-based first-party audience segments can be created.
                                 AUDIENCE_SEGMENT_ID_NOT_FOUNDAudience segment for the given id is not found.
                                 INVALID_AUDIENCE_SEGMENT_RULEAudience segment rule is invalid.
                                 AUDIENCE_SEGMENT_RULE_TOO_LONGAudience segment rule contains too many ad units and/or custom criteria.
                                 INVALID_AUDIENCE_SEGMENT_NAMEAudience segment name is invalid.
                                 DUPLICATE_AUDIENCE_SEGMENT_NAMEAudience segment with this name already exists.
                                 INVALID_AUDIENCE_SEGMENT_DESCRIPTIONAudience segment description is invalid.
                                 INVALID_AUDIENCE_SEGMENT_PAGEVIEWSAudience segment pageviews value is invalid. It must be between 1 and 12.
                                 INVALID_AUDIENCE_SEGMENT_RECENCYAudience segment recency value is invalid. It must be between 1 and 90 if pageviews > 1.
                                 INVALID_AUDIENCE_SEGMENT_MEMBERSHIP_EXPIRATIONAudience segment membership expiration value is invalid. It must be between 1 and 180.
                                 INVALID_AUDIENCE_SEGMENT_CUSTOM_KEY_NAMEThe given custom key cannot be part of audience segment rule due to unsupported characters.
                                 INVALID_AUDIENCE_SEGMENT_CUSTOM_VALUE_NAMEThe given custom value cannot be part of audience segment rule due to unsupported characters.
                                 INVALID_AUDIENCE_SEGMENT_CUSTOM_VALUE_MATCH_TYPEBroad-match custom value cannot be part of audience segment rule.
                                 INVALID_NESTED_FIRST_PARTY_AUDIENCE_SEGMENTAudience segment rule cannot contain itself.
                                 SHARED_SELLING_PARTNER_ROOT_CANNOT_BE_INCLUDEDAudience segment rule cannot contain shared selling inventory unit.
                                 INVALID_NESTED_THIRD_PARTY_AUDIENCE_SEGMENTAudience segment rule cannot contain a nested third-party segment.
                                 INACTIVE_NESTED_AUDIENCE_SEGMENTAudience segment rule cannot contain a nested inactive segment.
                                 AUDIENCE_SEGMENT_GLOBAL_LICENSE_ERRORAn error occurred when purchasing global licenses.
                                 SEGMENT_VIOLATED_POLICYSegment cannot be activated as it violates Google's Platform Policy.
                                 UNKNOWNThe 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."],[],["The content outlines the `AudienceSegmentError` and related services within an ad management API.  It details various error types, including `ApiError`, and specific issues like invalid rules, names, or descriptions for audience segments. Key actions involve creating or modifying audience segments, with errors arising from rule inconsistencies, naming conflicts, or policy violations.  Services like `AudienceSegmentService`, `ForecastService`, and `OrderService` are involved in these processes, which may encounter numerous error conditions.\n"]]