request_error.proto 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. // Copyright 2022 Google LLC
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. syntax = "proto3";
  15. package google.ads.googleads.v10.errors;
  16. option csharp_namespace = "Google.Ads.GoogleAds.V10.Errors";
  17. option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v10/errors;errors";
  18. option java_multiple_files = true;
  19. option java_outer_classname = "RequestErrorProto";
  20. option java_package = "com.google.ads.googleads.v10.errors";
  21. option objc_class_prefix = "GAA";
  22. option php_namespace = "Google\\Ads\\GoogleAds\\V10\\Errors";
  23. option ruby_package = "Google::Ads::GoogleAds::V10::Errors";
  24. // Proto file describing request errors.
  25. // Container for enum describing possible request errors.
  26. message RequestErrorEnum {
  27. // Enum describing possible request errors.
  28. enum RequestError {
  29. // Enum unspecified.
  30. UNSPECIFIED = 0;
  31. // The received error code is not known in this version.
  32. UNKNOWN = 1;
  33. // Resource name is required for this request.
  34. RESOURCE_NAME_MISSING = 3;
  35. // Resource name provided is malformed.
  36. RESOURCE_NAME_MALFORMED = 4;
  37. // Resource name provided is malformed.
  38. BAD_RESOURCE_ID = 17;
  39. // Customer ID is invalid.
  40. INVALID_CUSTOMER_ID = 16;
  41. // Mutate operation should have either create, update, or remove specified.
  42. OPERATION_REQUIRED = 5;
  43. // Requested resource not found.
  44. RESOURCE_NOT_FOUND = 6;
  45. // Next page token specified in user request is invalid.
  46. INVALID_PAGE_TOKEN = 7;
  47. // Next page token specified in user request has expired.
  48. EXPIRED_PAGE_TOKEN = 8;
  49. // Page size specified in user request is invalid.
  50. INVALID_PAGE_SIZE = 22;
  51. // Required field is missing.
  52. REQUIRED_FIELD_MISSING = 9;
  53. // The field cannot be modified because it's immutable. It's also possible
  54. // that the field can be modified using 'create' operation but not 'update'.
  55. IMMUTABLE_FIELD = 11;
  56. // Received too many entries in request.
  57. TOO_MANY_MUTATE_OPERATIONS = 13;
  58. // Request cannot be executed by a manager account.
  59. CANNOT_BE_EXECUTED_BY_MANAGER_ACCOUNT = 14;
  60. // Mutate request was attempting to modify a readonly field.
  61. // For instance, Budget fields can be requested for Ad Group,
  62. // but are read-only for adGroups:mutate.
  63. CANNOT_MODIFY_FOREIGN_FIELD = 15;
  64. // Enum value is not permitted.
  65. INVALID_ENUM_VALUE = 18;
  66. // The developer-token parameter is required for all requests.
  67. DEVELOPER_TOKEN_PARAMETER_MISSING = 19;
  68. // The login-customer-id parameter is required for this request.
  69. LOGIN_CUSTOMER_ID_PARAMETER_MISSING = 20;
  70. // page_token is set in the validate only request
  71. VALIDATE_ONLY_REQUEST_HAS_PAGE_TOKEN = 21;
  72. // return_summary_row cannot be enabled if request did not select any
  73. // metrics field.
  74. CANNOT_RETURN_SUMMARY_ROW_FOR_REQUEST_WITHOUT_METRICS = 29;
  75. // return_summary_row should not be enabled for validate only requests.
  76. CANNOT_RETURN_SUMMARY_ROW_FOR_VALIDATE_ONLY_REQUESTS = 30;
  77. // return_summary_row parameter value should be the same between requests
  78. // with page_token field set and their original request.
  79. INCONSISTENT_RETURN_SUMMARY_ROW_VALUE = 31;
  80. // The total results count cannot be returned if it was not requested in the
  81. // original request.
  82. TOTAL_RESULTS_COUNT_NOT_ORIGINALLY_REQUESTED = 32;
  83. // Deadline specified by the client was too short.
  84. RPC_DEADLINE_TOO_SHORT = 33;
  85. }
  86. }