hotel_reconciliation.proto 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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/enums/hotel_reconciliation_status.proto";
  17. import "google/api/field_behavior.proto";
  18. import "google/api/resource.proto";
  19. option csharp_namespace = "Google.Ads.GoogleAds.V12.Resources";
  20. option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v12/resources;resources";
  21. option java_multiple_files = true;
  22. option java_outer_classname = "HotelReconciliationProto";
  23. option java_package = "com.google.ads.googleads.v12.resources";
  24. option objc_class_prefix = "GAA";
  25. option php_namespace = "Google\\Ads\\GoogleAds\\V12\\Resources";
  26. option ruby_package = "Google::Ads::GoogleAds::V12::Resources";
  27. // Proto file describing the hotel reconciliation resource.
  28. // A hotel reconciliation. It contains conversion information from Hotel
  29. // bookings to reconcile with advertiser records. These rows may be updated
  30. // or canceled before billing through Bulk Uploads.
  31. message HotelReconciliation {
  32. option (google.api.resource) = {
  33. type: "googleads.googleapis.com/HotelReconciliation"
  34. pattern: "customers/{customer_id}/hotelReconciliations/{commission_id}"
  35. };
  36. // Immutable. The resource name of the hotel reconciliation.
  37. // Hotel reconciliation resource names have the form:
  38. //
  39. // `customers/{customer_id}/hotelReconciliations/{commission_id}`
  40. string resource_name = 1 [
  41. (google.api.field_behavior) = IMMUTABLE,
  42. (google.api.resource_reference) = {
  43. type: "googleads.googleapis.com/HotelReconciliation"
  44. }
  45. ];
  46. // Required. Output only. The commission ID is Google's ID for this booking. Every booking event is
  47. // assigned a Commission ID to help you match it to a guest stay.
  48. string commission_id = 2 [
  49. (google.api.field_behavior) = REQUIRED,
  50. (google.api.field_behavior) = OUTPUT_ONLY
  51. ];
  52. // Output only. The order ID is the identifier for this booking as provided in the
  53. // 'transaction_id' parameter of the conversion tracking tag.
  54. string order_id = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
  55. // Output only. The resource name for the Campaign associated with the conversion.
  56. string campaign = 11 [
  57. (google.api.field_behavior) = OUTPUT_ONLY,
  58. (google.api.resource_reference) = {
  59. type: "googleads.googleapis.com/Campaign"
  60. }
  61. ];
  62. // Output only. Identifier for the Hotel Center account which provides the rates for the
  63. // Hotel campaign.
  64. int64 hotel_center_id = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
  65. // Output only. Unique identifier for the booked property, as provided in the Hotel Center
  66. // feed. The hotel ID comes from the 'ID' parameter of the conversion tracking
  67. // tag.
  68. string hotel_id = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
  69. // Output only. Check-in date recorded when the booking is made. If the check-in date is
  70. // modified at reconciliation, the revised date will then take the place of
  71. // the original date in this column. Format is YYYY-MM-DD.
  72. string check_in_date = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
  73. // Output only. Check-out date recorded when the booking is made. If the check-in date is
  74. // modified at reconciliation, the revised date will then take the place of
  75. // the original date in this column. Format is YYYY-MM-DD.
  76. string check_out_date = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
  77. // Required. Output only. Reconciled value is the final value of a booking as paid by the guest. If
  78. // original booking value changes for any reason, such as itinerary changes or
  79. // room upsells, the reconciled value should be the full final amount
  80. // collected. If a booking is canceled, the reconciled value should include
  81. // the value of any cancellation fees or non-refundable nights charged. Value
  82. // is in millionths of the base unit currency. For example, $12.35 would be
  83. // represented as 12350000. Currency unit is in the default customer currency.
  84. int64 reconciled_value_micros = 8 [
  85. (google.api.field_behavior) = REQUIRED,
  86. (google.api.field_behavior) = OUTPUT_ONLY
  87. ];
  88. // Output only. Whether a given booking has been billed. Once billed, a booking can't be
  89. // modified.
  90. bool billed = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
  91. // Required. Output only. Current status of a booking with regards to reconciliation and billing.
  92. // Bookings should be reconciled within 45 days after the check-out date.
  93. // Any booking not reconciled within 45 days will be billed at its original
  94. // value.
  95. google.ads.googleads.v12.enums.HotelReconciliationStatusEnum.HotelReconciliationStatus status = 10 [
  96. (google.api.field_behavior) = REQUIRED,
  97. (google.api.field_behavior) = OUTPUT_ONLY
  98. ];
  99. }