customer_feed.proto 2.8 KB

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