--- v18/resources/conversion_value_rule.proto 2024-10-16 17:56:30.000000000 +0000 +++ v19/resources/conversion_value_rule.proto 2025-04-16 17:10:13.000000000 +0000 @@ -1,199 +1,199 @@ -// Copyright 2024 Google LLC +// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. syntax = "proto3"; -package google.ads.googleads.v18.resources; +package google.ads.googleads.v19.resources; -import "google/ads/googleads/v18/enums/conversion_value_rule_status.proto"; -import "google/ads/googleads/v18/enums/value_rule_device_type.proto"; -import "google/ads/googleads/v18/enums/value_rule_geo_location_match_type.proto"; -import "google/ads/googleads/v18/enums/value_rule_operation.proto"; +import "google/ads/googleads/v19/enums/conversion_value_rule_status.proto"; +import "google/ads/googleads/v19/enums/value_rule_device_type.proto"; +import "google/ads/googleads/v19/enums/value_rule_geo_location_match_type.proto"; +import "google/ads/googleads/v19/enums/value_rule_operation.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; -option csharp_namespace = "Google.Ads.GoogleAds.V18.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources"; +option csharp_namespace = "Google.Ads.GoogleAds.V19.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v19/resources;resources"; option java_multiple_files = true; option java_outer_classname = "ConversionValueRuleProto"; -option java_package = "com.google.ads.googleads.v18.resources"; +option java_package = "com.google.ads.googleads.v19.resources"; option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V18\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V18::Resources"; +option php_namespace = "Google\\Ads\\GoogleAds\\V19\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V19::Resources"; // Proto file describing the Conversion Value Rule resource. // A conversion value rule message ConversionValueRule { option (google.api.resource) = { type: "googleads.googleapis.com/ConversionValueRule" pattern: "customers/{customer_id}/conversionValueRules/{conversion_value_rule_id}" }; // Action applied when rule is applied. message ValueRuleAction { // Specifies applied operation. - google.ads.googleads.v18.enums.ValueRuleOperationEnum.ValueRuleOperation + google.ads.googleads.v19.enums.ValueRuleOperationEnum.ValueRuleOperation operation = 1; // Specifies applied value. double value = 2; } // Condition on Geo dimension. message ValueRuleGeoLocationCondition { // Geo locations that advertisers want to exclude. repeated string excluded_geo_target_constants = 1 [(google.api.resource_reference) = { type: "googleads.googleapis.com/GeoTargetConstant" }]; // Excluded Geo location match type. - google.ads.googleads.v18.enums.ValueRuleGeoLocationMatchTypeEnum + google.ads.googleads.v19.enums.ValueRuleGeoLocationMatchTypeEnum .ValueRuleGeoLocationMatchType excluded_geo_match_type = 2; // Geo locations that advertisers want to include. repeated string geo_target_constants = 3 [(google.api.resource_reference) = { type: "googleads.googleapis.com/GeoTargetConstant" }]; // Included Geo location match type. - google.ads.googleads.v18.enums.ValueRuleGeoLocationMatchTypeEnum + google.ads.googleads.v19.enums.ValueRuleGeoLocationMatchTypeEnum .ValueRuleGeoLocationMatchType geo_match_type = 4; } // Condition on Device dimension. message ValueRuleDeviceCondition { // Value for device type condition. - repeated google.ads.googleads.v18.enums.ValueRuleDeviceTypeEnum + repeated google.ads.googleads.v19.enums.ValueRuleDeviceTypeEnum .ValueRuleDeviceType device_types = 1; } // Condition on Audience dimension. message ValueRuleAudienceCondition { // User Lists. repeated string user_lists = 1 [(google.api.resource_reference) = { type: "googleads.googleapis.com/UserList" }]; // User Interests. repeated string user_interests = 2 [(google.api.resource_reference) = { type: "googleads.googleapis.com/UserInterest" }]; } // Condition on Itinerary dimension. message ValueRuleItineraryCondition { // Range for the number of days between the date of the booking and the // start of the itinerary. ValueRuleItineraryAdvanceBookingWindow advance_booking_window = 1; // Range for the itinerary length in number of nights. ValueRuleItineraryTravelLength travel_length = 2; // The days of the week on which this itinerary's travel can start. ValueRuleItineraryTravelStartDay travel_start_day = 3; } // Range for the number of days between the date of the booking and the // start of the itinerary. message ValueRuleItineraryAdvanceBookingWindow { // Minimum number of days between the date of the booking the start date. - int32 min_days = 1; + optional int32 min_days = 3; // Maximum number of days between the date of the booking the start date. - int32 max_days = 2; + optional int32 max_days = 4; } // Range for the itinerary length in number of nights. message ValueRuleItineraryTravelLength { // Minimum number of nights between the start date and the end date. int32 min_nights = 1; // Maximum number of days between the start date and the end date. int32 max_nights = 2; } // The days of the week on which an itinerary's travel can start. message ValueRuleItineraryTravelStartDay { // The travel can start on Monday. bool monday = 1; // The travel can start on Tuesday. bool tuesday = 2; // The travel can start on Wednesday. bool wednesday = 3; // The travel can start on Thursday. bool thursday = 4; // The travel can start on Friday. bool friday = 5; // The travel can start on Saturday. bool saturday = 6; // The travel can start on Sunday. bool sunday = 7; } // Immutable. The resource name of the conversion value rule. // Conversion value rule resource names have the form: // // `customers/{customer_id}/conversionValueRules/{conversion_value_rule_id}` string resource_name = 1 [ (google.api.field_behavior) = IMMUTABLE, (google.api.resource_reference) = { type: "googleads.googleapis.com/ConversionValueRule" } ]; // Output only. The ID of the conversion value rule. int64 id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; // Action applied when the rule is triggered. ValueRuleAction action = 3; // Condition for Geo location that must be satisfied for the value rule to // apply. ValueRuleGeoLocationCondition geo_location_condition = 4; // Condition for device type that must be satisfied for the value rule to // apply. ValueRuleDeviceCondition device_condition = 5; // Condition for audience that must be satisfied for the value rule to apply. ValueRuleAudienceCondition audience_condition = 6; // Condition for itinerary that must be satisfied for the value rule to apply. ValueRuleItineraryCondition itinerary_condition = 9; // Output only. The resource name of the conversion value rule's owner // customer. When the value rule is inherited from a manager customer, // owner_customer will be the resource name of the manager whereas the // customer in the resource_name will be of the requesting serving customer. // ** Read-only ** string owner_customer = 7 [ (google.api.field_behavior) = OUTPUT_ONLY, (google.api.resource_reference) = { type: "googleads.googleapis.com/Customer" } ]; // The status of the conversion value rule. - google.ads.googleads.v18.enums.ConversionValueRuleStatusEnum + google.ads.googleads.v19.enums.ConversionValueRuleStatusEnum .ConversionValueRuleStatus status = 8; }
/resources/conversion_value_rule.proto
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-21。
[null,null,["最后更新时间 (UTC):2025-08-21。"],[],[],null,["# /resources/conversion_value_rule.proto\n\n```python\n--- v18/resources/conversion_value_rule.proto 2024-10-16 17:56:30.000000000 +0000\n+++ v19/resources/conversion_value_rule.proto 2025-04-16 17:10:13.000000000 +0000\n@@ -1,199 +1,199 @@\n-// Copyright 2024 Google LLC\n+// Copyright 2025 Google LLC\n //\n // Licensed under the Apache License, Version 2.0 (the \"License\");\n // you may not use this file except in compliance with the License.\n // You may obtain a copy of the License at\n //\n // http://www.apache.org/licenses/LICENSE-2.0\n //\n // Unless required by applicable law or agreed to in writing, software\n // distributed under the License is distributed on an \"AS IS\" BASIS,\n // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n // See the License for the specific language governing permissions and\n // limitations under the License.\n\n syntax = \"proto3\";\n\n-package google.ads.googleads.v18.resources;\n+package google.ads.googleads.v19.resources;\n\n-import \"google/ads/googleads/v18/enums/conversion_value_rule_status.proto\";\n-import \"google/ads/googleads/v18/enums/value_rule_device_type.proto\";\n-import \"google/ads/googleads/v18/enums/value_rule_geo_location_match_type.proto\";\n-import \"google/ads/googleads/v18/enums/value_rule_operation.proto\";\n+import \"google/ads/googleads/v19/enums/conversion_value_rule_status.proto\";\n+import \"google/ads/googleads/v19/enums/value_rule_device_type.proto\";\n+import \"google/ads/googleads/v19/enums/value_rule_geo_location_match_type.proto\";\n+import \"google/ads/googleads/v19/enums/value_rule_operation.proto\";\n import \"google/api/field_behavior.proto\";\n import \"google/api/resource.proto\";\n\n-option csharp_namespace = \"Google.Ads.GoogleAds.V18.Resources\";\n-option go_package = \"google.golang.org/genproto/googleapis/ads/googleads/v18/resources;resources\";\n+option csharp_namespace = \"Google.Ads.GoogleAds.V19.Resources\";\n+option go_package = \"google.golang.org/genproto/googleapis/ads/googleads/v19/resources;resources\";\n option java_multiple_files = true;\n option java_outer_classname = \"ConversionValueRuleProto\";\n-option java_package = \"com.google.ads.googleads.v18.resources\";\n+option java_package = \"com.google.ads.googleads.v19.resources\";\n option objc_class_prefix = \"GAA\";\n-option php_namespace = \"Google\\\\Ads\\\\GoogleAds\\\\V18\\\\Resources\";\n-option ruby_package = \"Google::Ads::GoogleAds::V18::Resources\";\n+option php_namespace = \"Google\\\\Ads\\\\GoogleAds\\\\V19\\\\Resources\";\n+option ruby_package = \"Google::Ads::GoogleAds::V19::Resources\";\n\n // Proto file describing the Conversion Value Rule resource.\n\n // A conversion value rule\n message ConversionValueRule {\n option (google.api.resource) = {\n type: \"googleads.googleapis.com/ConversionValueRule\"\n pattern: \"customers/{customer_id}/conversionValueRules/{conversion_value_rule_id}\"\n };\n\n // Action applied when rule is applied.\n message ValueRuleAction {\n // Specifies applied operation.\n- google.ads.googleads.v18.enums.ValueRuleOperationEnum.ValueRuleOperation\n+ google.ads.googleads.v19.enums.ValueRuleOperationEnum.ValueRuleOperation\n operation = 1;\n\n // Specifies applied value.\n double value = 2;\n }\n\n // Condition on Geo dimension.\n message ValueRuleGeoLocationCondition {\n // Geo locations that advertisers want to exclude.\n repeated string excluded_geo_target_constants = 1\n [(google.api.resource_reference) = {\n type: \"googleads.googleapis.com/GeoTargetConstant\"\n }];\n\n // Excluded Geo location match type.\n- google.ads.googleads.v18.enums.ValueRuleGeoLocationMatchTypeEnum\n+ google.ads.googleads.v19.enums.ValueRuleGeoLocationMatchTypeEnum\n .ValueRuleGeoLocationMatchType excluded_geo_match_type = 2;\n\n // Geo locations that advertisers want to include.\n repeated string geo_target_constants = 3\n [(google.api.resource_reference) = {\n type: \"googleads.googleapis.com/GeoTargetConstant\"\n }];\n\n // Included Geo location match type.\n- google.ads.googleads.v18.enums.ValueRuleGeoLocationMatchTypeEnum\n+ google.ads.googleads.v19.enums.ValueRuleGeoLocationMatchTypeEnum\n .ValueRuleGeoLocationMatchType geo_match_type = 4;\n }\n\n // Condition on Device dimension.\n message ValueRuleDeviceCondition {\n // Value for device type condition.\n- repeated google.ads.googleads.v18.enums.ValueRuleDeviceTypeEnum\n+ repeated google.ads.googleads.v19.enums.ValueRuleDeviceTypeEnum\n .ValueRuleDeviceType device_types = 1;\n }\n\n // Condition on Audience dimension.\n message ValueRuleAudienceCondition {\n // User Lists.\n repeated string user_lists = 1 [(google.api.resource_reference) = {\n type: \"googleads.googleapis.com/UserList\"\n }];\n\n // User Interests.\n repeated string user_interests = 2 [(google.api.resource_reference) = {\n type: \"googleads.googleapis.com/UserInterest\"\n }];\n }\n\n // Condition on Itinerary dimension.\n message ValueRuleItineraryCondition {\n // Range for the number of days between the date of the booking and the\n // start of the itinerary.\n ValueRuleItineraryAdvanceBookingWindow advance_booking_window = 1;\n\n // Range for the itinerary length in number of nights.\n ValueRuleItineraryTravelLength travel_length = 2;\n\n // The days of the week on which this itinerary's travel can start.\n ValueRuleItineraryTravelStartDay travel_start_day = 3;\n }\n\n // Range for the number of days between the date of the booking and the\n // start of the itinerary.\n message ValueRuleItineraryAdvanceBookingWindow {\n // Minimum number of days between the date of the booking the start date.\n- int32 min_days = 1;\n+ optional int32 min_days = 3;\n\n // Maximum number of days between the date of the booking the start date.\n- int32 max_days = 2;\n+ optional int32 max_days = 4;\n }\n\n // Range for the itinerary length in number of nights.\n message ValueRuleItineraryTravelLength {\n // Minimum number of nights between the start date and the end date.\n int32 min_nights = 1;\n\n // Maximum number of days between the start date and the end date.\n int32 max_nights = 2;\n }\n\n // The days of the week on which an itinerary's travel can start.\n message ValueRuleItineraryTravelStartDay {\n // The travel can start on Monday.\n bool monday = 1;\n\n // The travel can start on Tuesday.\n bool tuesday = 2;\n\n // The travel can start on Wednesday.\n bool wednesday = 3;\n\n // The travel can start on Thursday.\n bool thursday = 4;\n\n // The travel can start on Friday.\n bool friday = 5;\n\n // The travel can start on Saturday.\n bool saturday = 6;\n\n // The travel can start on Sunday.\n bool sunday = 7;\n }\n\n // Immutable. The resource name of the conversion value rule.\n // Conversion value rule resource names have the form:\n //\n // `customers/{customer_id}/conversionValueRules/{conversion_value_rule_id}`\n string resource_name = 1 [\n (google.api.field_behavior) = IMMUTABLE,\n (google.api.resource_reference) = {\n type: \"googleads.googleapis.com/ConversionValueRule\"\n }\n ];\n\n // Output only. The ID of the conversion value rule.\n int64 id = 2 [(google.api.field_behavior) = OUTPUT_ONLY];\n\n // Action applied when the rule is triggered.\n ValueRuleAction action = 3;\n\n // Condition for Geo location that must be satisfied for the value rule to\n // apply.\n ValueRuleGeoLocationCondition geo_location_condition = 4;\n\n // Condition for device type that must be satisfied for the value rule to\n // apply.\n ValueRuleDeviceCondition device_condition = 5;\n\n // Condition for audience that must be satisfied for the value rule to apply.\n ValueRuleAudienceCondition audience_condition = 6;\n\n // Condition for itinerary that must be satisfied for the value rule to apply.\n ValueRuleItineraryCondition itinerary_condition = 9;\n\n // Output only. The resource name of the conversion value rule's owner\n // customer. When the value rule is inherited from a manager customer,\n // owner_customer will be the resource name of the manager whereas the\n // customer in the resource_name will be of the requesting serving customer.\n // ** Read-only **\n string owner_customer = 7 [\n (google.api.field_behavior) = OUTPUT_ONLY,\n (google.api.resource_reference) = {\n type: \"googleads.googleapis.com/Customer\"\n }\n ];\n\n // The status of the conversion value rule.\n- google.ads.googleads.v18.enums.ConversionValueRuleStatusEnum\n+ google.ads.googleads.v19.enums.ConversionValueRuleStatusEnum\n .ConversionValueRuleStatus status = 8;\n }\n```"]]