1 // Copyright 2019 Google LLC.
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
7 // http://www.apache.org/licenses/LICENSE-2.0
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.
18 package google.ads.googleads.v1.errors;
20 import "google/api/annotations.proto";
22 option csharp_namespace = "Google.Ads.GoogleAds.V1.Errors";
23 option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors";
24 option java_multiple_files = true;
25 option java_outer_classname = "OperationAccessDeniedErrorProto";
26 option java_package = "com.google.ads.googleads.v1.errors";
27 option objc_class_prefix = "GAA";
28 option php_namespace = "Google\\Ads\\GoogleAds\\V1\\Errors";
29 option ruby_package = "Google::Ads::GoogleAds::V1::Errors";
30 // Proto file describing operation access denied errors.
32 // Container for enum describing possible operation access denied errors.
33 message OperationAccessDeniedErrorEnum {
34 // Enum describing possible operation access denied errors.
35 enum OperationAccessDeniedError {
39 // The received error code is not known in this version.
42 // Unauthorized invocation of a service's method (get, mutate, etc.)
43 ACTION_NOT_PERMITTED = 2;
45 // Unauthorized CREATE operation in invoking a service's mutate method.
46 CREATE_OPERATION_NOT_PERMITTED = 3;
48 // Unauthorized REMOVE operation in invoking a service's mutate method.
49 REMOVE_OPERATION_NOT_PERMITTED = 4;
51 // Unauthorized UPDATE operation in invoking a service's mutate method.
52 UPDATE_OPERATION_NOT_PERMITTED = 5;
54 // A mutate action is not allowed on this campaign, from this client.
55 MUTATE_ACTION_NOT_PERMITTED_FOR_CLIENT = 6;
57 // This operation is not permitted on this campaign type
58 OPERATION_NOT_PERMITTED_FOR_CAMPAIGN_TYPE = 7;
60 // A CREATE operation may not set status to REMOVED.
61 CREATE_AS_REMOVED_NOT_PERMITTED = 8;
63 // This operation is not allowed because the campaign or adgroup is removed.
64 OPERATION_NOT_PERMITTED_FOR_REMOVED_RESOURCE = 9;
66 // This operation is not permitted on this ad group type.
67 OPERATION_NOT_PERMITTED_FOR_AD_GROUP_TYPE = 10;
69 // The mutate is not allowed for this customer.
70 MUTATE_NOT_PERMITTED_FOR_CUSTOMER = 11;