bidding_data_exclusion.proto 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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.v10.resources;
  16. import "google/ads/googleads/v10/enums/advertising_channel_type.proto";
  17. import "google/ads/googleads/v10/enums/device.proto";
  18. import "google/ads/googleads/v10/enums/seasonality_event_scope.proto";
  19. import "google/ads/googleads/v10/enums/seasonality_event_status.proto";
  20. import "google/api/field_behavior.proto";
  21. import "google/api/resource.proto";
  22. option csharp_namespace = "Google.Ads.GoogleAds.V10.Resources";
  23. option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v10/resources;resources";
  24. option java_multiple_files = true;
  25. option java_outer_classname = "BiddingDataExclusionProto";
  26. option java_package = "com.google.ads.googleads.v10.resources";
  27. option objc_class_prefix = "GAA";
  28. option php_namespace = "Google\\Ads\\GoogleAds\\V10\\Resources";
  29. option ruby_package = "Google::Ads::GoogleAds::V10::Resources";
  30. // Represents a bidding data exclusion.
  31. //
  32. // See "About data exclusions" at
  33. // https://support.google.com/google-ads/answer/10370710.
  34. message BiddingDataExclusion {
  35. option (google.api.resource) = {
  36. type: "googleads.googleapis.com/BiddingDataExclusion"
  37. pattern: "customers/{customer_id}/biddingDataExclusions/{seasonality_event_id}"
  38. };
  39. // Immutable. The resource name of the data exclusion.
  40. // Data exclusion resource names have the form:
  41. //
  42. // `customers/{customer_id}/biddingDataExclusions/{data_exclusion_id}`
  43. string resource_name = 1 [
  44. (google.api.field_behavior) = IMMUTABLE,
  45. (google.api.resource_reference) = {
  46. type: "googleads.googleapis.com/BiddingDataExclusion"
  47. }
  48. ];
  49. // Output only. The ID of the data exclusion.
  50. int64 data_exclusion_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
  51. // The scope of the data exclusion.
  52. google.ads.googleads.v10.enums.SeasonalityEventScopeEnum.SeasonalityEventScope scope = 3;
  53. // Output only. The status of the data exclusion.
  54. google.ads.googleads.v10.enums.SeasonalityEventStatusEnum.SeasonalityEventStatus status = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
  55. // Required. The inclusive start time of the data exclusion in yyyy-MM-dd HH:mm:ss
  56. // format.
  57. //
  58. // A data exclusion is backward looking and should be used for events that
  59. // start in the past and end either in the past or future.
  60. string start_date_time = 5 [(google.api.field_behavior) = REQUIRED];
  61. // Required. The exclusive end time of the data exclusion in yyyy-MM-dd HH:mm:ss format.
  62. //
  63. // The length of [start_date_time, end_date_time) interval must be
  64. // within (0, 14 days].
  65. string end_date_time = 6 [(google.api.field_behavior) = REQUIRED];
  66. // The name of the data exclusion. The name can be at most 255
  67. // characters.
  68. string name = 7;
  69. // The description of the data exclusion. The description can be at
  70. // most 2048 characters.
  71. string description = 8;
  72. // If not specified, all devices will be included in this exclusion.
  73. // Otherwise, only the specified targeted devices will be included in this
  74. // exclusion.
  75. repeated google.ads.googleads.v10.enums.DeviceEnum.Device devices = 9;
  76. // The data exclusion will apply to the campaigns listed when the scope of
  77. // this exclusion is CAMPAIGN. The maximum number of campaigns per event is
  78. // 2000.
  79. // Note: a data exclusion with both advertising_channel_types and
  80. // campaign_ids is not supported.
  81. repeated string campaigns = 10 [(google.api.resource_reference) = {
  82. type: "googleads.googleapis.com/Campaign"
  83. }];
  84. // The data_exclusion will apply to all the campaigns under the listed
  85. // channels retroactively as well as going forward when the scope of this
  86. // exclusion is CHANNEL.
  87. // The supported advertising channel types are DISPLAY, SEARCH and SHOPPING.
  88. // Note: a data exclusion with both advertising_channel_types and
  89. // campaign_ids is not supported.
  90. repeated google.ads.googleads.v10.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType advertising_channel_types = 11;
  91. }