新聞焦點提要技術相關規定

如果您的新聞焦點提要同時符合 Google 助理的資格與適用性規範和下列技術規定,即可將焦點提要提供給 Google 助理:

  • 公開符合 RSS 2.0 規格Google 助理新聞焦點提要的有效 XML 動態饋給。
  • 確認 GoogleBot 可存取 RSS 新聞動態消息和媒體檔案,例如音訊或影片。為遵守相關規定,所有動態饋給和檔案都不必登入。而且所有孩子都無法使用 robots.txt 封鎖 GoogleBot。

Google 助理新聞焦點提要

內容必須符合下列規格。如需語音和影片新聞焦點提要的範例,請參閱「範例」一節。

我們需要使用 iTunes 擴充功能所定義的標記,因此請務必在動態饋給頂端的 <rss> 標記中,加入適當的 xmlns 命名空間宣告。詳情請參閱下列範例:

<rss version="2.0" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd">
下表提供 <channel> 層級的新聞焦點提要 RSS 標記規格:
<channel> 層級的新聞焦點提要出版品 RSS 標記
<title>

這是必填欄位。

你的新聞內容名稱。

<link>

這是必填欄位。

你的新聞內容首頁的完整網址。

您可以使用 Google 模擬器行動裝置相容性測試來測試 Googlebot 是否能存取首頁。

<description>

這是必填欄位。

你的新聞內容說明。

<image>

這是必填欄位。

與您的新聞內容相關聯的圖片。

圖片要求如下:

  • 指向清晰可辨識 GIF、JPEG 或 PNG 正方形顯示圖片的 <url> 子元素,圖片大小至少為 1,400x1,400 像素。這個 <url> 值不得遭到 Googlebot 封鎖。
  • <title><link> 子元素值與 <channel> 層級的 <title><link> 元素相同。

詳情請參閱下列範例:

<image>
  <url>http://www.example.com/theexampletimes/logo.png?s=1400</url>
  <title>The Example Times</title>
  <link>http://www.example.com/theexampletimes</link>
</image>
<itunes:block>

非必要。

這類標記可防止動態饋給在 iTunes 或 Google 播客等產品上的公開供應情形。

如要啟用防護功能,請將 <itunes:block> 的值設為 yes。任何其他值則不會有任何作用。詳情請參閱 Apple 的 Podcast 製播者指南

詳情請參閱下列範例:

  • <itunes:block>yes<itunes:block>
    
    
  • <itunes:block>Yes<itunes:block>
    
<item>

這是必填欄位。

標記內含新聞焦點提要集數的詳細資料,例如標題、說明、媒體檔案和時間長度。

Google 助理的新聞焦點提要只會播放最新的新聞內容,例如最新 <item> 元素的內容。如果想讓使用者瀏覽先前的新聞焦點提要集數,建議您使用 Google 播客

如要進一步瞭解必要規格,請參閱新聞焦點提要劇集 RSS 標記

下表提供 <item> 層級的新聞焦點提要集數 RSS 標記規格:
<item> 層級的新聞焦點提要集數 RSS 標記
<title>

這是必填欄位。

新聞焦點提要劇集的名稱。

<description>

這是必填欄位。

新聞焦點提要劇集的說明。

<enclosure>

這是必填欄位。

新聞焦點提要集的檔案大小、類型和位置。

<enclosure> 元素必須包含下列屬性:

  • length:媒體檔案大小,以位元組為單位
  • type:音訊或影片新聞內容的檔案類型
    • 我們支援下列標準 MIME 類型:.aac.m4a.mp4.mpeg.wav
    • 我們支援 .mp4 影片的副檔名,但影片檔案大小不得超過 100 MB。Google Nest Hub 和 Nest Hub Max 支援影片新聞焦點提要。
    • 如要進一步瞭解支援的媒體類型,請參閱「Google Cast 支援的媒體」,因為這項功能符合相同的規格。
  • url:新聞焦點提要集數音訊或影片檔案的完整網址

詳情請參閱下列範例:

  • <enclosure length="187000" type="audio/mpeg"
    url="http://www.example.com/theexampletimes/sample.mp3"/>
    
  • <enclosure length="200000" type="application/x-mpegurl"
    url="http://www.example.com/theexampletimes/sample.m3u8"/>
    
  • <enclosure length="9000000" type="video/mp4"
    url="http://www.example.com/theexampletimes/sample.mp4"/>
    
<guid>

這是必填欄位。

為每集新聞焦點提要永久指派的全域唯一識別碼 (GUID)。

如果 ID 不是完整網址,請將 isPermaLink 屬性設為 false

詳情請參閱下列範例:

  • <guid>http://www.example.com/theexampletimes/id/1234567891</guid>
    
  • <guid isPermaLink="false">abcde-1234567891</guid>
    
<pubDate>

這是必填欄位。

新聞焦點提要單集的發布日期和時間。

這些值僅適用於日期和時間的 RFC 822 格式。詳情請參閱下列範例:

<pubDate>Thu, 22 Sep 2016 21:11:46 GMT</pubDate>
<itunes:duration>

這是必填欄位。

新聞焦點提要集數的時間長度,以小時、分鐘和秒為單位。

您可以指定下列其中一種格式,其中 H = 小時、M = 分鐘和 S = 秒:

  • HH:MM:SS
  • H:MM:SS
  • MM:SS
  • M:SS
  • S、SS、SSS

詳情請參閱下列範例:

  • <itunes:duration>1:10:00</itunes:duration>
    
  • <itunes:duration>10:00</itunes:duration>
    
  • <itunes:duration>180</itunes:duration>
    

範例

以下範例說明 Google 助理新聞焦點提要所需的音訊和影片內容最低資料集。這些更新符合 RSS 2.0 和所有技術相關規定

語音新聞焦點提要範例

以下是語音新聞焦點提要的範例:

<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
version="2.0">
  <channel>
   <title>The Example Times</title>
   <link>http://www.example.com/theexampletimes</link>
   <description>The latest news from The Example Times.</description>
   <language>en-us</language>
   <copyright>Copyright 2018 The Example Times – For Personal Use Only</copyright>
   <image>
     <url>http://www.example.com/theexampletimes/logo.png?s=1400</url>
     <title>The Example Times</title>
     <link>http://www.example.com/theexampletimes</link>
   </image>
   <itunes:block>yes</itunes:block>
   <item>
     <title>The Example Times Daily News Briefing</title>
     <itunes:title>The Example Times Daily News Briefing</itunes:title>
     <description>Your daily dose of news from The Example Times.</description>
     <guid>http://www.example.com/theexampletimes/id/1234567893</guid>
     <enclosure length="4500000" type="audio/mpeg" url="http://www.example.com/theexampletimes/sample.mp3"/>
     <pubDate>Thu, 8 Jun 2018 11:11:00 GMT</pubDate>
     <itunes:duration>300</itunes:duration>
   </item>
  </channel>
</rss>

影片新聞焦點提要範例

以下是影片新聞焦點提要的範例:

<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
version="2.0">
  <channel>
   <title>The Example Times</title>
   <link>http://www.example.com/theexampletimes</link>
   <description>The latest news from The Example Times.</description>
   <language>en-us</language>
   <copyright>Copyright 2018 The Example Times – For Personal Use Only</copyright>
   <image>
     <url>http://www.example.com/theexampletimes/logo.png?s=1400</url>
     <title>The Example Times</title>
     <link>http://www.example.com/theexampletimes</link>
   </image>
   <itunes:block>yes</itunes:block>
   <item>
     <title>The Example Times Daily News Briefing</title>
     <itunes:title>The Example Times Daily News Briefing</itunes:title>
     <description>Your daily dose of news from The Example Times.</description>
     <guid isPermaLink="false">sample-id-2345678901</guid>
     <enclosure length="9000000" type="video/mp4" url="http://www.example.com/theexampletimes/sample.mp4"/>
     <pubDate>Thu, 8 Jun 2018 11:12:00 GMT</pubDate>
     <itunes:duration>300</itunes:duration>
   </item>
  </channel>
</rss>