campaign_feed.proto 3.1 KB

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