“收听操作”常见属性
本部分详细介绍了监听操作的常见属性。
操作标记属性
属性 |
预期类型 |
说明 |
potentialAction.@type |
文本 |
必需 - 始终设置为 ListenAction 。 |
target |
EntryPoint |
必需 - 一个目标对象,可提供深层链接到各种 Google 平台的映射。 |
target.@type |
文本 |
必需 - 始终设置为 EntryPoint 。 |
target.urlTemplate |
网址 |
必需属性 - 可将用户转到您的应用或平台并启动内容播放的深层链接。 |
target.actionPlatform |
文本 |
必需 - 映射到的平台
urlTemplate 。媒体操作支持以下各项:
http://schema.org/DesktopWebPlatform :桌面网络浏览器上的搜索平台。
http://schema.org/MobileWebPlatform :移动网络浏览器上的搜索平台。
http://schema.org/AndroidPlatform :Android 应用中的搜索和 PlayGuide 平台。
http://schema.org/AndroidTVPlatform :Android TV 应用中的 Android TV 平台。
http://schema.org/IOSPlatform :iOS 应用中的搜索平台。
http://schema.googleapis.com/GoogleVideoCast :Chromecast 设备上的投屏和家居平台。
http://schema.googleapis.com/GoogleAudioCast :Chromecast 设备上的投屏平台和主屏幕平台(仅限“Listen Actions”[监听操作])。
。
如需了解相关要求,请参阅平台类型部分。
|
expectsAcceptanceOf |
优惠 |
必需 - 优惠对象的容器。 |
expectsAcceptanceOf.@type |
文本 |
必需 - 始终设置为 Offer 。 |
expectsAcceptanceOf.category |
文本 |
必需 - 内容的访问权限要求。请使用以下某个选项:
nologinrequired :内容无需购买或登录。
free :内容要求用户登录,不需要付费订阅。
subscription :该内容要求用户登录并付费订阅。
|
expectsAcceptanceOf.availabilityStarts |
日期 |
可执行操作的日期,采用 ISO 8601 格式(包括时区)。可以是将来的日期。使用此属性可按日期/时间限制操作的可用性。如果未提供,我们会假定该操作没有时间限制。 |
expectsAcceptanceOf.availabilityEnds |
日期 |
操作的失效日期,采用 ISO 8601 格式(包括时区)。使用此属性可按日期/时间限制操作的可用性。如果未提供,我们会假定该操作没有时间限制。 |
expectsAcceptanceOf.eligibleRegion |
国家/地区 |
必需属性 - 提供相应操作的国家/地区。 |
expectsAcceptanceOf.eligibleRegion.@type |
文本 |
必需 - 始终设置为 Country 。 |
expectsAcceptanceOf.eligibleRegion.name |
文本 |
必需属性 - 允许展示商品的国家/地区。以 ISO 3166 格式指定国家/地区。
|
操作标记相关网页
您可以访问以下页面,了解与这些属性相关的主题:
图片标记属性
属性 |
预期类型 |
说明 |
image.@type |
ImageObject |
必需 - 始终设置为 ImageObject 。 |
contentUrl |
网址 |
必需 - 图片的网址。 |
dateModified |
日期 |
图片的最近修改/更改日期,采用 ISO 8601 格式(包括时区) |
regionsAllowed |
Place |
允许发布媒体内容的国家/地区。以 ISO 3166 格式指定国家/地区。
- 如果未指定,则假定允许此图片在所有语言区域中显示。
- 如需按地区提交不同的图片,请添加多个 ImageObject;每个都有自己的一组国家/地区和相应的图片网址。
|
图片相关网页
您可以访问以下页面,了解与这些属性相关的主题:
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
[null,null,[],[[["Listen Actions use schema.org markup to enable Google Search to initiate audio playback on your platform."],["They require a deep link (`target.urlTemplate`) mapped to supported platforms (`target.actionPlatform`) for playback functionality."],["Content availability is defined by `expectsAcceptanceOf` properties, including access requirements, eligible regions, and time periods."],["Image markup, using `ImageObject`, is utilized to provide a visual representation of the audio content."],["Refer to linked documentation for detailed information on specific properties and platform support."]]],["This content details the properties for Listen Actions and image markup. Listen Actions require specific settings: `@type` (`ListenAction`, `EntryPoint`, `Offer`, `Country`), `target` (deep links), `urlTemplate`, and `actionPlatform` (supported platforms). `expectsAcceptanceOf` manages content access (`nologinrequired`, `free`, `subscription`), availability dates, and eligible countries in ISO 3166 format. Image markup properties include `@type` (`ImageObject`), `contentUrl`, `dateModified`, and `regionsAllowed` for region-specific images.\n"]]