确定付费内容的价格
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
最后,您需要提供内容的价格信息。
价格
对于观看操作,请在以下情况下指定内容的价格:
category
是 rental
或 purchase
。
category
为 subscription
或 externalsubscription
,但订阅者需要额外购买才能观看相应内容。
对于“Listen”操作,如果 category
为 subscription
,则可以选择是否指定价格。

图 1. 在 Google 搜索上显示内容价格的媒体操作。
对于观看操作,请在操作访问权限规范对象中指定内容的价格:
"potentialAction":{
"@type":"WatchAction",
"target":{
"@type":"EntryPoint",
"urlTemplate":"http://www.example.com/my_favorite_movie?autoplay=true",
"actionPlatform":[ "http://schema.org/DesktopWebPlatform" ]
},
"actionAccessibilityRequirement": {
"@type": "ActionAccessSpecification",
"category": "purchase",
"availabilityStarts": "2019-01-01T00:00Z",
"availabilityEnds": "2019-12-31T00:00Z",
"eligibleRegion": {
"@type": "Country",
"name": "US"
},
"expectsAcceptanceOf": {
"@type": "Offer",
"price": 7.99,
"priceCurrency": "USD",
"seller": {
"@type": "Organization",
"name": "My example seller"
}
}
}
}
对于“Listen”(收听)操作,请直接在Action 标记对象中指定内容的价格:
"potentialAction":{
"@type":"ListenAction",
"target":{
"@type":"EntryPoint",
"urlTemplate":"http://www.example.com/playlist/top_pop_songs?autoplay=true",
"actionPlatform":[ "http://schema.org/DesktopWebPlatform" ]
},
"expectsAcceptanceOf":{
"@type": "Offer",
"eligibleRegion": {
"@type":"Country",
"name":"US"
},
"category": "subscription",
"name": "Example Music",
"price": 9.99,
"priceCurrency": "USD",
"seller": {
"@type": "Organization",
"name": "My example seller",
"sameAs": "http://www.example.com"
}
}
}
指明价格
执行以下操作:
- 对于观看操作,
- 如果
category
为 rental
或 purchase
,您需要提供一次性购买交易的价格。
- 如果
category
为 subscription
或 externalsubscription
,但订阅者需要额外购买才能观看相应内容,您需要提供额外费用的价格。
- 否则,您无需为
subscription
或 externalsubscription
提供价格。
- 对于“ListenAction”,请执行以下操作:
- 如果
category
为 subscription
,则可以选择提供订阅的价格。
如需查看详细示例,请参阅操作访问权限要求示例部分。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
[null,null,[],[[["\u003cp\u003eFor Watch Actions, price information is required for rentals, purchases, and any additional costs for subscribers of subscription-based content.\u003c/p\u003e\n"],["\u003cp\u003eWatch Action pricing is specified within the \u003ccode\u003eActionAccessSpecification\u003c/code\u003e object using the \u003ccode\u003eexpectsAcceptanceOf\u003c/code\u003e and \u003ccode\u003eOffer\u003c/code\u003e properties.\u003c/p\u003e\n"],["\u003cp\u003eFor Listen Actions, providing the price is optional for subscription-based content.\u003c/p\u003e\n"],["\u003cp\u003eListen Action pricing, when provided, is specified directly within the \u003ccode\u003eListenAction\u003c/code\u003e object using the \u003ccode\u003eexpectsAcceptanceOf\u003c/code\u003e and \u003ccode\u003eOffer\u003c/code\u003e properties.\u003c/p\u003e\n"],["\u003cp\u003eBoth Watch and Listen Actions utilize the \u003ccode\u003eOffer\u003c/code\u003e schema to define price, currency, and seller information.\u003c/p\u003e\n"]]],["Price information must be provided for Watch Actions when the `category` is `rental` or `purchase`, or if it's `subscription` or `externalsubscription` but requires an extra purchase. For Watch Actions, prices are specified within the `ActionAccessSpecification` object. For Listen Actions, pricing is optional if the `category` is `subscription` and is specified within the `Action Markup` object. In any case, the `price`, `priceCurrency` are required, alongside with the `seller` information.\n"],null,["# Identify the price of the paid content\n\nLastly, you need to provide the price information of your content.\n\nPrice\n-----\n\nFor Watch Actions, specify the price of the content for the following cases:\n\n- `category` is `rental` or `purchase`.\n- `category` is `subscription` or `externalsubscription`, but the content requires an additional purchase for subscribers.\n\nFor Listen Actions, it's optional to specify the price if `category` is `subscription`.\n\n**Figure 1.** Media Actions showing the prices of content on Google Search.\n\nFor Watch Actions, specify the price of content in the [Action access specification object](../reference/#action_access_specification): \n\n \"potentialAction\":{\n \"@type\":\"WatchAction\",\n \"target\":{\n \"@type\":\"EntryPoint\",\n \"urlTemplate\":\"http://www.example.com/my_favorite_movie?autoplay=true\",\n \"actionPlatform\":[ \"http://schema.org/DesktopWebPlatform\" ]\n },\n \"actionAccessibilityRequirement\": {\n \"@type\": \"ActionAccessSpecification\",\n \"category\": \"purchase\",\n \"availabilityStarts\": \"2019-01-01T00:00Z\",\n \"availabilityEnds\": \"2019-12-31T00:00Z\",\n \"eligibleRegion\": {\n \"@type\": \"Country\",\n \"name\": \"US\"\n },\n \"expectsAcceptanceOf\": {\n \"@type\": \"Offer\",\n \"price\": 7.99,\n \"priceCurrency\": \"USD\",\n \"seller\": {\n \"@type\": \"Organization\",\n \"name\": \"My example seller\"\n }\n }\n }\n }\n\nFor Listen Actions, specify the price of content directly in the [Action markup object](../reference/#action_markup): \n\n \"potentialAction\":{\n \"@type\":\"ListenAction\",\n \"target\":{\n \"@type\":\"EntryPoint\",\n \"urlTemplate\":\"http://www.example.com/playlist/top_pop_songs?autoplay=true\",\n \"actionPlatform\":[ \"http://schema.org/DesktopWebPlatform\" ]\n },\n \"expectsAcceptanceOf\":{\n \"@type\": \"Offer\",\n \"eligibleRegion\": {\n \"@type\":\"Country\",\n \"name\":\"US\"\n },\n \"category\": \"subscription\",\n \"name\": \"Example Music\",\n \"price\": 9.99,\n \"priceCurrency\": \"USD\",\n \"seller\": {\n \"@type\": \"Organization\",\n \"name\": \"My example seller\",\n \"sameAs\": \"http://www.example.com\"\n }\n }\n }\n\nIdentify the price\n------------------\n\nDo the following:\n\n1. For Watch Actions,\n - If `category` is `rental` or `purchase`, you need to provide the price of the one-time purchase.\n - If `category` is `subscription` or `externalsubscription`, but the content requires an additional purchase for subscribers, you need to provide the price of the additional cost.\n - Otherwise, you do not need to provide the price for `subscription` or `externalsubscription`.\n2. For Listen Actions,\n - If `category` is `subscription`, it's optional to provide the price of the subscription.\n\nSee the [Action access requirement examples](../reference/#action_access_requirement_examples) section for detailed examples."]]