--- v18/services/reach_plan_service.proto 2025-08-05 14:36:13.000000000 +0000 +++ v19/services/reach_plan_service.proto 2025-08-05 14:36:21.000000000 +0000 @@ -47,6 +48,25 @@ option (google.api.default_host) = "googleads.googleapis.com"; option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + // Returns a collection of conversion rate suggestions for supported plannable + // products. + // + // List of thrown errors: + // [AuthenticationError]() + // [AuthorizationError]() + // [HeaderError]() + // [InternalError]() + // [QuotaError]() + // [RequestError]() + rpc GenerateConversionRates(GenerateConversionRatesRequest) + returns (GenerateConversionRatesResponse) { + option (google.api.http) = { + post: "/v19:generateConversionRates" + body: "*" + }; + option (google.api.method_signature) = "customer_id"; + } + // Returns the list of plannable locations (for example, countries). // // List of thrown errors: @@ -107,7 +127,43 @@ } // Request message for -// [ReachPlanService.ListPlannableLocations][google.ads.googleads.v18.services.ReachPlanService.ListPlannableLocations]. +// [ReachPlanService.GenerateConversionRates][google.ads.googleads.v19.services.ReachPlanService.GenerateConversionRates]. +message GenerateConversionRatesRequest { + // Required. The ID of the customer. A conversion rate based on the historical + // data of this customer may be suggested. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // The name of the customer being planned for. This is a user-defined value. + optional string customer_reach_group = 2; +} + +// Response message for +// [ReachPlanService.GenerateConversionRates][google.ads.googleads.v19.services.ReachPlanService.GenerateConversionRates], +// containing conversion rate suggestions for supported plannable products. +message GenerateConversionRatesResponse { + // A list containing conversion rate suggestions. Each repeated element will + // have an associated product code. Multiple suggestions may share the same + // product code. + repeated ConversionRateSuggestion conversion_rate_suggestions = 1; +} + +// A conversion rate suggestion. +message ConversionRateSuggestion { + // Model type used to calculate the suggested conversion rate. + google.ads.googleads.v19.enums.ReachPlanConversionRateModelEnum + .ReachPlanConversionRateModel conversion_rate_model = 1; + + // The code associated with the plannable product (for example: DEMAND_GEN). + // To list all plannable product codes, use + // [ReachPlanService.ListPlannableProducts][google.ads.googleads.v19.services.ReachPlanService.ListPlannableProducts]. + string plannable_product_code = 2; + + // The suggested conversion rate. The value is between 0 and 1 (exclusive). + double conversion_rate = 3; +} + +// Request message for +// [ReachPlanService.ListPlannableLocations][google.ads.googleads.v19.services.ReachPlanService.ListPlannableLocations]. message ListPlannableLocationsRequest {} // The list of plannable locations. @@ -372,9 +428,16 @@ // For example: 1 000 000$ = 1 000 000 000 000 micros. optional int64 budget_micros = 4 [(google.api.field_behavior) = REQUIRED]; + // Conversion rate as a decimal between 0 and 1, exclusive. + // For example: if 2% of ad interactions are expected to lead to conversions, + // conversion_rate should be 0.02. + // This field is required for DEMAND_GEN plannable products. It is not + // supported for other plannable products. + optional double conversion_rate = 6; + // Targeting settings for the selected product. // To list the available targeting for each product use - // [ReachPlanService.ListPlannableProducts][google.ads.googleads.v18.services.ReachPlanService.ListPlannableProducts]. + // [ReachPlanService.ListPlannableProducts][google.ads.googleads.v19.services.ReachPlanService.ListPlannableProducts]. AdvancedProductTargeting advanced_product_targeting = 5; } @@ -472,6 +535,13 @@ // See https://support.google.com/google-ads/answer/2375431 for // more information on views. optional int64 views = 15; + + // The number of conversions. + // This metric is only available for DEMAND_GEN plannable products. + // + // See https://support.google.com/google-ads/answer/2375431 for + // more information on conversions. + optional double conversions = 16; } // The forecasted allocation and traffic metrics for a specific product @@ -554,6 +624,13 @@ // See https://support.google.com/google-ads/answer/2375431 for // more information on views. optional int64 views = 11; + + // The number of conversions. + // This metric is only available for DEMAND_GEN plannable products. + // + // See https://support.google.com/google-ads/answer/2375431 for + // more information on conversions. + optional double conversions = 12; } // Audience metrics for the planned products.
/services/reach_plan_service.proto
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-21。
[null,null,["最后更新时间 (UTC):2025-08-21。"],[],[],null,["# /services/reach_plan_service.proto\n\n```diff\n--- v18/services/reach_plan_service.proto 2025-08-05 14:36:13.000000000 +0000\n+++ v19/services/reach_plan_service.proto 2025-08-05 14:36:21.000000000 +0000\n@@ -47,6 +48,25 @@\n option (google.api.default_host) = \"googleads.googleapis.com\";\n option (google.api.oauth_scopes) = \"https://www.googleapis.com/auth/adwords\";\n\n+ // Returns a collection of conversion rate suggestions for supported plannable\n+ // products.\n+ //\n+ // List of thrown errors:\n+ // [AuthenticationError]()\n+ // [AuthorizationError]()\n+ // [HeaderError]()\n+ // [InternalError]()\n+ // [QuotaError]()\n+ // [RequestError]()\n+ rpc GenerateConversionRates(GenerateConversionRatesRequest)\n+ returns (GenerateConversionRatesResponse) {\n+ option (google.api.http) = {\n+ post: \"/v19:generateConversionRates\"\n+ body: \"*\"\n+ };\n+ option (google.api.method_signature) = \"customer_id\";\n+ }\n+\n // Returns the list of plannable locations (for example, countries).\n //\n // List of thrown errors:\n@@ -107,7 +127,43 @@\n }\n\n // Request message for\n-// [ReachPlanService.ListPlannableLocations][google.ads.googleads.v18.services.ReachPlanService.ListPlannableLocations].\n+// [ReachPlanService.GenerateConversionRates][google.ads.googleads.v19.services.ReachPlanService.GenerateConversionRates].\n+message GenerateConversionRatesRequest {\n+ // Required. The ID of the customer. A conversion rate based on the historical\n+ // data of this customer may be suggested.\n+ string customer_id = 1 [(google.api.field_behavior) = REQUIRED];\n+\n+ // The name of the customer being planned for. This is a user-defined value.\n+ optional string customer_reach_group = 2;\n+}\n+\n+// Response message for\n+// [ReachPlanService.GenerateConversionRates][google.ads.googleads.v19.services.ReachPlanService.GenerateConversionRates],\n+// containing conversion rate suggestions for supported plannable products.\n+message GenerateConversionRatesResponse {\n+ // A list containing conversion rate suggestions. Each repeated element will\n+ // have an associated product code. Multiple suggestions may share the same\n+ // product code.\n+ repeated ConversionRateSuggestion conversion_rate_suggestions = 1;\n+}\n+\n+// A conversion rate suggestion.\n+message ConversionRateSuggestion {\n+ // Model type used to calculate the suggested conversion rate.\n+ google.ads.googleads.v19.enums.ReachPlanConversionRateModelEnum\n+ .ReachPlanConversionRateModel conversion_rate_model = 1;\n+\n+ // The code associated with the plannable product (for example: DEMAND_GEN).\n+ // To list all plannable product codes, use\n+ // [ReachPlanService.ListPlannableProducts][google.ads.googleads.v19.services.ReachPlanService.ListPlannableProducts].\n+ string plannable_product_code = 2;\n+\n+ // The suggested conversion rate. The value is between 0 and 1 (exclusive).\n+ double conversion_rate = 3;\n+}\n+\n+// Request message for\n+// [ReachPlanService.ListPlannableLocations][google.ads.googleads.v19.services.ReachPlanService.ListPlannableLocations].\n message ListPlannableLocationsRequest {}\n\n // The list of plannable locations.\n@@ -372,9 +428,16 @@\n // For example: 1 000 000$ = 1 000 000 000 000 micros.\n optional int64 budget_micros = 4 [(google.api.field_behavior) = REQUIRED];\n\n+ // Conversion rate as a decimal between 0 and 1, exclusive.\n+ // For example: if 2% of ad interactions are expected to lead to conversions,\n+ // conversion_rate should be 0.02.\n+ // This field is required for DEMAND_GEN plannable products. It is not\n+ // supported for other plannable products.\n+ optional double conversion_rate = 6;\n+\n // Targeting settings for the selected product.\n // To list the available targeting for each product use\n- // [ReachPlanService.ListPlannableProducts][google.ads.googleads.v18.services.ReachPlanService.ListPlannableProducts].\n+ // [ReachPlanService.ListPlannableProducts][google.ads.googleads.v19.services.ReachPlanService.ListPlannableProducts].\n AdvancedProductTargeting advanced_product_targeting = 5;\n }\n\n@@ -472,6 +535,13 @@\n // See https://support.google.com/google-ads/answer/2375431 for\n // more information on views.\n optional int64 views = 15;\n+\n+ // The number of conversions.\n+ // This metric is only available for DEMAND_GEN plannable products.\n+ //\n+ // See https://support.google.com/google-ads/answer/2375431 for\n+ // more information on conversions.\n+ optional double conversions = 16;\n }\n\n // The forecasted allocation and traffic metrics for a specific product\n@@ -554,6 +624,13 @@\n // See https://support.google.com/google-ads/answer/2375431 for\n // more information on views.\n optional int64 views = 11;\n+\n+ // The number of conversions.\n+ // This metric is only available for DEMAND_GEN plannable products.\n+ //\n+ // See https://support.google.com/google-ads/answer/2375431 for\n+ // more information on conversions.\n+ optional double conversions = 12;\n }\n\n // Audience metrics for the planned products.\n```"]]