manager_link_error.proto 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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.v12.errors;
  16. option csharp_namespace = "Google.Ads.GoogleAds.V12.Errors";
  17. option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v12/errors;errors";
  18. option java_multiple_files = true;
  19. option java_outer_classname = "ManagerLinkErrorProto";
  20. option java_package = "com.google.ads.googleads.v12.errors";
  21. option objc_class_prefix = "GAA";
  22. option php_namespace = "Google\\Ads\\GoogleAds\\V12\\Errors";
  23. option ruby_package = "Google::Ads::GoogleAds::V12::Errors";
  24. // Proto file describing ManagerLink errors.
  25. // Container for enum describing possible ManagerLink errors.
  26. message ManagerLinkErrorEnum {
  27. // Enum describing possible ManagerLink errors.
  28. enum ManagerLinkError {
  29. // Enum unspecified.
  30. UNSPECIFIED = 0;
  31. // The received error code is not known in this version.
  32. UNKNOWN = 1;
  33. // The manager and client have incompatible account types.
  34. ACCOUNTS_NOT_COMPATIBLE_FOR_LINKING = 2;
  35. // Client is already linked to too many managers.
  36. TOO_MANY_MANAGERS = 3;
  37. // Manager has too many pending invitations.
  38. TOO_MANY_INVITES = 4;
  39. // Client is already invited by this manager.
  40. ALREADY_INVITED_BY_THIS_MANAGER = 5;
  41. // The client is already managed by this manager.
  42. ALREADY_MANAGED_BY_THIS_MANAGER = 6;
  43. // Client is already managed in hierarchy.
  44. ALREADY_MANAGED_IN_HIERARCHY = 7;
  45. // Manager and sub-manager to be linked have duplicate client.
  46. DUPLICATE_CHILD_FOUND = 8;
  47. // Client has no active user that can access the client account.
  48. CLIENT_HAS_NO_ADMIN_USER = 9;
  49. // Adding this link would exceed the maximum hierarchy depth.
  50. MAX_DEPTH_EXCEEDED = 10;
  51. // Adding this link will create a cycle.
  52. CYCLE_NOT_ALLOWED = 11;
  53. // Manager account has the maximum number of linked clients.
  54. TOO_MANY_ACCOUNTS = 12;
  55. // Parent manager account has the maximum number of linked clients.
  56. TOO_MANY_ACCOUNTS_AT_MANAGER = 13;
  57. // The account is not authorized owner.
  58. NON_OWNER_USER_CANNOT_MODIFY_LINK = 14;
  59. // Your manager account is suspended, and you are no longer allowed to link
  60. // to clients.
  61. SUSPENDED_ACCOUNT_CANNOT_ADD_CLIENTS = 15;
  62. // You are not allowed to move a client to a manager that is not under your
  63. // current hierarchy.
  64. CLIENT_OUTSIDE_TREE = 16;
  65. // The changed status for mutate link is invalid.
  66. INVALID_STATUS_CHANGE = 17;
  67. // The change for mutate link is invalid.
  68. INVALID_CHANGE = 18;
  69. // You are not allowed to link a manager account to itself.
  70. CUSTOMER_CANNOT_MANAGE_SELF = 19;
  71. // The link was created with status ACTIVE and not PENDING.
  72. CREATING_ENABLED_LINK_NOT_ALLOWED = 20;
  73. }
  74. }