# type AudienceSegmentError (v202505)

**Service** [AudienceSegmentService](https://developers.google.com/ad-manager/api/reference/v202505/AudienceSegmentService.AudienceSegmentError) [ForecastService](https://developers.google.com/ad-manager/api/reference/v202505/ForecastService.AudienceSegmentError) [LineItemService](https://developers.google.com/ad-manager/api/reference/v202505/LineItemService.AudienceSegmentError) [LineItemTemplateService](https://developers.google.com/ad-manager/api/reference/v202505/LineItemTemplateService.AudienceSegmentError) [OrderService](https://developers.google.com/ad-manager/api/reference/v202505/OrderService.AudienceSegmentError) **ProposalLineItemService** [ProposalService](https://developers.google.com/ad-manager/api/reference/v202505/ProposalService.AudienceSegmentError) [PublisherQueryLanguageService](https://developers.google.com/ad-manager/api/reference/v202505/PublisherQueryLanguageService.AudienceSegmentError) **Inheritance** [ApiError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.ApiError) ▼ [ApiVersionError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.ApiVersionError) **AudienceSegmentError** [AuthenticationError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.AuthenticationError) [BillingError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.BillingError) [CollectionSizeError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.CollectionSizeError) [CommonError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.CommonError) [CurrencyCodeError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.CurrencyCodeError) [CustomFieldValueError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.CustomFieldValueError) [CustomTargetingError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.CustomTargetingError) [DateTimeRangeTargetingError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.DateTimeRangeTargetingError) [DayPartTargetingError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.DayPartTargetingError) [DealError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.DealError) [EntityChildrenLimitReachedE...](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.EntityChildrenLimitReachedError "EntityChildrenLimitReachedError") [EntityLimitReachedError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.EntityLimitReachedError) [ExchangeRateError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.ExchangeRateError) [FeatureError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.FeatureError) [ForecastError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.ForecastError) [FrequencyCapError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.FrequencyCapError) [GenericTargetingError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.GenericTargetingError) [GeoTargetingError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.GeoTargetingError) [GrpSettingsError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.GrpSettingsError) [InternalApiError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.InternalApiError) [InventoryTargetingError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.InventoryTargetingError) [LabelEntityAssociationError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.LabelEntityAssociationError) [LineItemError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.LineItemError) [LineItemFlightDateError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.LineItemFlightDateError) [LineItemOperationError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.LineItemOperationError) [MobileApplicationTargetingE...](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.MobileApplicationTargetingError "MobileApplicationTargetingError") [NotNullError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.NotNullError) [ParseError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.ParseError) [PermissionError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.PermissionError) [PrecisionError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.PrecisionError) [PreferredDealError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.PreferredDealError) [ProgrammaticError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.ProgrammaticError) [ProposalActionError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.ProposalActionError) [ProposalError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.ProposalError) [ProposalLineItemActionError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.ProposalLineItemActionError) [ProposalLineItemError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.ProposalLineItemError) [ProposalLineItemMakegoodError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.ProposalLineItemMakegoodError) [ProposalLineItemProgrammati...](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.ProposalLineItemProgrammaticError "ProposalLineItemProgrammaticError") [PublisherQueryLanguageConte...](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.PublisherQueryLanguageContextError "PublisherQueryLanguageContextError") [PublisherQueryLanguageSynta...](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.PublisherQueryLanguageSyntaxError "PublisherQueryLanguageSyntaxError") [QuotaError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.QuotaError) [RangeError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.RangeError) [RequestPlatformTargetingError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.RequestPlatformTargetingError) [RequiredCollectionError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.RequiredCollectionError) [RequiredError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.RequiredError) [RequiredNumberError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.RequiredNumberError) [ReservationDetailsError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.ReservationDetailsError) [ServerError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.ServerError) [StatementError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.StatementError) [StringFormatError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.StringFormatError) [StringLengthError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.StringLengthError) [TeamError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.TeamError) [TechnologyTargetingError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.TechnologyTargetingError) [TimeZoneError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.TimeZoneError) [TypeError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.TypeError) [UniqueError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.UniqueError) [UserDomainTargetingError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.UserDomainTargetingError) [VideoPositionTargetingError](https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.VideoPositionTargetingError)

Errors that could occur on audience segment related requests.

*** ** * ** ***

Namespace
:
    `https://www.google.com/apis/ads/publisher/v202505`

| ## Field ||
|---|---|
| **`ApiError` (inherited)** ||
| ### `fieldPath` | ` xsd:string` The OGNL field path to identify cause of error. |
| ### `fieldPathElements` | ` https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.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` | ` https://developers.google.com/ad-manager/api/reference/v202505/ProposalLineItemService.AudienceSegmentError.Reason ` *** ** * ** *** **Enumerations** `FIRST_PARTY_AUDIENCE_SEGMENT_NOT_SUPPORTED` :   First party audience segment is not supported. `ONLY_RULE_BASED_FIRST_PARTY_AUDIENCE_SEGMENTS_CAN_BE_CREATED` :   Only rule-based first-party audience segments can be created. `AUDIENCE_SEGMENT_ID_NOT_FOUND` :   Audience segment for the given id is not found. `INVALID_AUDIENCE_SEGMENT_RULE` :   Audience segment rule is invalid. `AUDIENCE_SEGMENT_RULE_TOO_LONG` :   Audience segment rule contains too many ad units and/or custom criteria. `INVALID_AUDIENCE_SEGMENT_NAME` :   Audience segment name is invalid. `DUPLICATE_AUDIENCE_SEGMENT_NAME` :   Audience segment with this name already exists. `INVALID_AUDIENCE_SEGMENT_DESCRIPTION` :   Audience segment description is invalid. `INVALID_AUDIENCE_SEGMENT_PAGEVIEWS` :   Audience segment pageviews value is invalid. It must be between 1 and 12. `INVALID_AUDIENCE_SEGMENT_RECENCY` :   Audience segment recency value is invalid. It must be between 1 and 90 if pageviews \> 1. `INVALID_AUDIENCE_SEGMENT_MEMBERSHIP_EXPIRATION` :   Audience segment membership expiration value is invalid. It must be between 1 and 180. `INVALID_AUDIENCE_SEGMENT_CUSTOM_KEY_NAME` :   The given custom key cannot be part of audience segment rule due to unsupported characters. `INVALID_AUDIENCE_SEGMENT_CUSTOM_VALUE_NAME` :   The given custom value cannot be part of audience segment rule due to unsupported characters. `INVALID_AUDIENCE_SEGMENT_CUSTOM_VALUE_MATCH_TYPE` :   Broad-match custom value cannot be part of audience segment rule. `INVALID_NESTED_FIRST_PARTY_AUDIENCE_SEGMENT` :   Audience segment rule cannot contain itself. `SHARED_SELLING_PARTNER_ROOT_CANNOT_BE_INCLUDED` :   Audience segment rule cannot contain shared selling inventory unit. `INVALID_NESTED_THIRD_PARTY_AUDIENCE_SEGMENT` :   Audience segment rule cannot contain a nested third-party segment. `INACTIVE_NESTED_AUDIENCE_SEGMENT` :   Audience segment rule cannot contain a nested inactive segment. `AUDIENCE_SEGMENT_GLOBAL_LICENSE_ERROR` :   An error occurred when purchasing global licenses. `SEGMENT_VIOLATED_POLICY` :   Segment cannot be activated as it violates Google's Platform Policy. `UNKNOWN` :   The value returned if the actual value is not exposed by the requested API version. <br /> |