type RequiredNumberError (v202411)
Stay organized with collections
Save and categorize content based on your preferences.
A list of all errors to be used in conjunction with required number
validators.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202411
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.
|
RequiredNumberError
|
reason
|
RequiredNumberError.Reason
Enumerations
-
REQUIRED
-
TOO_LARGE
-
TOO_SMALL
-
TOO_LARGE_WITH_DETAILS
-
TOO_SMALL_WITH_DETAILS
-
UNKNOWN
- The value returned if the actual value is not exposed by the requested API version.
|
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."],[[["\u003cp\u003eThe \u003ccode\u003eRequiredNumberError\u003c/code\u003e object in Ad Manager API v202411 is used to signal errors related to numerical values not meeting specific requirements.\u003c/p\u003e\n"],["\u003cp\u003eThis error type inherits from \u003ccode\u003eApiError\u003c/code\u003e and includes additional fields like \u003ccode\u003ereason\u003c/code\u003e to provide context for the validation failure.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ereason\u003c/code\u003e field can have various values like \u003ccode\u003eREQUIRED\u003c/code\u003e, \u003ccode\u003eTOO_LARGE\u003c/code\u003e, \u003ccode\u003eTOO_SMALL\u003c/code\u003e, providing detailed information about the nature of the error.\u003c/p\u003e\n"],["\u003cp\u003eThis information is crucial for developers to understand and address validation issues when interacting with the Ad Manager API.\u003c/p\u003e\n"],["\u003cp\u003eThe namespace for this error is \u003ccode\u003ehttps://www.google.com/apis/ads/publisher/v202411\u003c/code\u003e.\u003c/p\u003e\n"]]],["The document outlines various services, including AdRuleService, CompanyService, and others, within an API framework. It details the inheritance structure of `ApiError`, which is the parent for numerous specific error types like `AdRuleError` and `AuthenticationError`. The `RequiredNumberError` is used for validation, indicating issues like `TOO_LARGE` or `TOO_SMALL` values and is used for number validators. Key fields are `fieldPath`, `trigger`, `errorString` and `reason`, along with enumerations for different error reasons.\n"],null,["# type RequiredNumberError (v202411)\n\n**Service** \n**AdRuleService** [CompanyService](/ad-manager/api/reference/v202411/CompanyService.RequiredNumberError) [ContentService](/ad-manager/api/reference/v202411/ContentService.RequiredNumberError) [CreativeService](/ad-manager/api/reference/v202411/CreativeService.RequiredNumberError) [CreativeSetService](/ad-manager/api/reference/v202411/CreativeSetService.RequiredNumberError) [CreativeTemplateService](/ad-manager/api/reference/v202411/CreativeTemplateService.RequiredNumberError) [ForecastService](/ad-manager/api/reference/v202411/ForecastService.RequiredNumberError) [InventoryService](/ad-manager/api/reference/v202411/InventoryService.RequiredNumberError) [LineItemCreativeAssociationService](/ad-manager/api/reference/v202411/LineItemCreativeAssociationService.RequiredNumberError) [LineItemService](/ad-manager/api/reference/v202411/LineItemService.RequiredNumberError) [LineItemTemplateService](/ad-manager/api/reference/v202411/LineItemTemplateService.RequiredNumberError) [LiveStreamEventService](/ad-manager/api/reference/v202411/LiveStreamEventService.RequiredNumberError) [NetworkService](/ad-manager/api/reference/v202411/NetworkService.RequiredNumberError) [OrderService](/ad-manager/api/reference/v202411/OrderService.RequiredNumberError) [ProposalLineItemService](/ad-manager/api/reference/v202411/ProposalLineItemService.RequiredNumberError) [ProposalService](/ad-manager/api/reference/v202411/ProposalService.RequiredNumberError) [PublisherQueryLanguageService](/ad-manager/api/reference/v202411/PublisherQueryLanguageService.RequiredNumberError) [YieldGroupService](/ad-manager/api/reference/v202411/YieldGroupService.RequiredNumberError) **Inheritance** \n[ApiError](/ad-manager/api/reference/v202411/AdRuleService.ApiError) \n▼\n[AdRuleDateError](/ad-manager/api/reference/v202411/AdRuleService.AdRuleDateError) [AdRuleError](/ad-manager/api/reference/v202411/AdRuleService.AdRuleError) [AdRuleFrequencyCapError](/ad-manager/api/reference/v202411/AdRuleService.AdRuleFrequencyCapError) [AdRulePriorityError](/ad-manager/api/reference/v202411/AdRuleService.AdRulePriorityError) [AdRuleSlotError](/ad-manager/api/reference/v202411/AdRuleService.AdRuleSlotError) [AdRuleTargetingError](/ad-manager/api/reference/v202411/AdRuleService.AdRuleTargetingError) [ApiVersionError](/ad-manager/api/reference/v202411/AdRuleService.ApiVersionError) [AuthenticationError](/ad-manager/api/reference/v202411/AdRuleService.AuthenticationError) [CollectionSizeError](/ad-manager/api/reference/v202411/AdRuleService.CollectionSizeError) [CommonError](/ad-manager/api/reference/v202411/AdRuleService.CommonError) [CustomTargetingError](/ad-manager/api/reference/v202411/AdRuleService.CustomTargetingError) [FeatureError](/ad-manager/api/reference/v202411/AdRuleService.FeatureError) [GeoTargetingError](/ad-manager/api/reference/v202411/AdRuleService.GeoTargetingError) [InternalApiError](/ad-manager/api/reference/v202411/AdRuleService.InternalApiError) [InventoryTargetingError](/ad-manager/api/reference/v202411/AdRuleService.InventoryTargetingError) [NotNullError](/ad-manager/api/reference/v202411/AdRuleService.NotNullError) [ParseError](/ad-manager/api/reference/v202411/AdRuleService.ParseError) [PermissionError](/ad-manager/api/reference/v202411/AdRuleService.PermissionError) [PoddingError](/ad-manager/api/reference/v202411/AdRuleService.PoddingError) [PublisherQueryLanguageConte...](/ad-manager/api/reference/v202411/AdRuleService.PublisherQueryLanguageContextError \"PublisherQueryLanguageContextError\") [PublisherQueryLanguageSynta...](/ad-manager/api/reference/v202411/AdRuleService.PublisherQueryLanguageSyntaxError \"PublisherQueryLanguageSyntaxError\") [QuotaError](/ad-manager/api/reference/v202411/AdRuleService.QuotaError) [RequiredCollectionError](/ad-manager/api/reference/v202411/AdRuleService.RequiredCollectionError) [RequiredError](/ad-manager/api/reference/v202411/AdRuleService.RequiredError) **RequiredNumberError** [ServerError](/ad-manager/api/reference/v202411/AdRuleService.ServerError) [StatementError](/ad-manager/api/reference/v202411/AdRuleService.StatementError) [StringFormatError](/ad-manager/api/reference/v202411/AdRuleService.StringFormatError) [StringLengthError](/ad-manager/api/reference/v202411/AdRuleService.StringLengthError) [UniqueError](/ad-manager/api/reference/v202411/AdRuleService.UniqueError)\n\nA list of all errors to be used in conjunction with required number\nvalidators.\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202411`\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/v202411/AdRuleService.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| **`RequiredNumberError`** ||\n| ### `reason` | ` `[RequiredNumberError.Reason](/ad-manager/api/reference/v202411/AdRuleService.RequiredNumberError.Reason)` ` *** ** * ** *** **Enumerations** `REQUIRED` : `TOO_LARGE` : `TOO_SMALL` : `TOO_LARGE_WITH_DETAILS` : `TOO_SMALL_WITH_DETAILS` : `UNKNOWN` : The value returned if the actual value is not exposed by the requested API version. \u003cbr /\u003e |"]]