extension_feed_item.proto 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  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/criteria.proto";
  17. import "google/ads/googleads/v11/common/extensions.proto";
  18. import "google/ads/googleads/v11/enums/extension_type.proto";
  19. import "google/ads/googleads/v11/enums/feed_item_status.proto";
  20. import "google/ads/googleads/v11/enums/feed_item_target_device.proto";
  21. import "google/api/field_behavior.proto";
  22. import "google/api/resource.proto";
  23. option csharp_namespace = "Google.Ads.GoogleAds.V11.Resources";
  24. option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v11/resources;resources";
  25. option java_multiple_files = true;
  26. option java_outer_classname = "ExtensionFeedItemProto";
  27. option java_package = "com.google.ads.googleads.v11.resources";
  28. option objc_class_prefix = "GAA";
  29. option php_namespace = "Google\\Ads\\GoogleAds\\V11\\Resources";
  30. option ruby_package = "Google::Ads::GoogleAds::V11::Resources";
  31. // Proto file describing the ExtensionFeedItem resource.
  32. // An extension feed item.
  33. message ExtensionFeedItem {
  34. option (google.api.resource) = {
  35. type: "googleads.googleapis.com/ExtensionFeedItem"
  36. pattern: "customers/{customer_id}/extensionFeedItems/{feed_item_id}"
  37. };
  38. // Immutable. The resource name of the extension feed item.
  39. // Extension feed item resource names have the form:
  40. //
  41. // `customers/{customer_id}/extensionFeedItems/{feed_item_id}`
  42. string resource_name = 1 [
  43. (google.api.field_behavior) = IMMUTABLE,
  44. (google.api.resource_reference) = {
  45. type: "googleads.googleapis.com/ExtensionFeedItem"
  46. }
  47. ];
  48. // Output only. The ID of this feed item. Read-only.
  49. optional int64 id = 25 [(google.api.field_behavior) = OUTPUT_ONLY];
  50. // Output only. The extension type of the extension feed item.
  51. // This field is read-only.
  52. google.ads.googleads.v11.enums.ExtensionTypeEnum.ExtensionType extension_type = 13 [(google.api.field_behavior) = OUTPUT_ONLY];
  53. // Start time in which this feed item is effective and can begin serving. The
  54. // time is in the customer's time zone.
  55. // The format is "YYYY-MM-DD HH:MM:SS".
  56. // Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30"
  57. optional string start_date_time = 26;
  58. // End time in which this feed item is no longer effective and will stop
  59. // serving. The time is in the customer's time zone.
  60. // The format is "YYYY-MM-DD HH:MM:SS".
  61. // Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30"
  62. optional string end_date_time = 27;
  63. // List of non-overlapping schedules specifying all time intervals
  64. // for which the feed item may serve. There can be a maximum of 6 schedules
  65. // per day.
  66. repeated google.ads.googleads.v11.common.AdScheduleInfo ad_schedules = 16;
  67. // The targeted device.
  68. google.ads.googleads.v11.enums.FeedItemTargetDeviceEnum.FeedItemTargetDevice device = 17;
  69. // The targeted geo target constant.
  70. optional string targeted_geo_target_constant = 30 [(google.api.resource_reference) = {
  71. type: "googleads.googleapis.com/GeoTargetConstant"
  72. }];
  73. // The targeted keyword.
  74. google.ads.googleads.v11.common.KeywordInfo targeted_keyword = 22;
  75. // Output only. Status of the feed item.
  76. // This field is read-only.
  77. google.ads.googleads.v11.enums.FeedItemStatusEnum.FeedItemStatus status = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
  78. // Extension type.
  79. oneof extension {
  80. // Sitelink extension.
  81. google.ads.googleads.v11.common.SitelinkFeedItem sitelink_feed_item = 2;
  82. // Structured snippet extension.
  83. google.ads.googleads.v11.common.StructuredSnippetFeedItem structured_snippet_feed_item = 3;
  84. // App extension.
  85. google.ads.googleads.v11.common.AppFeedItem app_feed_item = 7;
  86. // Call extension.
  87. google.ads.googleads.v11.common.CallFeedItem call_feed_item = 8;
  88. // Callout extension.
  89. google.ads.googleads.v11.common.CalloutFeedItem callout_feed_item = 9;
  90. // Text message extension.
  91. google.ads.googleads.v11.common.TextMessageFeedItem text_message_feed_item = 10;
  92. // Price extension.
  93. google.ads.googleads.v11.common.PriceFeedItem price_feed_item = 11;
  94. // Promotion extension.
  95. google.ads.googleads.v11.common.PromotionFeedItem promotion_feed_item = 12;
  96. // Output only. Location extension. Locations are synced from a Business Profile into a
  97. // feed. This field is read-only.
  98. google.ads.googleads.v11.common.LocationFeedItem location_feed_item = 14 [(google.api.field_behavior) = OUTPUT_ONLY];
  99. // Output only. Affiliate location extension. Feed locations are populated by Google Ads
  100. // based on a chain ID.
  101. // This field is read-only.
  102. google.ads.googleads.v11.common.AffiliateLocationFeedItem affiliate_location_feed_item = 15 [(google.api.field_behavior) = OUTPUT_ONLY];
  103. // Hotel Callout extension.
  104. google.ads.googleads.v11.common.HotelCalloutFeedItem hotel_callout_feed_item = 23;
  105. // Immutable. Advertiser provided image extension.
  106. google.ads.googleads.v11.common.ImageFeedItem image_feed_item = 31 [(google.api.field_behavior) = IMMUTABLE];
  107. }
  108. // Targeting at either the campaign or ad group level. Feed items that target
  109. // a campaign or ad group will only serve with that resource.
  110. oneof serving_resource_targeting {
  111. // The targeted campaign.
  112. string targeted_campaign = 28 [(google.api.resource_reference) = {
  113. type: "googleads.googleapis.com/Campaign"
  114. }];
  115. // The targeted ad group.
  116. string targeted_ad_group = 29 [(google.api.resource_reference) = {
  117. type: "googleads.googleapis.com/AdGroup"
  118. }];
  119. }
  120. }