聆聽動作常見屬性
本節提供「聆聽動作」常見屬性的詳細資訊。
動作標記屬性
屬性 |
預期類型 |
說明 |
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 裝置上的投放和 Google Home 平台。
http://schema.googleapis.com/GoogleAudioCast :Chromecast 裝置上的投放和主畫面平台 (僅限「聆聽動作」)。
如要瞭解相關規定,請參閱「平台類型」一節。
|
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 |
地點 |
允許播放媒體內容的國家/地區。請採用 ISO 3166 格式指定國家/地區。
- 如未指定,系統會假設圖片可在所有語言代碼中顯示。
- 如要為每個區域提交不同的圖片,請新增多個 ImageObjects;每個都有各自的國家/地區及對應的圖片網址
|
圖片相關網頁
請參閱下列網頁,瞭解與這些房源相關的主題:
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。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"]]