1 // Copyright 2019 Google LLC.
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
7 // http://www.apache.org/licenses/LICENSE-2.0
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.
18 package google.ads.googleads.v1.resources;
20 import "google/ads/googleads/v1/common/text_label.proto";
21 import "google/ads/googleads/v1/enums/label_status.proto";
22 import "google/protobuf/wrappers.proto";
23 import "google/api/annotations.proto";
25 option csharp_namespace = "Google.Ads.GoogleAds.V1.Resources";
26 option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/resources;resources";
27 option java_multiple_files = true;
28 option java_outer_classname = "LabelProto";
29 option java_package = "com.google.ads.googleads.v1.resources";
30 option objc_class_prefix = "GAA";
31 option php_namespace = "Google\\Ads\\GoogleAds\\V1\\Resources";
32 option ruby_package = "Google::Ads::GoogleAds::V1::Resources";
37 // Name of the resource.
38 // Label resource names have the form:
39 // `customers/{customer_id}/labels/{label_id}`
40 string resource_name = 1;
42 // Id of the label. Read only.
43 google.protobuf.Int64Value id = 2;
45 // The name of the label.
47 // This field is required and should not be empty when creating a new label.
49 // The length of this string should be between 1 and 80, inclusive.
50 google.protobuf.StringValue name = 3;
52 // Status of the label. Read only.
53 google.ads.googleads.v1.enums.LabelStatusEnum.LabelStatus status = 4;
55 // A type of label displaying text on a colored background.
56 google.ads.googleads.v1.common.TextLabel text_label = 5;