ad_group_bid_modifier.proto 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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.v12.resources;
  16. import "google/ads/googleads/v12/common/criteria.proto";
  17. import "google/ads/googleads/v12/enums/bid_modifier_source.proto";
  18. import "google/api/field_behavior.proto";
  19. import "google/api/resource.proto";
  20. option csharp_namespace = "Google.Ads.GoogleAds.V12.Resources";
  21. option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v12/resources;resources";
  22. option java_multiple_files = true;
  23. option java_outer_classname = "AdGroupBidModifierProto";
  24. option java_package = "com.google.ads.googleads.v12.resources";
  25. option objc_class_prefix = "GAA";
  26. option php_namespace = "Google\\Ads\\GoogleAds\\V12\\Resources";
  27. option ruby_package = "Google::Ads::GoogleAds::V12::Resources";
  28. // Proto file describing the ad group bid modifier resource.
  29. // Represents an ad group bid modifier.
  30. message AdGroupBidModifier {
  31. option (google.api.resource) = {
  32. type: "googleads.googleapis.com/AdGroupBidModifier"
  33. pattern: "customers/{customer_id}/adGroupBidModifiers/{ad_group_id}~{criterion_id}"
  34. };
  35. // Immutable. The resource name of the ad group bid modifier.
  36. // Ad group bid modifier resource names have the form:
  37. //
  38. // `customers/{customer_id}/adGroupBidModifiers/{ad_group_id}~{criterion_id}`
  39. string resource_name = 1 [
  40. (google.api.field_behavior) = IMMUTABLE,
  41. (google.api.resource_reference) = {
  42. type: "googleads.googleapis.com/AdGroupBidModifier"
  43. }
  44. ];
  45. // Immutable. The ad group to which this criterion belongs.
  46. optional string ad_group = 13 [
  47. (google.api.field_behavior) = IMMUTABLE,
  48. (google.api.resource_reference) = {
  49. type: "googleads.googleapis.com/AdGroup"
  50. }
  51. ];
  52. // Output only. The ID of the criterion to bid modify.
  53. //
  54. // This field is ignored for mutates.
  55. optional int64 criterion_id = 14 [(google.api.field_behavior) = OUTPUT_ONLY];
  56. // The modifier for the bid when the criterion matches. The modifier must be
  57. // in the range: 0.1 - 10.0. The range is 1.0 - 6.0 for PreferredContent.
  58. // Use 0 to opt out of a Device type.
  59. optional double bid_modifier = 15;
  60. // Output only. The base ad group from which this draft/trial adgroup bid modifier was
  61. // created. If ad_group is a base ad group then this field will be equal to
  62. // ad_group. If the ad group was created in the draft or trial and has no
  63. // corresponding base ad group, then this field will be null.
  64. // This field is readonly.
  65. optional string base_ad_group = 16 [
  66. (google.api.field_behavior) = OUTPUT_ONLY,
  67. (google.api.resource_reference) = {
  68. type: "googleads.googleapis.com/AdGroup"
  69. }
  70. ];
  71. // Output only. Bid modifier source.
  72. google.ads.googleads.v12.enums.BidModifierSourceEnum.BidModifierSource bid_modifier_source = 10 [(google.api.field_behavior) = OUTPUT_ONLY];
  73. // The criterion of this ad group bid modifier.
  74. //
  75. // Required in create operations starting in V5.
  76. oneof criterion {
  77. // Immutable. Criterion for hotel date selection (default dates versus user selected).
  78. google.ads.googleads.v12.common.HotelDateSelectionTypeInfo hotel_date_selection_type = 5 [(google.api.field_behavior) = IMMUTABLE];
  79. // Immutable. Criterion for number of days prior to the stay the booking is being made.
  80. google.ads.googleads.v12.common.HotelAdvanceBookingWindowInfo hotel_advance_booking_window = 6 [(google.api.field_behavior) = IMMUTABLE];
  81. // Immutable. Criterion for length of hotel stay in nights.
  82. google.ads.googleads.v12.common.HotelLengthOfStayInfo hotel_length_of_stay = 7 [(google.api.field_behavior) = IMMUTABLE];
  83. // Immutable. Criterion for day of the week the booking is for.
  84. google.ads.googleads.v12.common.HotelCheckInDayInfo hotel_check_in_day = 8 [(google.api.field_behavior) = IMMUTABLE];
  85. // Immutable. A device criterion.
  86. google.ads.googleads.v12.common.DeviceInfo device = 11 [(google.api.field_behavior) = IMMUTABLE];
  87. // Immutable. A preferred content criterion.
  88. google.ads.googleads.v12.common.PreferredContentInfo preferred_content = 12 [(google.api.field_behavior) = IMMUTABLE];
  89. // Immutable. Criterion for a hotel check-in date range.
  90. google.ads.googleads.v12.common.HotelCheckInDateRangeInfo hotel_check_in_date_range = 17 [(google.api.field_behavior) = IMMUTABLE];
  91. }
  92. }