campaign_feed.proto 3.1 KB

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