RequestError
Stay organized with collections
Save and categorize content based on your preferences.
Enum describing possible request errors.
Enums |
UNSPECIFIED
|
Enum unspecified. |
UNKNOWN
|
The received error code is not known in this version. |
RESOURCE_NAME_MISSING
|
Resource name is required for this request. |
|
Resource name provided is malformed. |
BAD_RESOURCE_ID
|
Resource name provided is malformed. |
INVALID_CUSTOMER_ID
|
Customer ID is invalid. |
OPERATION_REQUIRED
|
Mutate operation should have either create, update, or remove specified. |
RESOURCE_NOT_FOUND
|
Requested resource not found. |
INVALID_PAGE_TOKEN
|
Next page token specified in user request is invalid. |
EXPIRED_PAGE_TOKEN
|
Next page token specified in user request has expired. |
INVALID_PAGE_SIZE
|
Page size specified in user request is invalid. |
PAGE_SIZE_NOT_SUPPORTED
|
Setting the page size is not supported, and will be unavailable in a future version. |
REQUIRED_FIELD_MISSING
|
Required field is missing. |
IMMUTABLE_FIELD
|
The field cannot be modified because it's immutable. It's also possible that the field can be modified using 'create' operation but not 'update'. |
TOO_MANY_MUTATE_OPERATIONS
|
Received too many entries in request. |
CANNOT_BE_EXECUTED_BY_MANAGER_ACCOUNT
|
Request cannot be executed by a manager account. |
CANNOT_MODIFY_FOREIGN_FIELD
|
Mutate request was attempting to modify a readonly field. For instance, Budget fields can be requested for Ad Group, but are read-only for adGroups:mutate. |
INVALID_ENUM_VALUE
|
Enum value is not permitted. |
DEVELOPER_TOKEN_PARAMETER_MISSING
|
The developer-token parameter is required for all requests. |
LOGIN_CUSTOMER_ID_PARAMETER_MISSING
|
The login-customer-id parameter is required for this request. |
VALIDATE_ONLY_REQUEST_HAS_PAGE_TOKEN
|
page_token is set in the validate only request |
CANNOT_RETURN_SUMMARY_ROW_FOR_REQUEST_WITHOUT_METRICS
|
return_summary_row cannot be enabled if request did not select any metrics field. |
CANNOT_RETURN_SUMMARY_ROW_FOR_VALIDATE_ONLY_REQUESTS
|
return_summary_row should not be enabled for validate only requests. |
INCONSISTENT_RETURN_SUMMARY_ROW_VALUE
|
return_summary_row parameter value should be the same between requests with page_token field set and their original request. |
TOTAL_RESULTS_COUNT_NOT_ORIGINALLY_REQUESTED
|
The total results count cannot be returned if it was not requested in the original request. |
RPC_DEADLINE_TOO_SHORT
|
Deadline specified by the client was too short. |
UNSUPPORTED_VERSION
|
This API version has been sunset and is no longer supported. |
CLOUD_PROJECT_NOT_FOUND
|
The Google Cloud project in the request was not found. |
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-07 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[],[],null,["# RequestError\n\nEnum describing possible request errors.\n\n| Enums ||\n|-------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ### `UNSPECIFIED` | Enum unspecified. |\n| ### `UNKNOWN` | The received error code is not known in this version. |\n| ### `RESOURCE_NAME_MISSING` | Resource name is required for this request. |\n| ### `RESOURCE_NAME_MALFORMED` | Resource name provided is malformed. |\n| ### `BAD_RESOURCE_ID` | Resource name provided is malformed. |\n| ### `INVALID_CUSTOMER_ID` | Customer ID is invalid. |\n| ### `OPERATION_REQUIRED` | Mutate operation should have either create, update, or remove specified. |\n| ### `RESOURCE_NOT_FOUND` | Requested resource not found. |\n| ### `INVALID_PAGE_TOKEN` | Next page token specified in user request is invalid. |\n| ### `EXPIRED_PAGE_TOKEN` | Next page token specified in user request has expired. |\n| ### `INVALID_PAGE_SIZE` | Page size specified in user request is invalid. |\n| ### `PAGE_SIZE_NOT_SUPPORTED` | Setting the page size is not supported, and will be unavailable in a future version. |\n| ### `REQUIRED_FIELD_MISSING` | Required field is missing. |\n| ### `IMMUTABLE_FIELD` | The field cannot be modified because it's immutable. It's also possible that the field can be modified using 'create' operation but not 'update'. |\n| ### `TOO_MANY_MUTATE_OPERATIONS` | Received too many entries in request. |\n| ### `CANNOT_BE_EXECUTED_BY_MANAGER_ACCOUNT` | Request cannot be executed by a manager account. |\n| ### `CANNOT_MODIFY_FOREIGN_FIELD` | Mutate request was attempting to modify a readonly field. For instance, Budget fields can be requested for Ad Group, but are read-only for adGroups:mutate. |\n| ### `INVALID_ENUM_VALUE` | Enum value is not permitted. |\n| ### `DEVELOPER_TOKEN_PARAMETER_MISSING` | The developer-token parameter is required for all requests. |\n| ### `LOGIN_CUSTOMER_ID_PARAMETER_MISSING` | The login-customer-id parameter is required for this request. |\n| ### `VALIDATE_ONLY_REQUEST_HAS_PAGE_TOKEN` | page_token is set in the validate only request |\n| ### `CANNOT_RETURN_SUMMARY_ROW_FOR_REQUEST_WITHOUT_METRICS` | return_summary_row cannot be enabled if request did not select any metrics field. |\n| ### `CANNOT_RETURN_SUMMARY_ROW_FOR_VALIDATE_ONLY_REQUESTS` | return_summary_row should not be enabled for validate only requests. |\n| ### `INCONSISTENT_RETURN_SUMMARY_ROW_VALUE` | return_summary_row parameter value should be the same between requests with page_token field set and their original request. |\n| ### `TOTAL_RESULTS_COUNT_NOT_ORIGINALLY_REQUESTED` | The total results count cannot be returned if it was not requested in the original request. |\n| ### `RPC_DEADLINE_TOO_SHORT` | Deadline specified by the client was too short. |\n| ### `UNSUPPORTED_VERSION` | This API version has been sunset and is no longer supported. |\n| ### `CLOUD_PROJECT_NOT_FOUND` | The Google Cloud project in the request was not found. |"]]