גרסה 1 (הוצאה משימוש) להוראות העברה של V2

פורמט V1 הוצא משימוש. בהמשך מפורטים השינויים שמתרחשים בפיד V1 לפיד הנוכחי V2.3. כדאי לעיין https://developers.google.com/product-review-feeds/sample/ בדוגמה מלאה של הפיד האחרון 2.3.

גירסה 1

<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns:atom="http://www.w3.org/2005/Atom" xml:lang="en-US"
   xmlns:pr="http://schemas.google.com/schemas/pr/1.0"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.gstatic.com/productsearch/static/reviews/product_reviews_v1.xsd”>

גרסה 2.3

<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xsi:noNamespaceSchemaLocation=
 "http://www.google.com/shopping/reviews/schema/product/2.3/product_reviews.xsd">

הרכיבים xmlns:atom ו-xmlns:pr הוסרו. נוסף רכיב xmlns:vc להתייחסות לגרסה XML3-org של w3.org. יש לעדכן את מיקום הסכימה ל-2.3 Xsd.

גרסת הסכימה

גרסת הסכימה כלולה עכשיו אחרי הכותרת

<version>2.3</version>

פרטי המוציא לאור

קטע המידע על בעל התוכן הדיגיטלי הופחת. המחבר, שם הספר, שם הספר שפורסם, זכויות, מזהה, קישור ולוגו הוסרו לטובת אתר האגרגטור והמוציא לאור, עם השם והסמל של המוציא לאור. רכיב הצבירה אינו נדרש בפידים של מוכרים יחידים.

גירסה 1

 <author>
    <name>Sample Retailer</name>
    <email>contact@example.com</email>
  </author>
  <title type="text">Product Reviews from Example.com </title>
  <subtitle type="text">Camera Reviews - Example.com </subtitle>
  <published>2007-12-10T15:13:31Z</published>
  <rights>Copyright 2008, all rights reserved.</rights>
  <id>12345678</id>
  <link rel="related" type="text/html" href="http://www.example.com/index.html"/>
  <logo>http://www.example.com/logo.jpg</logo>

גרסה 2.3

    <aggregator>
        <name>Sample Reviews Aggregator (if applicable)</name>
    </aggregator>
    <publisher>
        <name>Sample Retailer</name>
        <favicon>http://www.example.com/favicon.png</favicon>
    </publisher>

בדיקת הקבוצה

בעבר, ביקורות סווגו על ידי רכיבים חוזרים של <entry>. בפיד 2.3 רכיבי <review> החליפו את רכיבי <entry> והם מקובצים תחת רכיב הורה אחד (<reviews>).

גירסה 1

<entry>
...
</entry>

גרסה 2.3

    <reviews>
        <review>
...
        </review>
    </reviews>

פרטי הביקורת

הקטע של תוכן הביקורת פשוט יותר באופן פשוט יותר. כדי לעשות את השינוי הזה, השדות הבאים השתנו:

פרטי סיכום:

  • האפשרות <id> נקראת <review_id> עכשיו
  • האפשרות <published> נקראת <review_timestamp> עכשיו
  • המשתמש <pr:content_format> הוסר
  • האפשרות <link> נקראת <review_url> עכשיו

גירסה 1

    <id>14295</id>
    <published>2014-04-21T07:07:07Z</published>
    <title type="text">Excellent camera</title>
    <pr:content_format type="user_review"/>
    <link rel="self" type="text/html" href="http://www.example.com/review_14295.html"/>

גרסה 2.3

      <review_id>14295</review_id>
        ...
      <review_timestamp>2014-04-21T07:07:07Z</review_timestamp>
      <title>Excellent camera</title>
        ...
      <review_url type="singleton">http://www.example.com/review_14295.html</review_url>

פרטי המחבר:

  • <author> עכשיו <reviewer>
    • <name> תומך עכשיו במאפיין is_anonymous
    • <reviewer_id> נוסף
    • <email>, <pr:role>, <pr:number_of_reviews> וגם <link> הוסרו
    • השם של <pr:author_rating> הוא <ratings> והוא כלול מחוץ לרכיב המחבר
      • עכשיו במחיר <pr:attr name=”overall”>, <overall>. המאפיין value הוא עכשיו תוכן הרכיב.
      • הוסרו רכיבי <pr:attr> נוספים
  • המאפיין <content>_length 'אורך מלא' הוסר
  • המאפיין מסוג <title> הוסר

גירסה 1

   <author>
      <name>Joe Smith</name>
      <email>jsmith@example.com</email>
      <pr:role>Consumer Electronics Editor</pr:role>
      <pr:number_of_reviews>45</pr:number_of_reviews>
      <link rel="related" href="http://www.example.com."/>
      <pr:author_rating>
        <pr:attr name="overall" max="5" min="1" value="4"></pr:attr>
        <pr:attr name="funny"></pr:attr>
      </pr:author_rating>
    </author>

גרסה 2.3

        <reviewer>
            <name is_anonymous="false">Joe Smith</name>
            <reviewer_id>509769</reviewer_id>
        </reviewer>
        ...
        <ratings>
            <overall min="1" max="5">4</overall>
        </ratings>

פרטי תוכן:

  • המאפיין <content> מסוג full_length הוסר
  • הרכיב <video> והצאצאים שלו הוסרו
  • נוספו רכיב ההורה <reviewer_images> ו-<reviewer_image> רכיבי צאצא.
    • רכיבי <reviewer_image> מכילים רכיב <url> עבור מיקום התמונה

גירסה 1

   <content full_length="3083">
      Got it for a friend and he loved it.
   </content>
    <video>
      <published>2008-07-31T04:13:31Z</published>
      <title type="text">Digital Cameras in Action</title>
      <link rel="related" href="http://www.youtube.com/watch?v=SdybCjJ5sCU"/>
      <summary>Expert photog Jill Thompson takes the Canon XTi on the road</summary>
    </video>

גרסה 2.3

   <content>Got it for a friend and he loved it.</content>
    ...
   <review_url type="singleton">http://www.example.com/review_14295.html</review_url>
   <reviewer_images>
       <reviewer_image>
           <url>https://example.com/test.jpg</url>
       </reviewer_image>
       <reviewer_image>
           <url>https://example.com/test.gif</url>
       </reviewer_image>
   </reviewer_images>

פרטי המוצר:

  • <pr:products> עם <pr:product> רכיבי צאצא הם עכשיו <products> עם <product> ילדים
  • רכיבי <pr:product_id> עם המאפיינים contenttype הם עכשיו <product_id> רכיבים עם רכיבי תוכן מסוג צאצאים (<gtins>, <mpns>, <skus>)
  • הרכיב <pr:brand> הוא עכשיו רכיב צאצא במסגרת <product_id>
  • האפשרות <pr:product_name> נקראת <product_name> עכשיו
  • <pr:product_category> רכיבים הוסרו
  • האפשרות <link> נקראת <product_url> עכשיו
  • האלמנט <pr:number_of_reviews> הוסר
  • <pr:average_rating> וכל רכיבי הצאצא הוסרו

גירסה 1

   <pr:products>
      <pr:product>
        <pr:product_id contenttype="MPN">60101-10000</pr:product_id>
        <pr:product_id contenttype="UPC">888884</pr:product_id>
        <pr:product_id contenttype="base_docid">9876543</pr:product_id>
        <pr:brand>Acme</pr:brand>
        <pr:product_name>Tablet Sleeve</pr:product_name>
        <pr:product_category level="1" category_id="123423">Consumer Electronics</pr:product_category>
        <pr:product_category level="2" category_id="123423">Tablets</pr:product_category>
        <pr:product_category level="3" category_id="123423">Cases</pr:product_category>
        <link rel="canonical" type="text/html" href="http://www.example.com/product_6206.html"/>
        <link rel="related" type="image/jpg" href="http://reviews.example.com/..."/>
        <link rel="related" type="text/html" href="http://reviews.example.com/..."/>
        <pr:number_of_reviews>5</pr:number_of_reviews>
        <pr:average_rating>
          <pr:attr name="overall" max="5" min="1" value="3.4"></pr:attr>
          <pr:attr name="durability" max="5" min="1" value="3.7"></pr:attr>
          <pr:attr name="ease_of_use" max="5" min="1" value="3.2"></pr:attr>
        </pr:average_rating>
      </pr:product>
 </pr:products>

גרסה 2.3

    <products>
        <product>
            <product_ids>
                <gtins>
                    <gtin>541710238425</gtin>
                </gtins>
                <mpns>
                    <mpn>60101-10000</mpn>
                </mpns>
                <skus>
                    <sku>6206</sku>
                </skus>
                <brands>
                    <brand>Acme</brand>
                </brands>
            </product_ids>
            <product_name>Tablet Sleeve</product_name>
            <product_url>http://www.example.com/product_6206.html</product_url>
        </product>
    </products>

פרטי דירוג:

  • רכיבי <pr:pros> הם עכשיו <pros> רכיבים עם רכיבי צאצא של <pro>
  • רכיבי <pr:cons> הם עכשיו <cons> רכיבים עם רכיבי צאצא של <con>
  • <pr:awards> וכל רכיבי הצאצא הוסרו
  • האלמנט <pr:overview> הוסר
  • הוסרו <pr:ratings> רכיבים לדירוגי מאפיינים נפרדים

גירסה 1

    <pr:pros>Sleek design</pr:pros>
    <pr:pros>Protects the tablet well</pr:pros>
    <pr:cons>Pricey</pr:cons>
    <pr:overview> Best for well lit spaces, outdoor shots...</pr:overview>
    <pr:awards>
      <pr:award>
        <pr:award_name>CBest Camera Award </pr:award_name>
        <link rel="related" type="image/jpg" href="http://www.example.com/..."/>
      </pr:award>
    </pr:awards>
    ...
    <pr:ratings>
      <pr:attr name="overall" max="5" min="1" value="3"></pr:attr>
      <pr:attr name="durability" max="5" min="1" value="3"></pr:attr>
      <pr:attr name="ease_of_use" max="5" min="1" value="3"></pr:attr>
    </pr:ratings>

גרסה 2.3

    <pros>
        <pro>Sleek design</pro>
        <pro>Protects the tablet well</pro>
    </pros>
    <cons>
        <con>Pricey</con>
    </cons>

פרטים נוספים:

  • הוסרו <pr:custom> רכיבים ורכיבי צאצא שלהם
  • הוסרו <pr:related_products> רכיבים ורכיבי צאצא שלהם
  • הרכיב <is_spam> נוסף
  • הרכיב <collection_method> נוסף
  • הרכיב <transaction_id> נוסף

גירסה 1

   <pr:custom>
      <pr:custom_title>
        Recall Information
      </pr:custom_title>
      <pr:custom_description>
        The batteries used with this camera are known to...
      </pr:custom_description>
       </pr:custom>
   ...
   <pr:related_products>
      <pr:related_product relate="complementary">
        <pr:product_id contenttype="MPN">5454545454</pr:product_id>
        <pr:product_id contenttype="UPC">4444456</pr:product_id>
        <pr:product_id contenttype="base_docid">9876500</pr:product_id>
        <pr:brand>Tamron</pr:brand>
        <pr:product_name>Tamron Telephoto Zoom Lens</pr:product_name>
        <pr:product_category level="1" category_id="123423">Consumer Electronics</pr:product_category>
          <pr:product_category level="2" category_id="123423">Digital Camera</pr:product_category>
            <pr:product_category level="3" category_id="123423">Digital SLR
              Accessories</pr:product_category
            <link rel="canonical" type="text/html" href="http://reviews.example.com/digital-cameras/tamron/id=2345670.html"/>
            <link rel="related" type="text/html" href="http://www.tamron.com."/>
            <link rel="related" type="text/html" href="http://reviews.example.com/digital-cameras/tamron/..."/>
      </pr:related_product>

גרסה 2.3

      <is_spam>false</is_spam>
      <collection_method>post_fulfillment</collection_method>
      <transaction_id>fulfillment_transaction_11198373</transaction_id>

ביקורות שנמחקו

המפרט של פיד הביקורות כבר לא תומך במאפיין מחיקה. כדי למחוק ביקורות, הסירו אותן מהפיד. ביקורות שנשלחו בעבר ואינן כלולות בפיד הבא יימחקו.

גירסה 1

  <deleted_entry>
    <id>34567</id>
  </deleted_entry>

גרסה 2

אינו נתמך יותר בגרסה 2. מחיקת ביקורות על ידי אי-הכללה שלהן בפיד הבא.