Structured Data สำหรับภาพสไลด์ภาพยนตร์ (Movie)

ภาพประกอบแสดงผลการค้นหาที่เป็นริชมีเดียของภาพยนตร์ใน Google Search โดยแสดงภาพยนตร์ 3 เรื่องจากเว็บไซต์เดียวกันในรูปแบบภาพสไลด์ที่ผู้ใช้สามารถดูและเลือกภาพยนตร์ที่ต้องการได้

มาร์กอัปรายชื่อภาพยนตร์ด้วยข้อมูลที่มีโครงสร้างเพื่อให้ผู้ใช้สำรวจภาพยนตร์ใน Google Search ด้วยวิธีใหม่ได้ โดยคุณอาจให้รายละเอียดเกี่ยวกับภาพยนตร์ เช่น ชื่อเรื่อง ผู้กำกับ และรูปภาพจากภาพยนตร์ ภาพหมุนของภาพยนตร์จะแสดงเฉพาะในอุปกรณ์เคลื่อนที่เท่านั้น

How to add structured data

Structured data is a standardized format for providing information about a page and classifying the page content. If you're new to structured data, you can learn more about how structured data works.

Here's an overview of how to build, test, and release structured data.

  1. Add the required properties. Based on the format you're using, learn where to insert structured data on the page.
  2. Follow the guidelines.
  3. Validate your code using the Rich Results Test and fix any critical errors. Consider also fixing any non-critical issues that may be flagged in the tool, as they can help improve the quality of your structured data (however, this isn't necessary to be eligible for rich results).
  4. Deploy a few pages that include your structured data and use the URL Inspection tool to test how Google sees the page. Be sure that your page is accessible to Google and not blocked by a robots.txt file, the noindex tag, or login requirements. If the page looks okay, you can ask Google to recrawl your URLs.
  5. To keep Google informed of future changes, we recommend that you submit a sitemap. You can automate this with the Search Console Sitemap API.

ตัวอย่าง

หน้าสรุป + หน้ารายละเอียดแบบเต็มหลายหน้า

หน้าสรุปจะมีคำอธิบายสั้นๆ ของแต่ละรายการในรายชื่อ และคำอธิบายแต่ละรายการจะชี้ไปยังหน้ารายละเอียดแยกต่างหากซึ่งมุ่งเน้นไปที่รายการเดียวโดยเฉพาะ นี่คือตัวอย่างสรุปรายชื่อภาพยนตร์ในรูปแบบ JSON-LD

<html>
  <head>
    <title>The Best Movies from the Oscars - 2024</title>
    <script type="application/ld+json">
    {
      "@context":"https://schema.org",
      "@type":"ItemList",
      "itemListElement":[
        {
          "@type":"ListItem",
          "position":1,
          "url":"https://example.com/a-star-is-born.html"
        },
        {
          "@type":"ListItem",
          "position":2,
          "url":"https://example.com/bohemian-rhapsody.html"
        },
        {
          "@type":"ListItem",
          "position":3,
          "url":"https://example.com/black-panther.html"
        }
      ]
    }
    </script>
  </head>
  <body>
  </body>
</html>

รายชื่อหน้าเดียวแบบรวมทุกรายการ

ลิสต์แบบรวมทุกรายการในหน้าเดียวจะโฮสต์ข้อมูลทั้งหมดของลิสต์ ซึ่งรวมถึงข้อความแบบเต็มของแต่ละรายการ นี่คือตัวอย่างรายชื่อภาพยนตร์รายชื่อเดียวแบบรวมทุกรายการในรูปแบบ JSON-LD

<html>
  <head>
    <title>The Best Movies from the Oscars - 2024</title>
    <script type="application/ld+json">
    {
      "@context": "https://schema.org",
      "@type": "ItemList",
      "itemListElement": [
        {
          "@type": "ListItem",
          "position": "1",
          "item": {
            "@type": "Movie",
            "url": "https://example.com/2024-best-picture-noms#a-star-is-born",
            "name": "A Star Is Born",
            "image": "https://example.com/photos/6x9/photo.jpg",
            "dateCreated": "2024-10-05",
            "director": {
                "@type": "Person",
                "name": "Bradley Cooper"
              },
            "review": {
              "@type": "Review",
              "reviewRating": {
                "@type": "Rating",
                "ratingValue": "5"
              },
              "author": {
                "@type": "Person",
                "name": "John D."
              }
            },
              "aggregateRating": {
                "@type": "AggregateRating",
                "ratingValue": "90",
                "bestRating": "100",
                "ratingCount": "19141"
              }
            }
          },
        {
          "@type": "ListItem",
          "position": "2",
          "item": {
            "@type": "Movie",
            "name": "Bohemian Rhapsody",
            "url": "https://example.com/2024-best-picture-noms#bohemian-rhapsody",
            "image": "https://example.com/photos/6x9/photo.jpg",
            "dateCreated": "2024-11-02",
            "director": {
                "@type": "Person",
                "name": "Bryan Singer"
              },
            "review": {
              "@type": "Review",
              "reviewRating": {
                "@type": "Rating",
                "ratingValue": "3"
              },
              "author": {
                "@type": "Person",
                "name": "Vin S."
              }
            },
              "aggregateRating": {
                "@type": "AggregateRating",
                "ratingValue": "61",
                "bestRating": "100",
                "ratingCount": "21985"
              }
            }
          },
        {
          "@type": "ListItem",
          "position": "3",
          "item": {
            "@type": "Movie",
            "name": "Black Panther",
            "url": "https://example.com/2024-best-picture-noms#black-panther",
            "image": "https://example.com/photos/6x9/photo.jpg",
            "dateCreated": "2024-02-16",
            "director": {
                "@type": "Person",
                "name": "Ryan Coogler"
              },
            "review": {
              "@type": "Review",
              "reviewRating": {
                "@type": "Rating",
                "ratingValue": "2"
              },
              "author": {
                "@type": "Person",
                "name": "Trevor R."
              }
            },
              "aggregateRating": {
                "@type": "AggregateRating",
                "ratingValue": "96",
                "bestRating": "100",
                "ratingCount": "88211"
              }
            }
          }
      ]
    }
    </script>
  </head>
  <body>
  </body>
</html>

หลักเกณฑ์

คุณต้องทำตามหลักเกณฑ์เหล่านี้เพื่อให้มีสิทธิ์ปรากฏในภาพหมุนของภาพยนตร์

คำจำกัดความของประเภทข้อมูลที่มีโครงสร้าง

คุณต้องใส่พร็อพเพอร์ตี้ที่จำเป็นลงในเนื้อหาเพื่อให้มีสิทธิ์แสดงเป็นผลการค้นหาที่เป็นสื่อสมบูรณ์ คุณอาจใส่พร็อพเพอร์ตี้ที่แนะนำด้วยเพื่อให้ข้อมูลเพิ่มเติมเกี่ยวกับเนื้อหา ซึ่งจะช่วยให้ผู้ใช้ได้รับประสบการณ์ที่ดียิ่งขึ้น

Movie

นอกเหนือจากพร็อพเพอร์ตี้ภาพหมุน ให้กำหนดพร็อพเพอร์ตี้ต่อไปนี้ในออบเจ็กต์ภาพหมุน

ดูคำจำกัดความที่สมบูรณ์ของ Movie ได้ที่ schema.org/Movie

พร็อพเพอร์ตี้ที่ Google รองรับมีดังต่อไปนี้

พร็อพเพอร์ตี้ที่จำเป็น
image URL หรือ ImageObject

รูปภาพที่แสดงถึงภาพยนตร์ หลักเกณฑ์เพิ่มเติมเกี่ยวกับรูปภาพมีดังนี้

  • URL รูปภาพต้องรวบรวมข้อมูลและจัดทำดัชนีได้
  • รูปภาพต้องแสดงถึงเนื้อหาที่มาร์กอัป
  • รูปภาพต้องอยู่ในรูปแบบ .jpg, .png หรือ .gif
  • รูปภาพต้องมีความละเอียดสูงและมีสัดส่วนภาพ 6:9 แม้ว่า Google อาจครอบตัดรูปภาพที่ใกล้เคียงกับสัดส่วนภาพ 6:9 แต่รูปภาพที่ต่างไปจากสัดส่วนภาพนี้มากจะไม่มีสิทธิ์ใช้ฟีเจอร์นี้
name Text

ชื่อของภาพยนตร์

พร็อพเพอร์ตี้ที่แนะนำ

aggregateRating

AggregateRating

ข้อมูลเสริมสำหรับคะแนนรีวิวเฉลี่ยที่กำหนดให้กับภาพยนตร์ โปรดทำตามหลักเกณฑ์ตัวอย่างรีวิวและรายการพร็อพเพอร์ตี้ AggregateRating ที่จำเป็นและแนะนำ

dateCreated Date หรือ DateTime

วันที่ภาพยนตร์เริ่มออกฉาย

director Person

ผู้กำกับภาพยนตร์ เช่น


"director": {
  "@type": "Person",
  "name": "Bradley Cooper"
}

review

Review

Review ของภาพยนตร์ที่ฝัง ทำตามหลักเกณฑ์ตัวอย่างรีวิวและรายการของพร็อพเพอร์ตี้รีวิวที่จำเป็นและแนะนำ

Troubleshooting

If you're having trouble implementing or debugging structured data, here are some resources that may help you.

  • If you're using a content management system (CMS) or someone else is taking care of your site, ask them to help you. Make sure to forward any Search Console message that details the issue to them.
  • Google does not guarantee that features that consume structured data will show up in search results. For a list of common reasons why Google may not show your content in a rich result, see the General Structured Data Guidelines.
  • You might have an error in your structured data. Check the list of structured data errors and the Unparsable structured data report.
  • If you received a structured data manual action against your page, the structured data on the page will be ignored (although the page can still appear in Google Search results). To fix structured data issues, use the Manual Actions report.
  • Review the guidelines again to identify if your content isn't compliant with the guidelines. The problem can be caused by either spammy content or spammy markup usage. However, the issue may not be a syntax issue, and so the Rich Results Test won't be able to identify these issues.
  • Troubleshoot missing rich results / drop in total rich results.
  • Allow time for re-crawling and re-indexing. Remember that it may take several days after publishing a page for Google to find and crawl it. For general questions about crawling and indexing, check the Google Search crawling and indexing FAQ.
  • Post a question in the Google Search Central forum.