authentication_error.proto 3.3 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 = "AuthenticationErrorProto";
  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 authentication errors.
  25. // Container for enum describing possible authentication errors.
  26. message AuthenticationErrorEnum {
  27. // Enum describing possible authentication errors.
  28. enum AuthenticationError {
  29. // Enum unspecified.
  30. UNSPECIFIED = 0;
  31. // The received error code is not known in this version.
  32. UNKNOWN = 1;
  33. // Authentication of the request failed.
  34. AUTHENTICATION_ERROR = 2;
  35. // Client customer ID is not a number.
  36. CLIENT_CUSTOMER_ID_INVALID = 5;
  37. // No customer found for the provided customer ID.
  38. CUSTOMER_NOT_FOUND = 8;
  39. // Client's Google account is deleted.
  40. GOOGLE_ACCOUNT_DELETED = 9;
  41. // Google account login token in the cookie is invalid.
  42. GOOGLE_ACCOUNT_COOKIE_INVALID = 10;
  43. // A problem occurred during Google account authentication.
  44. GOOGLE_ACCOUNT_AUTHENTICATION_FAILED = 25;
  45. // The user in the Google account login token does not match the user ID in
  46. // the cookie.
  47. GOOGLE_ACCOUNT_USER_AND_ADS_USER_MISMATCH = 12;
  48. // Login cookie is required for authentication.
  49. LOGIN_COOKIE_REQUIRED = 13;
  50. // User in the cookie is not a valid Ads user.
  51. NOT_ADS_USER = 14;
  52. // OAuth token in the header is not valid.
  53. OAUTH_TOKEN_INVALID = 15;
  54. // OAuth token in the header has expired.
  55. OAUTH_TOKEN_EXPIRED = 16;
  56. // OAuth token in the header has been disabled.
  57. OAUTH_TOKEN_DISABLED = 17;
  58. // OAuth token in the header has been revoked.
  59. OAUTH_TOKEN_REVOKED = 18;
  60. // OAuth token HTTP header is malformed.
  61. OAUTH_TOKEN_HEADER_INVALID = 19;
  62. // Login cookie is not valid.
  63. LOGIN_COOKIE_INVALID = 20;
  64. // User ID in the header is not a valid ID.
  65. USER_ID_INVALID = 22;
  66. // An account administrator changed this account's authentication settings.
  67. // To access this Google Ads account, enable 2-Step Verification in your
  68. // Google account at https://www.google.com/landing/2step.
  69. TWO_STEP_VERIFICATION_NOT_ENROLLED = 23;
  70. // An account administrator changed this account's authentication settings.
  71. // To access this Google Ads account, enable Advanced Protection in your
  72. // Google account at https://landing.google.com/advancedprotection.
  73. ADVANCED_PROTECTION_NOT_ENROLLED = 24;
  74. }
  75. }