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 = "CustomerManagerLinkErrorProto";
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 CustomerManagerLink errors.
32 // Container for enum describing possible CustomerManagerLink errors.
33 message CustomerManagerLinkErrorEnum {
34 // Enum describing possible CustomerManagerLink errors.
35 enum CustomerManagerLinkError {
39 // The received error code is not known in this version.
42 // No pending invitation.
43 NO_PENDING_INVITE = 2;
45 // Attempt to operate on the same client more than once in the same call.
46 SAME_CLIENT_MORE_THAN_ONCE_PER_CALL = 3;
48 // Manager account has the maximum number of linked accounts.
49 MANAGER_HAS_MAX_NUMBER_OF_LINKED_ACCOUNTS = 4;
51 // If no active user on account it cannot be unlinked from its manager.
52 CANNOT_UNLINK_ACCOUNT_WITHOUT_ACTIVE_USER = 5;
54 // Account should have at least one active owner on it before being
56 CANNOT_REMOVE_LAST_CLIENT_ACCOUNT_OWNER = 6;
58 // Only account owners may change their permission role.
59 CANNOT_CHANGE_ROLE_BY_NON_ACCOUNT_OWNER = 7;
61 // When a client's link to its manager is not active, the link role cannot
63 CANNOT_CHANGE_ROLE_FOR_NON_ACTIVE_LINK_ACCOUNT = 8;
65 // Attempt to link a child to a parent that contains or will contain
66 // duplicate children.
67 DUPLICATE_CHILD_FOUND = 9;