type StringFormatError (v202502)
Stay organized with collections
Save and categorize content based on your preferences.
A list of error code for reporting invalid content of input strings.
- 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.
|
StringFormatError
|
reason
|
StringFormatError.Reason
Enumerations
-
UNKNOWN
-
ILLEGAL_CHARS
- The input string value contains disallowed characters.
-
INVALID_FORMAT
- The input string value is invalid for the associated field.
|
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."],[],["This document outlines various services within an ad management API, including `AdRuleService`, `CreativeService`, `ForecastService`, and `PlacementService`. It details error types, with a focus on `StringFormatError`. Key actions involve utilizing these services to manage ads and related data. `StringFormatError` specifically addresses issues like `ILLEGAL_CHARS` and `INVALID_FORMAT` in input strings, providing detailed information through fields like `fieldPath`, `trigger`, and the error `reason`. It also describes the different error that can be thrown by the services.\n"],null,["# type StringFormatError (v202502)\n\n**Service** \n[AdRuleService](/ad-manager/api/reference/v202502/AdRuleService.StringFormatError) [AdjustmentService](/ad-manager/api/reference/v202502/AdjustmentService.StringFormatError) [AdsTxtService](/ad-manager/api/reference/v202502/AdsTxtService.StringFormatError) [AudienceSegmentService](/ad-manager/api/reference/v202502/AudienceSegmentService.StringFormatError) [CdnConfigurationService](/ad-manager/api/reference/v202502/CdnConfigurationService.StringFormatError) [CmsMetadataService](/ad-manager/api/reference/v202502/CmsMetadataService.StringFormatError) [CompanyService](/ad-manager/api/reference/v202502/CompanyService.StringFormatError) [ContactService](/ad-manager/api/reference/v202502/ContactService.StringFormatError) [ContentBundleService](/ad-manager/api/reference/v202502/ContentBundleService.StringFormatError) [ContentService](/ad-manager/api/reference/v202502/ContentService.StringFormatError) [CreativeService](/ad-manager/api/reference/v202502/CreativeService.StringFormatError) [CreativeSetService](/ad-manager/api/reference/v202502/CreativeSetService.StringFormatError) [CreativeTemplateService](/ad-manager/api/reference/v202502/CreativeTemplateService.StringFormatError) [CreativeWrapperService](/ad-manager/api/reference/v202502/CreativeWrapperService.StringFormatError) [CustomFieldService](/ad-manager/api/reference/v202502/CustomFieldService.StringFormatError) [CustomTargetingService](/ad-manager/api/reference/v202502/CustomTargetingService.StringFormatError) [DaiAuthenticationKeyService](/ad-manager/api/reference/v202502/DaiAuthenticationKeyService.StringFormatError) [DaiEncodingProfileService](/ad-manager/api/reference/v202502/DaiEncodingProfileService.StringFormatError) [ForecastService](/ad-manager/api/reference/v202502/ForecastService.StringFormatError) [InventoryService](/ad-manager/api/reference/v202502/InventoryService.StringFormatError) [LabelService](/ad-manager/api/reference/v202502/LabelService.StringFormatError) [LineItemCreativeAssociationService](/ad-manager/api/reference/v202502/LineItemCreativeAssociationService.StringFormatError) [LineItemService](/ad-manager/api/reference/v202502/LineItemService.StringFormatError) [LineItemTemplateService](/ad-manager/api/reference/v202502/LineItemTemplateService.StringFormatError) [LiveStreamEventService](/ad-manager/api/reference/v202502/LiveStreamEventService.StringFormatError) [MobileApplicationService](/ad-manager/api/reference/v202502/MobileApplicationService.StringFormatError) [NativeStyleService](/ad-manager/api/reference/v202502/NativeStyleService.StringFormatError) [NetworkService](/ad-manager/api/reference/v202502/NetworkService.StringFormatError) [OrderService](/ad-manager/api/reference/v202502/OrderService.StringFormatError) **PlacementService** [ProposalLineItemService](/ad-manager/api/reference/v202502/ProposalLineItemService.StringFormatError) [ProposalService](/ad-manager/api/reference/v202502/ProposalService.StringFormatError) [PublisherQueryLanguageService](/ad-manager/api/reference/v202502/PublisherQueryLanguageService.StringFormatError) [ReportService](/ad-manager/api/reference/v202502/ReportService.StringFormatError) [SegmentPopulationService](/ad-manager/api/reference/v202502/SegmentPopulationService.StringFormatError) [SiteService](/ad-manager/api/reference/v202502/SiteService.StringFormatError) [StreamActivityMonitorService](/ad-manager/api/reference/v202502/StreamActivityMonitorService.StringFormatError) [SuggestedAdUnitService](/ad-manager/api/reference/v202502/SuggestedAdUnitService.StringFormatError) [TargetingPresetService](/ad-manager/api/reference/v202502/TargetingPresetService.StringFormatError) [TeamService](/ad-manager/api/reference/v202502/TeamService.StringFormatError) [UserService](/ad-manager/api/reference/v202502/UserService.StringFormatError) [UserTeamAssociationService](/ad-manager/api/reference/v202502/UserTeamAssociationService.StringFormatError) [YieldGroupService](/ad-manager/api/reference/v202502/YieldGroupService.StringFormatError) **Inheritance** \n[ApiError](/ad-manager/api/reference/v202502/PlacementService.ApiError) \n▼\n[ApiVersionError](/ad-manager/api/reference/v202502/PlacementService.ApiVersionError) [AuthenticationError](/ad-manager/api/reference/v202502/PlacementService.AuthenticationError) [CollectionSizeError](/ad-manager/api/reference/v202502/PlacementService.CollectionSizeError) [CommonError](/ad-manager/api/reference/v202502/PlacementService.CommonError) [EntityChildrenLimitReachedE...](/ad-manager/api/reference/v202502/PlacementService.EntityChildrenLimitReachedError \"EntityChildrenLimitReachedError\") [EntityLimitReachedError](/ad-manager/api/reference/v202502/PlacementService.EntityLimitReachedError) [FeatureError](/ad-manager/api/reference/v202502/PlacementService.FeatureError) [InternalApiError](/ad-manager/api/reference/v202502/PlacementService.InternalApiError) [NotNullError](/ad-manager/api/reference/v202502/PlacementService.NotNullError) [NullError](/ad-manager/api/reference/v202502/PlacementService.NullError) [ParseError](/ad-manager/api/reference/v202502/PlacementService.ParseError) [PermissionError](/ad-manager/api/reference/v202502/PlacementService.PermissionError) [PlacementError](/ad-manager/api/reference/v202502/PlacementService.PlacementError) [PublisherQueryLanguageConte...](/ad-manager/api/reference/v202502/PlacementService.PublisherQueryLanguageContextError \"PublisherQueryLanguageContextError\") [PublisherQueryLanguageSynta...](/ad-manager/api/reference/v202502/PlacementService.PublisherQueryLanguageSyntaxError \"PublisherQueryLanguageSyntaxError\") [QuotaError](/ad-manager/api/reference/v202502/PlacementService.QuotaError) [RangeError](/ad-manager/api/reference/v202502/PlacementService.RangeError) [RegExError](/ad-manager/api/reference/v202502/PlacementService.RegExError) [RequiredCollectionError](/ad-manager/api/reference/v202502/PlacementService.RequiredCollectionError) [RequiredError](/ad-manager/api/reference/v202502/PlacementService.RequiredError) [ServerError](/ad-manager/api/reference/v202502/PlacementService.ServerError) [StatementError](/ad-manager/api/reference/v202502/PlacementService.StatementError) **StringFormatError** [StringLengthError](/ad-manager/api/reference/v202502/PlacementService.StringLengthError) [TypeError](/ad-manager/api/reference/v202502/PlacementService.TypeError) [UniqueError](/ad-manager/api/reference/v202502/PlacementService.UniqueError)\n\nA list of error code for reporting invalid content of input strings.\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202502`\n\n| Field ----- ||\n|-------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| **`ApiError` (inherited)** ||\n| ### `fieldPath` | ` `xsd:`string` The OGNL field path to identify cause of error. |\n| ### `fieldPathElements` | ` `[FieldPathElement](/ad-manager/api/reference/v202502/PlacementService.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)}. |\n| ### `trigger` | ` `xsd:`string` The data that caused the error. |\n| ### `errorString` | ` `xsd:`string` A simple string representation of the error and reason. |\n| **`StringFormatError`** ||\n| ### `reason` | ` `[StringFormatError.Reason](/ad-manager/api/reference/v202502/PlacementService.StringFormatError.Reason)` ` *** ** * ** *** **Enumerations** `UNKNOWN` : `ILLEGAL_CHARS` : The input string value contains disallowed characters. `INVALID_FORMAT` : The input string value is invalid for the associated field. \u003cbr /\u003e |"]]