• 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.v16.resources;
18
19import "google/ads/googleads/v16/common/matching_function.proto";
20import "google/ads/googleads/v16/enums/feed_link_status.proto";
21import "google/ads/googleads/v16/enums/placeholder_type.proto";
22import "google/api/field_behavior.proto";
23import "google/api/resource.proto";
24
25option csharp_namespace = "Google.Ads.GoogleAds.V16.Resources";
26option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v16/resources;resources";
27option java_multiple_files = true;
28option java_outer_classname = "CustomerFeedProto";
29option java_package = "com.google.ads.googleads.v16.resources";
30option objc_class_prefix = "GAA";
31option php_namespace = "Google\\Ads\\GoogleAds\\V16\\Resources";
32option ruby_package = "Google::Ads::GoogleAds::V16::Resources";
33
34// Proto file describing the CustomerFeed resource.
35
36// A customer feed.
37message CustomerFeed {
38  option (google.api.resource) = {
39    type: "googleads.googleapis.com/CustomerFeed"
40    pattern: "customers/{customer_id}/customerFeeds/{feed_id}"
41  };
42
43  // Immutable. The resource name of the customer feed.
44  // Customer feed resource names have the form:
45  //
46  // `customers/{customer_id}/customerFeeds/{feed_id}`
47  string resource_name = 1 [
48    (google.api.field_behavior) = IMMUTABLE,
49    (google.api.resource_reference) = {
50      type: "googleads.googleapis.com/CustomerFeed"
51    }
52  ];
53
54  // Immutable. The feed being linked to the customer.
55  optional string feed = 6 [
56    (google.api.field_behavior) = IMMUTABLE,
57    (google.api.resource_reference) = { type: "googleads.googleapis.com/Feed" }
58  ];
59
60  // Indicates which placeholder types the feed may populate under the connected
61  // customer. Required.
62  repeated google.ads.googleads.v16.enums.PlaceholderTypeEnum.PlaceholderType
63      placeholder_types = 3;
64
65  // Matching function associated with the CustomerFeed.
66  // The matching function is used to filter the set of feed items selected.
67  // Required.
68  google.ads.googleads.v16.common.MatchingFunction matching_function = 4;
69
70  // Output only. Status of the customer feed.
71  // This field is read-only.
72  google.ads.googleads.v16.enums.FeedLinkStatusEnum.FeedLinkStatus status = 5
73      [(google.api.field_behavior) = OUTPUT_ONLY];
74}
75