# type AudienceSegmentError (v202605)

**Service** [AudienceSegmentService](https://developers.google.com/ad-manager/api/reference/v202605/AudienceSegmentService.AudienceSegmentError.md.txt) [ForecastService](https://developers.google.com/ad-manager/api/reference/v202605/ForecastService.AudienceSegmentError.md.txt) [LineItemService](https://developers.google.com/ad-manager/api/reference/v202605/LineItemService.AudienceSegmentError.md.txt) [LineItemTemplateService](https://developers.google.com/ad-manager/api/reference/v202605/LineItemTemplateService.AudienceSegmentError.md.txt) [OrderService](https://developers.google.com/ad-manager/api/reference/v202605/OrderService.AudienceSegmentError.md.txt) [ProposalLineItemService](https://developers.google.com/ad-manager/api/reference/v202605/ProposalLineItemService.AudienceSegmentError.md.txt) [ProposalService](https://developers.google.com/ad-manager/api/reference/v202605/ProposalService.AudienceSegmentError.md.txt) **PublisherQueryLanguageService** **Inheritance** [ApiError](https://developers.google.com/ad-manager/api/reference/v202605/PublisherQueryLanguageService.ApiError.md.txt) ▼ [AdUnitCodeError](https://developers.google.com/ad-manager/api/reference/v202605/PublisherQueryLanguageService.AdUnitCodeError.md.txt) [AdUnitHierarchyError](https://developers.google.com/ad-manager/api/reference/v202605/PublisherQueryLanguageService.AdUnitHierarchyError.md.txt) [ApiVersionError](https://developers.google.com/ad-manager/api/reference/v202605/PublisherQueryLanguageService.ApiVersionError.md.txt) **AudienceSegmentError** [AuthenticationError](https://developers.google.com/ad-manager/api/reference/v202605/PublisherQueryLanguageService.AuthenticationError.md.txt) [CollectionSizeError](https://developers.google.com/ad-manager/api/reference/v202605/PublisherQueryLanguageService.CollectionSizeError.md.txt) [CommonError](https://developers.google.com/ad-manager/api/reference/v202605/PublisherQueryLanguageService.CommonError.md.txt) [CreativeError](https://developers.google.com/ad-manager/api/reference/v202605/PublisherQueryLanguageService.CreativeError.md.txt) [DealError](https://developers.google.com/ad-manager/api/reference/v202605/PublisherQueryLanguageService.DealError.md.txt) [ExchangeRateError](https://developers.google.com/ad-manager/api/reference/v202605/PublisherQueryLanguageService.ExchangeRateError.md.txt) [FeatureError](https://developers.google.com/ad-manager/api/reference/v202605/PublisherQueryLanguageService.FeatureError.md.txt) [FileError](https://developers.google.com/ad-manager/api/reference/v202605/PublisherQueryLanguageService.FileError.md.txt) [InternalApiError](https://developers.google.com/ad-manager/api/reference/v202605/PublisherQueryLanguageService.InternalApiError.md.txt) [InvalidEmailError](https://developers.google.com/ad-manager/api/reference/v202605/PublisherQueryLanguageService.InvalidEmailError.md.txt) [InvalidUrlError](https://developers.google.com/ad-manager/api/reference/v202605/PublisherQueryLanguageService.InvalidUrlError.md.txt) [InventoryTargetingError](https://developers.google.com/ad-manager/api/reference/v202605/PublisherQueryLanguageService.InventoryTargetingError.md.txt) [InventoryUnitError](https://developers.google.com/ad-manager/api/reference/v202605/PublisherQueryLanguageService.InventoryUnitError.md.txt) [LineItemFlightDateError](https://developers.google.com/ad-manager/api/reference/v202605/PublisherQueryLanguageService.LineItemFlightDateError.md.txt) [LineItemOperationError](https://developers.google.com/ad-manager/api/reference/v202605/PublisherQueryLanguageService.LineItemOperationError.md.txt) [NotNullError](https://developers.google.com/ad-manager/api/reference/v202605/PublisherQueryLanguageService.NotNullError.md.txt) [NullError](https://developers.google.com/ad-manager/api/reference/v202605/PublisherQueryLanguageService.NullError.md.txt) [OrderActionError](https://developers.google.com/ad-manager/api/reference/v202605/PublisherQueryLanguageService.OrderActionError.md.txt) [OrderError](https://developers.google.com/ad-manager/api/reference/v202605/PublisherQueryLanguageService.OrderError.md.txt) [ParseError](https://developers.google.com/ad-manager/api/reference/v202605/PublisherQueryLanguageService.ParseError.md.txt) [PermissionError](https://developers.google.com/ad-manager/api/reference/v202605/PublisherQueryLanguageService.PermissionError.md.txt) [PublisherQueryLanguageConte...](https://developers.google.com/ad-manager/api/reference/v202605/PublisherQueryLanguageService.PublisherQueryLanguageContextError.md.txt "PublisherQueryLanguageContextError") [PublisherQueryLanguageSynta...](https://developers.google.com/ad-manager/api/reference/v202605/PublisherQueryLanguageService.PublisherQueryLanguageSyntaxError.md.txt "PublisherQueryLanguageSyntaxError") [QuotaError](https://developers.google.com/ad-manager/api/reference/v202605/PublisherQueryLanguageService.QuotaError.md.txt) [RangeError](https://developers.google.com/ad-manager/api/reference/v202605/PublisherQueryLanguageService.RangeError.md.txt) [RegExError](https://developers.google.com/ad-manager/api/reference/v202605/PublisherQueryLanguageService.RegExError.md.txt) [RequiredCollectionError](https://developers.google.com/ad-manager/api/reference/v202605/PublisherQueryLanguageService.RequiredCollectionError.md.txt) [RequiredError](https://developers.google.com/ad-manager/api/reference/v202605/PublisherQueryLanguageService.RequiredError.md.txt) [RequiredNumberError](https://developers.google.com/ad-manager/api/reference/v202605/PublisherQueryLanguageService.RequiredNumberError.md.txt) [RequiredSizeError](https://developers.google.com/ad-manager/api/reference/v202605/PublisherQueryLanguageService.RequiredSizeError.md.txt) [ReservationDetailsError](https://developers.google.com/ad-manager/api/reference/v202605/PublisherQueryLanguageService.ReservationDetailsError.md.txt) [ServerError](https://developers.google.com/ad-manager/api/reference/v202605/PublisherQueryLanguageService.ServerError.md.txt) [StatementError](https://developers.google.com/ad-manager/api/reference/v202605/PublisherQueryLanguageService.StatementError.md.txt) [StringFormatError](https://developers.google.com/ad-manager/api/reference/v202605/PublisherQueryLanguageService.StringFormatError.md.txt) [StringLengthError](https://developers.google.com/ad-manager/api/reference/v202605/PublisherQueryLanguageService.StringLengthError.md.txt) [TypeError](https://developers.google.com/ad-manager/api/reference/v202605/PublisherQueryLanguageService.TypeError.md.txt) [UniqueError](https://developers.google.com/ad-manager/api/reference/v202605/PublisherQueryLanguageService.UniqueError.md.txt)

Errors that could occur on audience segment related requests.

*** ** * ** ***

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

| ## 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_SUPPORTED` :   First party audience segment is not supported. `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 /> |