--- v18/services/local_services_lead_service.proto 2025-08-05 14:36:13.000000000 +0000 +++ v19/services/local_services_lead_service.proto 2025-08-05 14:36:21.000000000 +0000 @@ -41,11 +45,20 @@ rpc AppendLeadConversation(AppendLeadConversationRequest) returns (AppendLeadConversationResponse) { option (google.api.http) = { - post: "/v18/customers/{customer_id=*}/localServices:appendLeadConversation" + post: "/v19/customers/{customer_id=*}/localServices:appendLeadConversation" body: "*" }; option (google.api.method_signature) = "customer_id,conversations"; } + + // RPC to provide feedback on Local Services Lead resources. + rpc ProvideLeadFeedback(ProvideLeadFeedbackRequest) + returns (ProvideLeadFeedbackResponse) { + option (google.api.http) = { + post: "/v19/{resource_name=customers/*/localServicesLeads/*}:provideLeadFeedback" + body: "*" + }; + } } // Request message for @@ -94,3 +107,64 @@ google.rpc.Status partial_failure_error = 2; } } + +// Details about various factors for being satisfied with the lead. +message SurveySatisfied { + // Required. Provider's reason for being satisfied with the lead. + google.ads.googleads.v19.enums.LocalServicesLeadSurveySatisfiedReasonEnum + .SurveySatisfiedReason survey_satisfied_reason = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. Provider's free form comments. This field is required when + // OTHER_SATISFIED_REASON is selected as the reason. + string other_reason_comment = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Details about various factors for not being satisfied with the lead. +message SurveyDissatisfied { + // Required. Provider's reason for not being satisfied with the lead. + google.ads.googleads.v19.enums.LocalServicesLeadSurveyDissatisfiedReasonEnum + .SurveyDissatisfiedReason survey_dissatisfied_reason = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. Provider's free form comments. This field is required when + // OTHER_DISSATISFIED_REASON is selected as the reason. + string other_reason_comment = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for +// [LocalServicesLeadService.ProvideLeadFeedback][google.ads.googleads.v19.services.LocalServicesLeadService.ProvideLeadFeedback]. +message ProvideLeadFeedbackRequest { + // Required. The resource name of the local services lead that for which the + // feedback is being provided. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/LocalServicesLead" + } + ]; + + // Required. Survey answer for Local Services Ads Lead. + google.ads.googleads.v19.enums.LocalServicesLeadSurveyAnswerEnum.SurveyAnswer + survey_answer = 2 [(google.api.field_behavior) = REQUIRED]; + + // Details about various factors for being satisfied or dissatisfied with the + // lead. + oneof survey_details { + // Details about various factors for being satisfied with the lead. + SurveySatisfied survey_satisfied = 3; + + // Details about various factors for not being satisfied with the lead. + SurveyDissatisfied survey_dissatisfied = 4; + } +} + +// Response message for +// [LocalServicesLeadService.ProvideLeadFeedback][google.ads.googleads.v19.services.LocalServicesLeadService.ProvideLeadFeedback]. +message ProvideLeadFeedbackResponse { + // Required. Decision of bonus credit issued or rejected. If a bonus credit is + // issued, it will be available for use in about two months. + google.ads.googleads.v19.enums.LocalServicesLeadCreditIssuanceDecisionEnum + .CreditIssuanceDecision credit_issuance_decision = 1 + [(google.api.field_behavior) = REQUIRED]; +}
/services/local_services_lead_service.proto
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-21。
[null,null,["最后更新时间 (UTC):2025-08-21。"],[],[],null,["# /services/local_services_lead_service.proto\n\n```diff\n--- v18/services/local_services_lead_service.proto 2025-08-05 14:36:13.000000000 +0000\n+++ v19/services/local_services_lead_service.proto 2025-08-05 14:36:21.000000000 +0000\n@@ -41,11 +45,20 @@\n rpc AppendLeadConversation(AppendLeadConversationRequest)\n returns (AppendLeadConversationResponse) {\n option (google.api.http) = {\n- post: \"/v18/customers/{customer_id=*}/localServices:appendLeadConversation\"\n+ post: \"/v19/customers/{customer_id=*}/localServices:appendLeadConversation\"\n body: \"*\"\n };\n option (google.api.method_signature) = \"customer_id,conversations\";\n }\n+\n+ // RPC to provide feedback on Local Services Lead resources.\n+ rpc ProvideLeadFeedback(ProvideLeadFeedbackRequest)\n+ returns (ProvideLeadFeedbackResponse) {\n+ option (google.api.http) = {\n+ post: \"/v19/{resource_name=customers/*/localServicesLeads/*}:provideLeadFeedback\"\n+ body: \"*\"\n+ };\n+ }\n }\n\n // Request message for\n@@ -94,3 +107,64 @@\n google.rpc.Status partial_failure_error = 2;\n }\n }\n+\n+// Details about various factors for being satisfied with the lead.\n+message SurveySatisfied {\n+ // Required. Provider's reason for being satisfied with the lead.\n+ google.ads.googleads.v19.enums.LocalServicesLeadSurveySatisfiedReasonEnum\n+ .SurveySatisfiedReason survey_satisfied_reason = 1\n+ [(google.api.field_behavior) = REQUIRED];\n+\n+ // Optional. Provider's free form comments. This field is required when\n+ // OTHER_SATISFIED_REASON is selected as the reason.\n+ string other_reason_comment = 2 [(google.api.field_behavior) = OPTIONAL];\n+}\n+\n+// Details about various factors for not being satisfied with the lead.\n+message SurveyDissatisfied {\n+ // Required. Provider's reason for not being satisfied with the lead.\n+ google.ads.googleads.v19.enums.LocalServicesLeadSurveyDissatisfiedReasonEnum\n+ .SurveyDissatisfiedReason survey_dissatisfied_reason = 1\n+ [(google.api.field_behavior) = REQUIRED];\n+\n+ // Optional. Provider's free form comments. This field is required when\n+ // OTHER_DISSATISFIED_REASON is selected as the reason.\n+ string other_reason_comment = 2 [(google.api.field_behavior) = OPTIONAL];\n+}\n+\n+// Request message for\n+// [LocalServicesLeadService.ProvideLeadFeedback][google.ads.googleads.v19.services.LocalServicesLeadService.ProvideLeadFeedback].\n+message ProvideLeadFeedbackRequest {\n+ // Required. The resource name of the local services lead that for which the\n+ // feedback is being provided.\n+ string resource_name = 1 [\n+ (google.api.field_behavior) = REQUIRED,\n+ (google.api.resource_reference) = {\n+ type: \"googleads.googleapis.com/LocalServicesLead\"\n+ }\n+ ];\n+\n+ // Required. Survey answer for Local Services Ads Lead.\n+ google.ads.googleads.v19.enums.LocalServicesLeadSurveyAnswerEnum.SurveyAnswer\n+ survey_answer = 2 [(google.api.field_behavior) = REQUIRED];\n+\n+ // Details about various factors for being satisfied or dissatisfied with the\n+ // lead.\n+ oneof survey_details {\n+ // Details about various factors for being satisfied with the lead.\n+ SurveySatisfied survey_satisfied = 3;\n+\n+ // Details about various factors for not being satisfied with the lead.\n+ SurveyDissatisfied survey_dissatisfied = 4;\n+ }\n+}\n+\n+// Response message for\n+// [LocalServicesLeadService.ProvideLeadFeedback][google.ads.googleads.v19.services.LocalServicesLeadService.ProvideLeadFeedback].\n+message ProvideLeadFeedbackResponse {\n+ // Required. Decision of bonus credit issued or rejected. If a bonus credit is\n+ // issued, it will be available for use in about two months.\n+ google.ads.googleads.v19.enums.LocalServicesLeadCreditIssuanceDecisionEnum\n+ .CreditIssuanceDecision credit_issuance_decision = 1\n+ [(google.api.field_behavior) = REQUIRED];\n+}\n```"]]