feed_item_set.proto 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. // Copyright 2022 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.v11.resources;
  16. import "google/ads/googleads/v11/common/feed_item_set_filter_type_infos.proto";
  17. import "google/ads/googleads/v11/enums/feed_item_set_status.proto";
  18. import "google/api/field_behavior.proto";
  19. import "google/api/resource.proto";
  20. option csharp_namespace = "Google.Ads.GoogleAds.V11.Resources";
  21. option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v11/resources;resources";
  22. option java_multiple_files = true;
  23. option java_outer_classname = "FeedItemSetProto";
  24. option java_package = "com.google.ads.googleads.v11.resources";
  25. option objc_class_prefix = "GAA";
  26. option php_namespace = "Google\\Ads\\GoogleAds\\V11\\Resources";
  27. option ruby_package = "Google::Ads::GoogleAds::V11::Resources";
  28. // Represents a set of feed items. The set can be used and shared among certain
  29. // feed item features. For instance, the set can be referenced within the
  30. // matching functions of CustomerFeed, CampaignFeed, and AdGroupFeed.
  31. message FeedItemSet {
  32. option (google.api.resource) = {
  33. type: "googleads.googleapis.com/FeedItemSet"
  34. pattern: "customers/{customer_id}/feedItemSets/{feed_id}~{feed_item_set_id}"
  35. };
  36. // Immutable. The resource name of the feed item set.
  37. // Feed item set resource names have the form:
  38. // `customers/{customer_id}/feedItemSets/{feed_id}~{feed_item_set_id}`
  39. string resource_name = 1 [
  40. (google.api.field_behavior) = IMMUTABLE,
  41. (google.api.resource_reference) = {
  42. type: "googleads.googleapis.com/FeedItemSet"
  43. }
  44. ];
  45. // Immutable. The resource name of the feed containing the feed items in the set.
  46. // Immutable. Required.
  47. string feed = 2 [
  48. (google.api.field_behavior) = IMMUTABLE,
  49. (google.api.resource_reference) = {
  50. type: "googleads.googleapis.com/Feed"
  51. }
  52. ];
  53. // Output only. ID of the set.
  54. int64 feed_item_set_id = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
  55. // Name of the set. Must be unique within the account.
  56. string display_name = 4;
  57. // Output only. Status of the feed item set.
  58. // This field is read-only.
  59. google.ads.googleads.v11.enums.FeedItemSetStatusEnum.FeedItemSetStatus status = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
  60. // Represents a filter on locations in a feed item set.
  61. // Only applicable if the parent Feed of the FeedItemSet is a LOCATION feed.
  62. oneof dynamic_set_filter {
  63. // Filter for dynamic location set.
  64. // It is only used for sets of locations.
  65. google.ads.googleads.v11.common.DynamicLocationSetFilter dynamic_location_set_filter = 5;
  66. // Filter for dynamic affiliate location set.
  67. // This field doesn't apply generally to feed item sets. It is only used for
  68. // sets of affiliate locations.
  69. google.ads.googleads.v11.common.DynamicAffiliateLocationSetFilter dynamic_affiliate_location_set_filter = 6;
  70. }
  71. }