AI-generated Key Takeaways
-
The
RequiredNumberError
object is used to indicate why a provided number is invalid in Google Ad Manager API. -
Reasons for the error include the number being required, too large, or too small, sometimes with accompanying details.
-
RequiredNumberError.Reason
enum provides specific values (REQUIRED
,TOO_LARGE
, etc.) to identify the cause of the error. -
If an unrecognized value is encountered,
UNKNOWN
will be returned, especially with newer API versions. -
This error applies to various Google Ad Manager services, such as
AdRuleService
,CompanyService
, and others, as listed in the documentation.
Describes reasons for a number to be invalid.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202411
Enumeration | Description |
---|---|
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. |