# type AudienceSegmentError (v202602)

**Service** [AudienceSegmentService](https://developers.google.com/ad-manager/api/reference/v202602/AudienceSegmentService.AudienceSegmentError) **ForecastService** [LineItemService](https://developers.google.com/ad-manager/api/reference/v202602/LineItemService.AudienceSegmentError) [LineItemTemplateService](https://developers.google.com/ad-manager/api/reference/v202602/LineItemTemplateService.AudienceSegmentError) [OrderService](https://developers.google.com/ad-manager/api/reference/v202602/OrderService.AudienceSegmentError) [ProposalLineItemService](https://developers.google.com/ad-manager/api/reference/v202602/ProposalLineItemService.AudienceSegmentError) [ProposalService](https://developers.google.com/ad-manager/api/reference/v202602/ProposalService.AudienceSegmentError) [PublisherQueryLanguageService](https://developers.google.com/ad-manager/api/reference/v202602/PublisherQueryLanguageService.AudienceSegmentError) **Inheritance** [ApiError](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.ApiError) ▼ [AdUnitCodeError](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.AdUnitCodeError) [ApiVersionError](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.ApiVersionError) [AssetError](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.AssetError) [AudienceExtensionError](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.AudienceExtensionError) **AudienceSegmentError** [AuthenticationError](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.AuthenticationError) [ClickTrackingLineItemError](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.ClickTrackingLineItemError) [CollectionSizeError](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.CollectionSizeError) [CommonError](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.CommonError) [CompanyCreditStatusError](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.CompanyCreditStatusError) [CreativeError](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.CreativeError) [CrossSellError](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.CrossSellError) [CurrencyCodeError](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.CurrencyCodeError) [CustomFieldValueError](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.CustomFieldValueError) [CustomTargetingError](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.CustomTargetingError) [DateError](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.DateError) [DateTimeRangeTargetingError](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.DateTimeRangeTargetingError) [DayPartTargetingError](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.DayPartTargetingError) [EntityChildrenLimitReachedE...](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.EntityChildrenLimitReachedError "EntityChildrenLimitReachedError") [EntityLimitReachedError](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.EntityLimitReachedError) [FeatureError](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.FeatureError) [ForecastError](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.ForecastError) [FrequencyCapError](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.FrequencyCapError) [GenericTargetingError](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.GenericTargetingError) [GeoTargetingError](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.GeoTargetingError) [GrpSettingsError](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.GrpSettingsError) [ImageError](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.ImageError) [InternalApiError](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.InternalApiError) [InvalidUrlError](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.InvalidUrlError) [InventoryTargetingError](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.InventoryTargetingError) [InventoryUnitError](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.InventoryUnitError) [LabelEntityAssociationError](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.LabelEntityAssociationError) [LineItemActivityAssociation...](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.LineItemActivityAssociationError "LineItemActivityAssociationError") [LineItemCreativeAssociation...](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.LineItemCreativeAssociationError "LineItemCreativeAssociationError") [LineItemError](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.LineItemError) [LineItemFlightDateError](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.LineItemFlightDateError) [LineItemOperationError](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.LineItemOperationError) [MobileApplicationTargetingE...](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.MobileApplicationTargetingError "MobileApplicationTargetingError") [NotNullError](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.NotNullError) [NullError](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.NullError) [OrderActionError](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.OrderActionError) [OrderError](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.OrderError) [ParseError](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.ParseError) [PermissionError](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.PermissionError) [PrecisionError](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.PrecisionError) [ProgrammaticError](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.ProgrammaticError) [PublisherProvidedSignalsTar...](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.PublisherProvidedSignalsTargetingError "PublisherProvidedSignalsTargetingError") [PublisherQueryLanguageConte...](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.PublisherQueryLanguageContextError "PublisherQueryLanguageContextError") [PublisherQueryLanguageSynta...](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.PublisherQueryLanguageSyntaxError "PublisherQueryLanguageSyntaxError") [QuotaError](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.QuotaError) [RangeError](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.RangeError) [RegExError](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.RegExError) [RequestPlatformTargetingError](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.RequestPlatformTargetingError) [RequiredCollectionError](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.RequiredCollectionError) [RequiredError](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.RequiredError) [RequiredNumberError](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.RequiredNumberError) [RequiredSizeError](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.RequiredSizeError) [ReservationDetailsError](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.ReservationDetailsError) [ServerError](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.ServerError) [SetTopBoxLineItemError](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.SetTopBoxLineItemError) [StatementError](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.StatementError) [StringFormatError](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.StringFormatError) [StringLengthError](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.StringLengthError) [TeamError](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.TeamError) [TechnologyTargetingError](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.TechnologyTargetingError) [TimeZoneError](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.TimeZoneError) [TranscodingError](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.TranscodingError) [TypeError](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.TypeError) [UniqueError](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.UniqueError) [UserDomainTargetingError](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.UserDomainTargetingError) [VideoPositionTargetingError](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.VideoPositionTargetingError)

Errors that could occur on audience segment related requests.

*** ** * ** ***

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

| ## Field ||
|---|---|
| **`ApiError` (inherited)** ||
| ### `fieldPath` | ` xsd:string` The OGNL field path to identify cause of error. |
| ### `fieldPathElements` | ` https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.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/v202602/ForecastService.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 /> |