更新广告插入配置。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
ice:UpdateAdInsertion |
update |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| Name |
string |
是 |
配置名称,不可修改 |
my_ad |
| ContentUrlPrefix |
string |
是 |
内容 URL 前缀,支持 http/https 协议,最长支持 512 个字符 |
https://source.com/ |
| SlateAdUrl |
string |
否 |
slate 广告 URL,支持 http/https 协议,只支持 MP4 类型文件(.mp4),最长支持 2048 个字符 |
http://storage.com/slate1.mp4 |
| ConfigAliases |
string |
否 |
动态配置别名,json 字符串,其中 player_params.{name}最多添加 20 个,name 部分限制 150 个字符长度,每个 player_params.xxx 下最多添加 50 对 key-value,key 限制 150 个字符长度,value 限制 500 个字符长度,例: { "player_params.{name}": { "{key}": "{value}" } } |
{ "player_params.p1": { "1": "abc" } } |
| CdnContentSegmentUrlPrefix |
string |
否 |
视频内容分片的 CDN 前缀,支持 http/https 协议,最长支持 512 个字符 |
http://cdn.com/ |
| CdnAdSegmentUrlPrefix |
string |
否 |
广告分片的 CDN 前缀,支持 http/https 协议,最长支持 512 个字符 |
http://cdn.com/ |
| AdMarkerPassthrough |
string |
否 |
广告标记透传,ON/OFF,默认 OFF 枚举值:
|
ON |
| PersonalizationThreshold |
integer |
否 |
个性化配置阈值,单位秒,不填默认 8 秒 |
5 |
| AdsUrl |
string |
是 |
广告策略服务器 URL,支持 http/https 协议,最长支持 2048 个字符 |
http://ads.com/ad1?param1=[palyer_params.p1] |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Schema of Response |
||
| Config |
object |
广告插入配置 |
|
| CreateTime |
string |
创建时间 |
2024-06-13T08:26:09Z |
| LastModified |
string |
修改时间 |
2024-06-13T08:26:09Z |
| Name |
string |
广告插入配置名称 |
my_ad |
| ContentUrlPrefix |
string |
内容 URL 前缀 |
https://source.com/ |
| AdsUrl |
string |
广告策略服务器 URL |
http://ads.com/ad1?param1=[palyer_params.p1] |
| ConfigAliases |
string |
动态配置别名 |
{ "player_params.p1": { "1": "abc" } } |
| PersonalizationThreshold |
integer |
个性化配置阈值 |
5 |
| SlateAdUrl |
string |
slate 广告 URL |
http://storage.com/slate1.mp4 |
| CdnConfig |
object |
CDN 配置 |
|
| ContentSegmentUrlPrefix |
string |
视频内容分片的 CDN 前缀 |
http://cdn.com/ |
| AdSegmentUrlPrefix |
string |
广告分片的 CDN 前缀 |
http://cdn.com/ |
| AdMarkerPassthrough |
string |
广告标记透传 |
ON |
| ManifestEndpointConfig |
object |
清单播放端点配置 |
|
| HlsPrefix |
string |
HLS 清单播放端点前缀 |
https://****0311a423d11a5f7dee713535****.weaverpull-ssai.ap-southeast-1.ice.alibabacloudcs.com/v1/master/****4fda5b1a8e0d46c9bf6262a7****/my_ad/ |
| DashPrefix |
string |
DASH 清单播放端点前缀 |
https://****0311a423d11a5f7dee713535****.weaverpull-ssai.ap-southeast-1.ice.alibabacloudcs.com/v1/dash/****4fda5b1a8e0d46c9bf6262a7****/my_ad/ |
| RequestId |
string |
请求 ID |
****63E8B7C7-4812-46AD-0FA56029AC86**** |
示例
正常返回示例
JSON格式
{
"Config": {
"CreateTime": "2024-06-13T08:26:09Z",
"LastModified": "2024-06-13T08:26:09Z",
"Name": "my_ad",
"ContentUrlPrefix": "https://source.com/",
"AdsUrl": "http://ads.com/ad1?param1=[palyer_params.p1]",
"ConfigAliases": "{ \"player_params.p1\": { \"1\": \"abc\" } }\n",
"PersonalizationThreshold": 5,
"SlateAdUrl": "http://storage.com/slate1.mp4",
"CdnConfig": {
"ContentSegmentUrlPrefix": "http://cdn.com/",
"AdSegmentUrlPrefix": "http://cdn.com/"
},
"AdMarkerPassthrough": "ON",
"ManifestEndpointConfig": {
"HlsPrefix": "https://****0311a423d11a5f7dee713535****.weaverpull-ssai.ap-southeast-1.ice.alibabacloudcs.com/v1/master/****4fda5b1a8e0d46c9bf6262a7****/my_ad/",
"DashPrefix": "https://****0311a423d11a5f7dee713535****.weaverpull-ssai.ap-southeast-1.ice.alibabacloudcs.com/v1/dash/****4fda5b1a8e0d46c9bf6262a7****/my_ad/"
}
},
"RequestId": "****63E8B7C7-4812-46AD-0FA56029AC86****"
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。