• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 = "CustomerErrorProto";
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// Container for enum describing possible customer errors.
29message CustomerErrorEnum {
30  // Set of errors that are related to requests dealing with Customer.
31  enum CustomerError {
32    // Enum unspecified.
33    UNSPECIFIED = 0;
34
35    // The received error code is not known in this version.
36    UNKNOWN = 1;
37
38    // Customer status is not allowed to be changed from DRAFT and CLOSED.
39    // Currency code and at least one of country code and time zone needs to be
40    // set when status is changed to ENABLED.
41    STATUS_CHANGE_DISALLOWED = 2;
42
43    // CustomerService cannot get a customer that has not been fully set up.
44    ACCOUNT_NOT_SET_UP = 3;
45  }
46}
47