• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright 2023 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
15syntax = "proto3";
16
17package google.ads.googleads.v16.errors;
18
19option csharp_namespace = "Google.Ads.GoogleAds.V16.Errors";
20option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v16/errors;errors";
21option java_multiple_files = true;
22option java_outer_classname = "RequestErrorProto";
23option java_package = "com.google.ads.googleads.v16.errors";
24option objc_class_prefix = "GAA";
25option php_namespace = "Google\\Ads\\GoogleAds\\V16\\Errors";
26option ruby_package = "Google::Ads::GoogleAds::V16::Errors";
27
28// Proto file describing request errors.
29
30// Container for enum describing possible request errors.
31message RequestErrorEnum {
32  // Enum describing possible request errors.
33  enum RequestError {
34    // Enum unspecified.
35    UNSPECIFIED = 0;
36
37    // The received error code is not known in this version.
38    UNKNOWN = 1;
39
40    // Resource name is required for this request.
41    RESOURCE_NAME_MISSING = 3;
42
43    // Resource name provided is malformed.
44    RESOURCE_NAME_MALFORMED = 4;
45
46    // Resource name provided is malformed.
47    BAD_RESOURCE_ID = 17;
48
49    // Customer ID is invalid.
50    INVALID_CUSTOMER_ID = 16;
51
52    // Mutate operation should have either create, update, or remove specified.
53    OPERATION_REQUIRED = 5;
54
55    // Requested resource not found.
56    RESOURCE_NOT_FOUND = 6;
57
58    // Next page token specified in user request is invalid.
59    INVALID_PAGE_TOKEN = 7;
60
61    // Next page token specified in user request has expired.
62    EXPIRED_PAGE_TOKEN = 8;
63
64    // Page size specified in user request is invalid.
65    INVALID_PAGE_SIZE = 22;
66
67    // Setting the page size is not supported, and will be unavailable in a
68    // future version.
69    PAGE_SIZE_NOT_SUPPORTED = 40;
70
71    // Required field is missing.
72    REQUIRED_FIELD_MISSING = 9;
73
74    // The field cannot be modified because it's immutable. It's also possible
75    // that the field can be modified using 'create' operation but not 'update'.
76    IMMUTABLE_FIELD = 11;
77
78    // Received too many entries in request.
79    TOO_MANY_MUTATE_OPERATIONS = 13;
80
81    // Request cannot be executed by a manager account.
82    CANNOT_BE_EXECUTED_BY_MANAGER_ACCOUNT = 14;
83
84    // Mutate request was attempting to modify a readonly field.
85    // For instance, Budget fields can be requested for Ad Group,
86    // but are read-only for adGroups:mutate.
87    CANNOT_MODIFY_FOREIGN_FIELD = 15;
88
89    // Enum value is not permitted.
90    INVALID_ENUM_VALUE = 18;
91
92    // The developer-token parameter is required for all requests.
93    DEVELOPER_TOKEN_PARAMETER_MISSING = 19;
94
95    // The login-customer-id parameter is required for this request.
96    LOGIN_CUSTOMER_ID_PARAMETER_MISSING = 20;
97
98    // page_token is set in the validate only request
99    VALIDATE_ONLY_REQUEST_HAS_PAGE_TOKEN = 21;
100
101    // return_summary_row cannot be enabled if request did not select any
102    // metrics field.
103    CANNOT_RETURN_SUMMARY_ROW_FOR_REQUEST_WITHOUT_METRICS = 29;
104
105    // return_summary_row should not be enabled for validate only requests.
106    CANNOT_RETURN_SUMMARY_ROW_FOR_VALIDATE_ONLY_REQUESTS = 30;
107
108    // return_summary_row parameter value should be the same between requests
109    // with page_token field set and their original request.
110    INCONSISTENT_RETURN_SUMMARY_ROW_VALUE = 31;
111
112    // The total results count cannot be returned if it was not requested in the
113    // original request.
114    TOTAL_RESULTS_COUNT_NOT_ORIGINALLY_REQUESTED = 32;
115
116    // Deadline specified by the client was too short.
117    RPC_DEADLINE_TOO_SHORT = 33;
118
119    // This API version has been sunset and is no longer supported.
120    UNSUPPORTED_VERSION = 38;
121
122    // The Google Cloud project in the request was not found.
123    CLOUD_PROJECT_NOT_FOUND = 39;
124  }
125}
126