通知

我們最近公佈了出版物頁面的更新。詳情請參閱此處

資訊提供技術要求

資訊提供內的資訊可豐富您的「Google 新聞」出版物。

改善資訊提供

如要讓讀者充分與內容互動,請提供完整的報導和媒體資源。正確設定資訊提供以避免錯誤、核准失敗或被移除的情況。

如要改善您的資訊提供:

  • 查看資訊提供內容指引
  • 驗證 RSS/Atom 資訊提供以避免出現常見錯誤。
    • 製作出版物前,您可以使用資訊提供驗證工具驗證資訊提供、遵從建議做法及修正所有問題。
  • 確認「新聞」能檢索您的資訊提供。

資訊提供技術規格

我們接受標準 RSS 及 Atom 資訊提供。「Google 新聞」資訊提供遵循以下參數:

  • 更新頻率:除非使用 WebSub 通知「Google 新聞」有關變更,否則每個資訊提供大約每 30 分鐘擷取一次。進一步瞭解資訊提供內容的更新頻率
  • 大小上限:每篇文章為 1 MB,而資訊提供則為 2 MB。
  • 可讀性:每次可擷取最多 60 篇新文章,不包括先前已讀的文章。

提示:為確保擷取所有內容,請勿超過擷取或檔案限制。

文章更新

為識別個別文章,請務必使用 RSS 的 <guid> 標籤和 Atom 的 <id> 標籤。由於文章標題很可能會變更,因此建議以此作為 <guid>/<id> 標籤。

重要資訊:我們會使用 <pubDate> 標籤來決定文章是否經過修改。

使用 isPermaLink 的時機和方法

如果您在 <guid>/<id> 標籤內為原始文章提供完整網址,則可選用 isPermaLink。如果您不提供完整網址,則必須將 isPermaLink 設為「false」

使用完整網址
  • 不使用 isPermaLink
  • isPermaLink 設定為「true」
  • <guid>https://www.yoursite.com/url-to-article.html</guid>
  • <guid isPermaLink=”true”>https://www.yoursite.com/url-to-article.html</guid>
不使用完整網址
  • isPermaLink 設定為「false」
  • <guid isPermaLink=”false”>sample-id-1234567890</guid>

文章內容及標記

雖然「Google 新聞」不會再向使用者顯示動態消息中的文章內容,但其他 Google 產品 (例如「Google 助理」) 仍可能會使用該動態消息

重要事項:「Google 新聞」會移除以下項目:

  • <script> 標籤
  • 內嵌樣式 (例如 <style> 標籤或 style="") 屬性。

按照下列指南操作:

  • 如要包含每篇文章的完整內容,請使用 <content:encoded>。如不使用 <content:encoded> 標籤,「Google 新聞」會以預設的 <description> 標籤納入報導。
  • 如果資訊提供中同時顯示 <content:encoded><description> 標籤,「Google 新聞」會刪除字元數目最少的標籤。
  • 對於 <content:encoded>,請使用命名空間 xmlns:content="http://purl.org/rss/1.0/modules/content/"。HTML 必須逸出,或建議包含在 CDATA 部分,例如:<content:encoded><![CDATA[<b>此處為 HTML 文字。</b>]]></content:encoded>

最佳製作方式

  • 使用語義上有意義的 HTML 標籤 (例如 <p><h1><ul> 等) 標記內容。
  • 可以的話,避免使用 <br>
  • 使用封鎖級別元素,以避免零像素邊框問題。
  • 避免使用智能引號
  • 如需指定字元編碼,請使用 UTF-8。

媒體資源

我們建議您使用「媒體 RSS」標籤,以識別 Atom 和 RSS 資訊提供中的多媒體內容。進一步瞭解「媒體 RSS」標籤

重要資訊:如要使用「媒體 RSS」,請包括命名空間。例子:xmlns:media="http://search.yahoo.com/mrss/"

影片

這些指引可助您改善影片。
重要資訊:影片內容解像度最低為 640x480 (闊 x 高),且使用 HTTPS。
RSS 標籤

RSS 標籤有助提升影片效能,並可提供更順暢的使用者介面 (UI) 元素及靜音自動播放功能。可接受的發佈者寄存影片格式包括:MP4、WebM、DASH、SmoothStreaming 和 HLS。如要在資訊提供中直接加入影片,請使用「媒體 RSS」標籤。

例如:

<media:content url="https://ia600806.us.archive.org/17/items/VintageCartoonsSet2MP4/052750AnEggScrambleMmBr.mp4" medium="video" height="768" width="1024">

  <media:title>Sample MP4 Video</media:title>

  <media:description>

    <![CDATA[This is a sample MP4 video]]>

  </media:description>

  <media:credit role="author" scheme="urn:ebu">

    <![CDATA[Warner Brothers]]>

  </media:credit>

</media:content>

多個位元率

如要為影片提供多個位元率,請在 <media:group> 中指定多個 <media:content> 物件。

例如:

<media:group>

  <media:content url="https://ia600806.us.archive.org/17/items/VintageCartoonsSet2MP4/052750AnEggScrambleMmBr_1280.mp4" medium="video" height="768" width="1024" bitrate=”1280”>

    <media:title>Sample MP4 Video</media:title>

    <media:description>

      <![CDATA[This is a sample MP4 video]]>

    </media:description>

    <media:credit role="author" scheme="urn:ebu">

      <![CDATA[Warner Brothers]]>

    </media:credit>

  </media:content>

  <media:content url="https://ia600806.us.archive.org/17/items/VintageCartoonsSet2MP4/052750AnEggScrambleMmBr_4080.mp4" medium="video" height="768" width="1024" bitrate=”4080”>

    <media:title>Sample MP4 Video</media:title>

    <media:description>

      <![CDATA[This is a sample MP4 video]]>

    </media:description>

    <media:credit role="author" scheme="urn:ebu">

      <![CDATA[Warner Brothers]]>

    </media:credit>

  </media:content>

</media:group>

YouTube 關聯

為了讓我們更加瞭解您的影片內容,請將您的發佈者寄存影片與其 YouTube 副本關聯。您可以將 YouTube 影片加到 <media:group> 元素中。

例如:

<media:group>

  <media:content      url="https://archive.org/download/Fleischer_The_Tantalizing_Fly_1919/Tantalizing_Fly_1919_512kb.mp4"  medium="video" type="video/mp4" height="240" width="360">

    <media:title>The Tantalizing Fly</media:title>

    <media:thumbnail url="https://archive.org/download/Fly_1/RIMG0019.JPG"/>

  </media:content>

  <media:content url="https://www.youtube.com/watch?v=_dlP0nXMKXA" medium="video" type="video/3gpp">

    <media:title>The Tantalizing Fly</media:title>

  </media:content>

</media:group>

true
新版新聞發布者中心

Google 推出了新版的新聞發布者中心介面,協助發布者輕鬆管理內容在 Google 新聞版面顯示的方式。詳情請參閱這個常見問題頁面和我們的網誌文章

搜尋
清除搜尋
閂搜尋模式
主選單
12498810272356528604
true
搜尋說明中心
true
true
true
true
true
100499
false
false