如果您的新闻简报符合我们的资格和适用性准则以及以下技术要求,我们就可以将其纳入 Google 助理:
- 公开符合 RSS 2.0 规范和 Google 助理新闻简报规范的有效 XML Feed。
- 确保 GoogleBot 可以访问您的 RSS 新闻 Feed 和媒体文件(例如音频或视频)。为遵守此规定,您的所有 Feed 和文件都不得要求登录。此外,它们都无法使用
robots.txt
屏蔽 GoogleBot。
Google 助理新闻简报规范
请使您的内容符合以下规范。如需查看音频和视频新闻简报示例,请参阅示例部分。
我们要求使用 iTunes 扩展程序定义的标记,因此请务必在 Feed 顶部的 <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 是否可以访问首页。Googlebot |
<description> |
必需。 新闻内容的说明。 |
<image> |
必需。 与您的新闻内容相关联的图片。 图片需要满足以下要求:
如需了解详情,请参阅以下示例: <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 播客等产品上公开提供。 如需启用保护功能,请将 如需了解详情,请参阅以下示例:
|
<item> |
必需。 包含新闻简报分集详细信息(例如标题、说明、媒体文件和时长)的标记。 Google 助理新闻简报仅播放最新的新闻内容,例如最新 如需详细了解所需规范,请参阅新闻简报分集 RSS 标记。 |
<item>
级新闻简报分集 RSS 标记的规范:
<item> 级新闻简报分集 RSS 标记 |
|
---|---|
<title> |
必需。 新闻简报分集的名称。 |
<description> |
必需。 新闻简报分集中的说明。 |
<enclosure> |
必需。 新闻简报分集的文件大小、类型和位置。
如需了解详情,请参阅以下示例:
|
<guid> |
必需。 为每集新闻简报永久分配且区分大小写的全局唯一标识符 (GUID)。 如果您的标识符不是完全限定的网址,请将 如需了解详情,请参阅以下示例:
|
<pubDate> |
必需。 新闻简报分集的发布日期和时间。 这些值仅支持 RFC 822 格式的日期和时间。如需了解详情,请参阅以下示例: <pubDate>Thu, 22 Sep 2016 21:11:46 GMT</pubDate> |
<itunes:duration> |
必需。 新闻简报分集的时长(以小时、分钟和秒为单位)。 您可以指定以下格式之一,其中 H = 小时、M = 分钟、S = 秒:
如需了解详情,请参阅以下示例:
|
示例
以下示例展示了 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>