Method: accounts.merchantReviews.insert
Chèn một bài đánh giá cho tài khoản Merchant Center của bạn. Nếu bài đánh giá đã tồn tại, thì bài đánh giá đó sẽ được thay thế bằng thực thể mới.
Yêu cầu HTTP
POST https://merchantapi.googleapis.com/reviews/v1beta/{parent=accounts/*}/merchantReviews:insert
URL sử dụng cú pháp Chuyển mã gRPC.
Tham số đường dẫn
Thông số |
parent |
string
Bắt buộc. Tài khoản mà bạn sẽ chèn bài đánh giá của người bán. Định dạng: accounts/{account}
|
Tham số truy vấn
Thông số |
dataSource |
string
Bắt buộc. Nguồn dữ liệu của định dạng merchantreview: accounts/{account}/dataSources/{datasource} .
|
Nội dung yêu cầu
Nội dung yêu cầu chứa một bản sao của MerchantReview
.
Nội dung phản hồi
Nếu thành công, nội dung phản hồi sẽ chứa một phiên bản của MerchantReview
.
Phạm vi uỷ quyền
Yêu cầu phạm vi OAuth sau:
https://www.googleapis.com/auth/content
Để biết thêm thông tin, hãy xem OAuth 2.0 Overview.
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-01-23 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-01-23 UTC."],[[["This documentation outlines the process for inserting or replacing a Merchant Center account review using the Merchant Center API."],["It involves sending a POST request to a specific endpoint with details about the review and the target account."],["Required parameters include the account ID and the data source for the review."],["The request and response bodies both utilize the MerchantReview object to structure the review data."],["Authorization using OAuth 2.0 with the `https://www.googleapis.com/auth/content` scope is necessary for this operation."]]],["This documentation outlines the process of inserting or replacing a merchant review via a POST request to `https://merchantapi.googleapis.com/reviews/v1beta/{parent=accounts/*}/merchantReviews:insert`. The `parent` path parameter specifies the target account. The `dataSource` query parameter specifies the source of the review data. A `MerchantReview` instance is sent in the request body. Upon success, the response body will also contain a `MerchantReview` instance. The request requires the `https://www.googleapis.com/auth/content` OAuth scope.\n"]]