# type StringLengthError (v202602)

**Service** [AdRuleService](https://developers.google.com/ad-manager/api/reference/v202602/AdRuleService.StringLengthError.md.txt) [AdjustmentService](https://developers.google.com/ad-manager/api/reference/v202602/AdjustmentService.StringLengthError.md.txt) [AdsTxtService](https://developers.google.com/ad-manager/api/reference/v202602/AdsTxtService.StringLengthError.md.txt) [AudienceSegmentService](https://developers.google.com/ad-manager/api/reference/v202602/AudienceSegmentService.StringLengthError.md.txt) [CdnConfigurationService](https://developers.google.com/ad-manager/api/reference/v202602/CdnConfigurationService.StringLengthError.md.txt) [CmsMetadataService](https://developers.google.com/ad-manager/api/reference/v202602/CmsMetadataService.StringLengthError.md.txt) [CompanyService](https://developers.google.com/ad-manager/api/reference/v202602/CompanyService.StringLengthError.md.txt) [ContactService](https://developers.google.com/ad-manager/api/reference/v202602/ContactService.StringLengthError.md.txt) [ContentBundleService](https://developers.google.com/ad-manager/api/reference/v202602/ContentBundleService.StringLengthError.md.txt) [ContentService](https://developers.google.com/ad-manager/api/reference/v202602/ContentService.StringLengthError.md.txt) [CreativeService](https://developers.google.com/ad-manager/api/reference/v202602/CreativeService.StringLengthError.md.txt) [CreativeSetService](https://developers.google.com/ad-manager/api/reference/v202602/CreativeSetService.StringLengthError.md.txt) [CreativeTemplateService](https://developers.google.com/ad-manager/api/reference/v202602/CreativeTemplateService.StringLengthError.md.txt) [CreativeWrapperService](https://developers.google.com/ad-manager/api/reference/v202602/CreativeWrapperService.StringLengthError.md.txt) [CustomFieldService](https://developers.google.com/ad-manager/api/reference/v202602/CustomFieldService.StringLengthError.md.txt) [CustomTargetingService](https://developers.google.com/ad-manager/api/reference/v202602/CustomTargetingService.StringLengthError.md.txt) [DaiAuthenticationKeyService](https://developers.google.com/ad-manager/api/reference/v202602/DaiAuthenticationKeyService.StringLengthError.md.txt) [DaiEncodingProfileService](https://developers.google.com/ad-manager/api/reference/v202602/DaiEncodingProfileService.StringLengthError.md.txt) [ForecastService](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.StringLengthError.md.txt) [InventoryService](https://developers.google.com/ad-manager/api/reference/v202602/InventoryService.StringLengthError.md.txt) [LabelService](https://developers.google.com/ad-manager/api/reference/v202602/LabelService.StringLengthError.md.txt) [LineItemCreativeAssociationService](https://developers.google.com/ad-manager/api/reference/v202602/LineItemCreativeAssociationService.StringLengthError.md.txt) [LineItemService](https://developers.google.com/ad-manager/api/reference/v202602/LineItemService.StringLengthError.md.txt) [LineItemTemplateService](https://developers.google.com/ad-manager/api/reference/v202602/LineItemTemplateService.StringLengthError.md.txt) [LiveStreamEventService](https://developers.google.com/ad-manager/api/reference/v202602/LiveStreamEventService.StringLengthError.md.txt) [MobileApplicationService](https://developers.google.com/ad-manager/api/reference/v202602/MobileApplicationService.StringLengthError.md.txt) [NativeStyleService](https://developers.google.com/ad-manager/api/reference/v202602/NativeStyleService.StringLengthError.md.txt) [NetworkService](https://developers.google.com/ad-manager/api/reference/v202602/NetworkService.StringLengthError.md.txt) [OrderService](https://developers.google.com/ad-manager/api/reference/v202602/OrderService.StringLengthError.md.txt) [PlacementService](https://developers.google.com/ad-manager/api/reference/v202602/PlacementService.StringLengthError.md.txt) [ProposalLineItemService](https://developers.google.com/ad-manager/api/reference/v202602/ProposalLineItemService.StringLengthError.md.txt) [ProposalService](https://developers.google.com/ad-manager/api/reference/v202602/ProposalService.StringLengthError.md.txt) [PublisherQueryLanguageService](https://developers.google.com/ad-manager/api/reference/v202602/PublisherQueryLanguageService.StringLengthError.md.txt) [ReportService](https://developers.google.com/ad-manager/api/reference/v202602/ReportService.StringLengthError.md.txt) [SegmentPopulationService](https://developers.google.com/ad-manager/api/reference/v202602/SegmentPopulationService.StringLengthError.md.txt) [SiteService](https://developers.google.com/ad-manager/api/reference/v202602/SiteService.StringLengthError.md.txt) [StreamActivityMonitorService](https://developers.google.com/ad-manager/api/reference/v202602/StreamActivityMonitorService.StringLengthError.md.txt) [SuggestedAdUnitService](https://developers.google.com/ad-manager/api/reference/v202602/SuggestedAdUnitService.StringLengthError.md.txt) **TargetingPresetService** [TeamService](https://developers.google.com/ad-manager/api/reference/v202602/TeamService.StringLengthError.md.txt) [UserService](https://developers.google.com/ad-manager/api/reference/v202602/UserService.StringLengthError.md.txt) [UserTeamAssociationService](https://developers.google.com/ad-manager/api/reference/v202602/UserTeamAssociationService.StringLengthError.md.txt) [YieldGroupService](https://developers.google.com/ad-manager/api/reference/v202602/YieldGroupService.StringLengthError.md.txt) **Inheritance** [ApiError](https://developers.google.com/ad-manager/api/reference/v202602/TargetingPresetService.ApiError.md.txt) ▼ [ApiVersionError](https://developers.google.com/ad-manager/api/reference/v202602/TargetingPresetService.ApiVersionError.md.txt) [AuthenticationError](https://developers.google.com/ad-manager/api/reference/v202602/TargetingPresetService.AuthenticationError.md.txt) [CollectionSizeError](https://developers.google.com/ad-manager/api/reference/v202602/TargetingPresetService.CollectionSizeError.md.txt) [CommonError](https://developers.google.com/ad-manager/api/reference/v202602/TargetingPresetService.CommonError.md.txt) [CustomTargetingError](https://developers.google.com/ad-manager/api/reference/v202602/TargetingPresetService.CustomTargetingError.md.txt) [DateTimeRangeTargetingError](https://developers.google.com/ad-manager/api/reference/v202602/TargetingPresetService.DateTimeRangeTargetingError.md.txt) [DayPartTargetingError](https://developers.google.com/ad-manager/api/reference/v202602/TargetingPresetService.DayPartTargetingError.md.txt) [EntityChildrenLimitReachedE...](https://developers.google.com/ad-manager/api/reference/v202602/TargetingPresetService.EntityChildrenLimitReachedError.md.txt "EntityChildrenLimitReachedError") [EntityLimitReachedError](https://developers.google.com/ad-manager/api/reference/v202602/TargetingPresetService.EntityLimitReachedError.md.txt) [FeatureError](https://developers.google.com/ad-manager/api/reference/v202602/TargetingPresetService.FeatureError.md.txt) [GenericTargetingError](https://developers.google.com/ad-manager/api/reference/v202602/TargetingPresetService.GenericTargetingError.md.txt) [GeoTargetingError](https://developers.google.com/ad-manager/api/reference/v202602/TargetingPresetService.GeoTargetingError.md.txt) [InternalApiError](https://developers.google.com/ad-manager/api/reference/v202602/TargetingPresetService.InternalApiError.md.txt) [InventoryTargetingError](https://developers.google.com/ad-manager/api/reference/v202602/TargetingPresetService.InventoryTargetingError.md.txt) [MobileApplicationTargetingE...](https://developers.google.com/ad-manager/api/reference/v202602/TargetingPresetService.MobileApplicationTargetingError.md.txt "MobileApplicationTargetingError") [NotNullError](https://developers.google.com/ad-manager/api/reference/v202602/TargetingPresetService.NotNullError.md.txt) [ParseError](https://developers.google.com/ad-manager/api/reference/v202602/TargetingPresetService.ParseError.md.txt) [PermissionError](https://developers.google.com/ad-manager/api/reference/v202602/TargetingPresetService.PermissionError.md.txt) [PublisherProvidedSignalsTar...](https://developers.google.com/ad-manager/api/reference/v202602/TargetingPresetService.PublisherProvidedSignalsTargetingError.md.txt "PublisherProvidedSignalsTargetingError") [PublisherQueryLanguageConte...](https://developers.google.com/ad-manager/api/reference/v202602/TargetingPresetService.PublisherQueryLanguageContextError.md.txt "PublisherQueryLanguageContextError") [PublisherQueryLanguageSynta...](https://developers.google.com/ad-manager/api/reference/v202602/TargetingPresetService.PublisherQueryLanguageSyntaxError.md.txt "PublisherQueryLanguageSyntaxError") [QuotaError](https://developers.google.com/ad-manager/api/reference/v202602/TargetingPresetService.QuotaError.md.txt) [RequestPlatformTargetingError](https://developers.google.com/ad-manager/api/reference/v202602/TargetingPresetService.RequestPlatformTargetingError.md.txt) [RequiredCollectionError](https://developers.google.com/ad-manager/api/reference/v202602/TargetingPresetService.RequiredCollectionError.md.txt) [RequiredError](https://developers.google.com/ad-manager/api/reference/v202602/TargetingPresetService.RequiredError.md.txt) [ServerError](https://developers.google.com/ad-manager/api/reference/v202602/TargetingPresetService.ServerError.md.txt) [StatementError](https://developers.google.com/ad-manager/api/reference/v202602/TargetingPresetService.StatementError.md.txt) [StringFormatError](https://developers.google.com/ad-manager/api/reference/v202602/TargetingPresetService.StringFormatError.md.txt) **StringLengthError** [TechnologyTargetingError](https://developers.google.com/ad-manager/api/reference/v202602/TargetingPresetService.TechnologyTargetingError.md.txt) [UniqueError](https://developers.google.com/ad-manager/api/reference/v202602/TargetingPresetService.UniqueError.md.txt) [UserDomainTargetingError](https://developers.google.com/ad-manager/api/reference/v202602/TargetingPresetService.UserDomainTargetingError.md.txt) [VideoPositionTargetingError](https://developers.google.com/ad-manager/api/reference/v202602/TargetingPresetService.VideoPositionTargetingError.md.txt)

Errors for Strings which do not meet given length constraints.

*** ** * ** ***

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` | ` 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. |
| **`StringLengthError`** ||
| ### `reason` | ` StringLengthError.Reason ` *** ** * ** *** **Enumerations** `TOO_LONG` : `TOO_SHORT` : `UNKNOWN` :   The value returned if the actual value is not exposed by the requested API version. <br /> |