完整的示例 Feed
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
以下 XML 示例适用于商家评价 Feed 中的一个文件,其中包含您可以在 Feed 中发送的完整元素集。
<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://schemas.google.com/merchant_reviews/5.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://schemas.google.com/merchant_reviews/5.0 http://www.gstatic.com/productsearch/static/reviews/5.0/merchant_reviews.xsd">
<merchants>
<merchant id="2739">
<name>Google Store</name>
<merchant_url>http://store.google.com></merchant_url>
<rating_url>http://www.usefulreviews.com/merchant_2739.html</rating_url>
<create_timestamp>2010-07-12T07:55:06Z</create_timestamp>
<last_update_timestamp>2014-07-12T07:55:06Z</last_update_timestamp>
</merchant>
</merchants>
<deleted_merchants>
<deleted_merchant id="321">
<last_update_timestamp>2014-07-12T07:55:06Z</last_update_timestamp>
</deleted_merchant>
</deleted_merchants>
<reviews>
<review id="156368" mid="2739">
<reviewer_name>Ada</reviewer_name>
<create_timestamp>2013-07-12T07:55:06Z</create_timestamp>
<last_update_timestamp>2014-07-12T07:55:06Z</last_update_timestamp>
<country_code>US</country_code>
<title>Great prices</title>
<content>My order arrived on time and I got a great price.</content>
<ratings>
<overall min="1" max="10">9</overall>
<customer_service min="1" max="10">10</customer_service>
</ratings>
<collection_method>after_fulfillment</collection_method>
</review>
<review id="156369" mid="2739">
<create_timestamp>2013-07-12T07:55:06Z</create_timestamp>
<last_update_timestamp>2014-08-12T07:55:06Z</last_update_timestamp>
<country_code>US</country_code>
<content/>
<ratings>
<overall min="1" max="10">9</overall>
</ratings>
<collection_method>unsolicited</collection_method>
</review>
</reviews>
<deleted_reviews>
<deleted_review id="5214">
<last_update_timestamp>2014-07-12T07:55:06Z</last_update_timestamp>
</deleted_review>
</deleted_reviews>
</feed>
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eThe XML sample demonstrates the structure of a merchant review feed, including merchant information, reviews, and deleted entries.\u003c/p\u003e\n"],["\u003cp\u003eMerchants can be identified using an \u003ccode\u003eid\u003c/code\u003e and include details like name, URL, rating URL, and timestamps for creation and updates.\u003c/p\u003e\n"],["\u003cp\u003eReviews contain information about the reviewer, timestamps, ratings, content, and the method of collection.\u003c/p\u003e\n"],["\u003cp\u003eThe feed also supports marking merchants and reviews as deleted by including them in separate \u003ccode\u003edeleted_merchants\u003c/code\u003e and \u003ccode\u003edeleted_reviews\u003c/code\u003e sections.\u003c/p\u003e\n"],["\u003cp\u003eAll timestamps within the feed are formatted according to the ISO 8601 standard, using the UTC timezone (indicated by the "Z" suffix).\u003c/p\u003e\n"]]],["This XML sample represents a merchant review feed, detailing merchant data, reviews, and deletions. It includes merchant identifiers (ID, name, URL) and timestamps for creation and updates. Reviews contain a unique ID, associated merchant ID, reviewer name, timestamps, country code, title, content, overall and specific ratings, and collection method. Deleted merchant and review entries are also recorded with their last update timestamp and id.\n"],null,["# Complete Sample Feed\n\nThe XML sample below is for one file in a merchant review feed and contains the full set of\nelements that you can send in a feed. \n\n```scdoc\n\u003c?xml version=\"1.0\" encoding=\"UTF-8\"?\u003e\n\u003cfeed xmlns=\"http://schemas.google.com/merchant_reviews/5.0\"\n xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n xsi:schemaLocation=\"http://schemas.google.com/merchant_reviews/5.0 http://www.gstatic.com/productsearch/static/reviews/5.0/merchant_reviews.xsd\"\u003e\n\n\u003cmerchants\u003e\n \u003cmerchant id=\"2739\"\u003e\n \u003cname\u003eGoogle Store\u003c/name\u003e\n \u003cmerchant_url\u003ehttp://store.google.com\u003e\u003c/merchant_url\u003e\n \u003crating_url\u003ehttp://www.usefulreviews.com/merchant_2739.html\u003c/rating_url\u003e\n \u003ccreate_timestamp\u003e2010-07-12T07:55:06Z\u003c/create_timestamp\u003e\n \u003clast_update_timestamp\u003e2014-07-12T07:55:06Z\u003c/last_update_timestamp\u003e\n \u003c/merchant\u003e\n\u003c/merchants\u003e\n\n\u003cdeleted_merchants\u003e\n \u003cdeleted_merchant id=\"321\"\u003e\n \u003clast_update_timestamp\u003e2014-07-12T07:55:06Z\u003c/last_update_timestamp\u003e\n \u003c/deleted_merchant\u003e\n\u003c/deleted_merchants\u003e\n\n\u003creviews\u003e\n \u003creview id=\"156368\" mid=\"2739\"\u003e\n \u003creviewer_name\u003eAda\u003c/reviewer_name\u003e\n \u003ccreate_timestamp\u003e2013-07-12T07:55:06Z\u003c/create_timestamp\u003e\n \u003clast_update_timestamp\u003e2014-07-12T07:55:06Z\u003c/last_update_timestamp\u003e\n \u003ccountry_code\u003eUS\u003c/country_code\u003e\n \u003ctitle\u003eGreat prices\u003c/title\u003e\n \u003ccontent\u003eMy order arrived on time and I got a great price.\u003c/content\u003e\n \u003cratings\u003e\n \u003coverall min=\"1\" max=\"10\"\u003e9\u003c/overall\u003e\n \u003ccustomer_service min=\"1\" max=\"10\"\u003e10\u003c/customer_service\u003e\n \u003c/ratings\u003e\n \u003ccollection_method\u003eafter_fulfillment\u003c/collection_method\u003e\n \u003c/review\u003e\n\n \u003creview id=\"156369\" mid=\"2739\"\u003e\n \u003ccreate_timestamp\u003e2013-07-12T07:55:06Z\u003c/create_timestamp\u003e\n \u003clast_update_timestamp\u003e2014-08-12T07:55:06Z\u003c/last_update_timestamp\u003e\n \u003ccountry_code\u003eUS\u003c/country_code\u003e\n \u003ccontent/\u003e\n \u003cratings\u003e\n \u003coverall min=\"1\" max=\"10\"\u003e9\u003c/overall\u003e\n \u003c/ratings\u003e\n \u003ccollection_method\u003eunsolicited\u003c/collection_method\u003e\n \u003c/review\u003e\n\u003c/reviews\u003e\n\n\u003cdeleted_reviews\u003e\n \u003cdeleted_review id=\"5214\"\u003e\n \u003clast_update_timestamp\u003e2014-07-12T07:55:06Z\u003c/last_update_timestamp\u003e\n \u003c/deleted_review\u003e\n\u003c/deleted_reviews\u003e\n\n\u003c/feed\u003e\n```"]]