• 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 = "SettingErrorProto";
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 setting errors.
29
30// Container for enum describing possible setting errors.
31message SettingErrorEnum {
32  // Enum describing possible setting errors.
33  enum SettingError {
34    // Enum unspecified.
35    UNSPECIFIED = 0;
36
37    // The received error code is not known in this version.
38    UNKNOWN = 1;
39
40    // The campaign setting is not available for this Google Ads account.
41    SETTING_TYPE_IS_NOT_AVAILABLE = 3;
42
43    // The setting is not compatible with the campaign.
44    SETTING_TYPE_IS_NOT_COMPATIBLE_WITH_CAMPAIGN = 4;
45
46    // The supplied TargetingSetting contains an invalid CriterionTypeGroup. See
47    // CriterionTypeGroup documentation for CriterionTypeGroups allowed
48    // in Campaign or AdGroup TargetingSettings.
49    TARGETING_SETTING_CONTAINS_INVALID_CRITERION_TYPE_GROUP = 5;
50
51    // TargetingSetting must not explicitly
52    // set any of the Demographic CriterionTypeGroups (AGE_RANGE, GENDER,
53    // PARENT, INCOME_RANGE) to false (it's okay to not set them at all, in
54    // which case the system will set them to true automatically).
55    TARGETING_SETTING_DEMOGRAPHIC_CRITERION_TYPE_GROUPS_MUST_BE_SET_TO_TARGET_ALL =
56        6;
57
58    // TargetingSetting cannot change any of
59    // the Demographic CriterionTypeGroups (AGE_RANGE, GENDER, PARENT,
60    // INCOME_RANGE) from true to false.
61    TARGETING_SETTING_CANNOT_CHANGE_TARGET_ALL_TO_FALSE_FOR_DEMOGRAPHIC_CRITERION_TYPE_GROUP =
62        7;
63
64    // At least one feed id should be present.
65    DYNAMIC_SEARCH_ADS_SETTING_AT_LEAST_ONE_FEED_ID_MUST_BE_PRESENT = 8;
66
67    // The supplied DynamicSearchAdsSetting contains an invalid domain name.
68    DYNAMIC_SEARCH_ADS_SETTING_CONTAINS_INVALID_DOMAIN_NAME = 9;
69
70    // The supplied DynamicSearchAdsSetting contains a subdomain name.
71    DYNAMIC_SEARCH_ADS_SETTING_CONTAINS_SUBDOMAIN_NAME = 10;
72
73    // The supplied DynamicSearchAdsSetting contains an invalid language code.
74    DYNAMIC_SEARCH_ADS_SETTING_CONTAINS_INVALID_LANGUAGE_CODE = 11;
75
76    // TargetingSettings in search campaigns should not have
77    // CriterionTypeGroup.PLACEMENT set to targetAll.
78    TARGET_ALL_IS_NOT_ALLOWED_FOR_PLACEMENT_IN_SEARCH_CAMPAIGN = 12;
79
80    // The setting value is not compatible with the campaign type.
81    SETTING_VALUE_NOT_COMPATIBLE_WITH_CAMPAIGN = 20;
82
83    // Switching from observation setting to targeting setting is not allowed
84    // for Customer Match lists. See
85    // https://support.google.com/google-ads/answer/6299717.
86    BID_ONLY_IS_NOT_ALLOWED_TO_BE_MODIFIED_WITH_CUSTOMER_MATCH_TARGETING = 21;
87  }
88}
89