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.v16.errors; 18 19option csharp_namespace = "Google.Ads.GoogleAds.V16.Errors"; 20option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v16/errors;errors"; 21option java_multiple_files = true; 22option java_outer_classname = "AuthenticationErrorProto"; 23option java_package = "com.google.ads.googleads.v16.errors"; 24option objc_class_prefix = "GAA"; 25option php_namespace = "Google\\Ads\\GoogleAds\\V16\\Errors"; 26option ruby_package = "Google::Ads::GoogleAds::V16::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 // The Google account that generated the OAuth access 66 // token is not associated with a Google Ads account. Create a new 67 // account, or add the Google account to an existing Google Ads account. 68 NOT_ADS_USER = 14; 69 70 // OAuth token in the header is not valid. 71 OAUTH_TOKEN_INVALID = 15; 72 73 // OAuth token in the header has expired. 74 OAUTH_TOKEN_EXPIRED = 16; 75 76 // OAuth token in the header has been disabled. 77 OAUTH_TOKEN_DISABLED = 17; 78 79 // OAuth token in the header has been revoked. 80 OAUTH_TOKEN_REVOKED = 18; 81 82 // OAuth token HTTP header is malformed. 83 OAUTH_TOKEN_HEADER_INVALID = 19; 84 85 // Login cookie is not valid. 86 LOGIN_COOKIE_INVALID = 20; 87 88 // User ID in the header is not a valid ID. 89 USER_ID_INVALID = 22; 90 91 // An account administrator changed this account's authentication settings. 92 // To access this Google Ads account, enable 2-Step Verification in your 93 // Google account at https://www.google.com/landing/2step. 94 TWO_STEP_VERIFICATION_NOT_ENROLLED = 23; 95 96 // An account administrator changed this account's authentication settings. 97 // To access this Google Ads account, enable Advanced Protection in your 98 // Google account at https://landing.google.com/advancedprotection. 99 ADVANCED_PROTECTION_NOT_ENROLLED = 24; 100 101 // The Cloud organization associated with the project is not recognized. 102 ORGANIZATION_NOT_RECOGNIZED = 26; 103 104 // The Cloud organization associated with the project is not approved for 105 // prod access. 106 ORGANIZATION_NOT_APPROVED = 27; 107 108 // The Cloud organization associated with the project is not associated with 109 // the developer token. 110 ORGANIZATION_NOT_ASSOCIATED_WITH_DEVELOPER_TOKEN = 28; 111 } 112} 113