新闻简报技术要求

如果 Google 助理符合我们的 资格要求和适用地区 指南和以下技术要求:

  • 公开一个符合以下要求的有效 XML Feed: RSS 2.0 规范关于 Google 助理规范的新闻简报
  • 确保 GoogleBot 可以访问您的 RSS 新闻 Feed 和媒体文件,例如音频或视频。为了遵守政策,所有 部分 Feed 和文件不得要求登录。此外,它们都无法使用 robots.txt 可屏蔽 GoogleBot。

Google 助理规范新闻简报

请确保内容符合以下规范。音频和视频新闻示例 请参阅示例部分。

我们要求使用由 iTunes 扩展程序定义的标签,因此请确保包含 <rss> 标记中的适当 xmlns 命名空间声明, 置顶。如需了解详情,请参阅以下示例:

<rss version="2.0" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd">
下表提供了新闻简报 RSS 标记在 <channel>
<channel> 级别的新闻简报发布内容 RSS 标记
<title>

必填。

新闻内容的名称。

<link>

必填。

您的新闻内容首页的完全限定网址。

使用 抓取方式 Google适合移动设备 测试以测试首页是否可供以下人员访问: Googlebot

<description>

必填。

新闻内容的说明。

<image>

必填。

与新闻内容相关联的图片。

映像需要满足以下要求:

  • 一个 <url> 子元素,指向清晰可辨的 GIF, 尺寸至少为 1,400x1,400 像素的 JPEG 或 PNG 方形宽高比图片。 不得屏蔽此 <url>Googlebot
  • <title><link> 子元素值 与 <title><link> 元素相同, <channel> 级。

如需了解详情,请参阅以下示例:

<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>

不需要。

用于防止 Feed 在 iTunes 或 Google 等产品上公开发布的代码 播客。

如需启用保护,请将 <itunes:block> 的值设置为 yes。任何其他值都无效。有关详情,请参阅 Apple 的 播客主播的 RSS 指南

如需了解详情,请参阅以下示例:

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

必填。

包含新闻简报剧集详情(例如标题)的标签; 说明、媒体文件和时长

Google 助理新闻简报仅播放最新新闻内容,例如 来自最新的 <item> 元素的内容。如果您希望用户访问 以前的新闻简报剧集,建议您使用 Google 播客

如需详细了解要求的规格,请参阅 新闻简报分集 RSS 标记

下表提供了新闻简报剧集 RSS 标记的规范 在 <item> 级别
<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:新闻的完全限定网址 简报分集的音频或视频文件
    • 媒体文件网址的平均音量应为 -16 LUFS(完整音量单位),适用于立体声、 如果内容是单声道,则为 -19 LUFS。
    • 该网址必须可供 <ph type="x-smartling-placeholder"></ph> Googlebot

如需了解详情,请参阅以下示例:

  • <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) 简报一集。

如果您的标识符不是完全限定网址,请设置 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 = 秒:

  • H: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 以及我们所有的 技术要求

<ph type="x-smartling-placeholder">

音频新闻简报示例

以下是音频新闻简报的示例:

<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>