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.v14.errors; 18 19option csharp_namespace = "Google.Ads.GoogleAds.V14.Errors"; 20option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v14/errors;errors"; 21option java_multiple_files = true; 22option java_outer_classname = "AuthenticationErrorProto"; 23option java_package = "com.google.ads.googleads.v14.errors"; 24option objc_class_prefix = "GAA"; 25option php_namespace = "Google\\Ads\\GoogleAds\\V14\\Errors"; 26option ruby_package = "Google::Ads::GoogleAds::V14::Errors"; 27 28// Proto file describing authentication errors. 29 30// Container for enum describing possible authentication errors. 31message AuthenticationErrorEnum { 32 // Enum describing possible authentication errors. 33 enum AuthenticationError { 34 // Enum unspecified. 35 UNSPECIFIED = 0; 36 37 // The received error code is not known in this version. 38 UNKNOWN = 1; 39 40 // Authentication of the request failed. 41 AUTHENTICATION_ERROR = 2; 42 43 // Client customer ID is not a number. 44 CLIENT_CUSTOMER_ID_INVALID = 5; 45 46 // No customer found for the provided customer ID. 47 CUSTOMER_NOT_FOUND = 8; 48 49 // Client's Google account is deleted. 50 GOOGLE_ACCOUNT_DELETED = 9; 51 52 // Google account login token in the cookie is invalid. 53 GOOGLE_ACCOUNT_COOKIE_INVALID = 10; 54 55 // A problem occurred during Google account authentication. 56 GOOGLE_ACCOUNT_AUTHENTICATION_FAILED = 25; 57 58 // The user in the Google account login token does not match the user ID in 59 // the cookie. 60 GOOGLE_ACCOUNT_USER_AND_ADS_USER_MISMATCH = 12; 61 62 // Login cookie is required for authentication. 63 LOGIN_COOKIE_REQUIRED = 13; 64 65 // User in the cookie is not a valid Ads user. 66 NOT_ADS_USER = 14; 67 68 // OAuth token in the header is not valid. 69 OAUTH_TOKEN_INVALID = 15; 70 71 // OAuth token in the header has expired. 72 OAUTH_TOKEN_EXPIRED = 16; 73 74 // OAuth token in the header has been disabled. 75 OAUTH_TOKEN_DISABLED = 17; 76 77 // OAuth token in the header has been revoked. 78 OAUTH_TOKEN_REVOKED = 18; 79 80 // OAuth token HTTP header is malformed. 81 OAUTH_TOKEN_HEADER_INVALID = 19; 82 83 // Login cookie is not valid. 84 LOGIN_COOKIE_INVALID = 20; 85 86 // User ID in the header is not a valid ID. 87 USER_ID_INVALID = 22; 88 89 // An account administrator changed this account's authentication settings. 90 // To access this Google Ads account, enable 2-Step Verification in your 91 // Google account at https://www.google.com/landing/2step. 92 TWO_STEP_VERIFICATION_NOT_ENROLLED = 23; 93 94 // An account administrator changed this account's authentication settings. 95 // To access this Google Ads account, enable Advanced Protection in your 96 // Google account at https://landing.google.com/advancedprotection. 97 ADVANCED_PROTECTION_NOT_ENROLLED = 24; 98 99 // The Cloud organization associated with the project is not recognized. 100 ORGANIZATION_NOT_RECOGNIZED = 26; 101 102 // The Cloud organization associated with the project is not approved for 103 // prod access. 104 ORGANIZATION_NOT_APPROVED = 27; 105 106 // The Cloud organization associated with the project is not associated with 107 // the developer token. 108 ORGANIZATION_NOT_ASSOCIATED_WITH_DEVELOPER_TOKEN = 28; 109 } 110} 111