All Products
Search
Document Center

Intelligent Media Services:ListAdInsertions

Last Updated:Dec 23, 2025

Obtains ad insertion configurations.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • For mandatory resource types, indicate with a prefix of * .
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
ice:ListAdInsertionslist
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
KeywordstringNo

The configuration name. Fuzzy match is supported.

ad
PageNolongNo

The page number. Default value: 1.

1
PageSizelongNo

The number of entries per page. Default value: 10.

10
SortBystringNo

The sorting order of the configurations by creation time. asc: ascending. desc: descending.

asc
NextTokenstringNo

The token that is used in the next request to retrieve a new page of results. If this parameter is used, the pagination parameters become invalid.

******8EqYpQbZ6Eh7+Zz8DxVYoQ*****
MaxResultsintegerNo

The maximum number of entries to retrieve in a subsequent request. If this parameter is used, the pagination parameters become invalid. Default value: 10.

10

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

Configsarray<object>

Array

AdInsertionConfigobject

AdInsertionConifgItemType

CreateTimestring

The time when the configuration was created.

2024-06-13T08:26:09Z
LastModifiedstring

The time when the configuration was last modified.

2024-06-13T08:26:09Z
Namestring

The name of the ad insertion configuration.

my_ad
ContentUrlPrefixstring

The URL prefix for the source content.

https://source.com/
AdsUrlstring

The request URL of the ad decision server (ADS).

http://ads.com/ad1?param1=[palyer_params.p1]
ConfigAliasesstring

The player parameter variables and aliases.

{ "player_params.p1": { "1": "abc" } }
PersonalizationThresholdinteger

The personalization threshold that defines the maximum duration of underfilled time allowed in an ad break.

5
SlateAdUrlstring

The URL of the slate ad.

http://storage.com/slate1.mp4
CdnConfigobject

The CDN configurations.

ContentSegmentUrlPrefixstring

The CDN prefix for content segments.

http://cdn.com/
AdSegmentUrlPrefixstring

The CDN prefix for ad segments.

http://cdn.com/
AdMarkerPassthroughstring

Indicates whether ad marker passthrough is enabled.

ON
ManifestEndpointConfigobject

The playback endpoint configuration.

HlsPrefixstring

The prefix of the playback endpoint for HLS manifests.

https://****0311a423d11a5f7dee713535****.weaverpull-ssai.ap-southeast-1.ice.alibabacloudcs.com/v1/master/****4fda5b1a8e0d46c9bf6262a7****/my_ad/
PageNolong

The page number.

1
PageSizelong

The number of entries per page.

10
RequestIdstring

The ID of the request.

******11-DB8D-4A9A-875B-275798******
SortBystring

The sorting order of the configurations by creation time. asc: ascending. desc: descending.

asc
TotalCountlong

The total number of entries returned.

10
NextTokenstring

The token that is used in the next request to retrieve a new page of results. If this parameter is used, the pagination parameters become invalid.

******8EqYpQbZ6Eh7+Zz8DxVYoQ*****
MaxResultsinteger

The maximum number of entries to retrieve in a subsequent request. If this parameter is used, the pagination parameters become invalid.

10

Examples

Sample success responses

JSONformat

{
  "Configs": [
    {
      "CreateTime": "2024-06-13T08:26:09Z",
      "LastModified": "2024-06-13T08:26:09Z\n",
      "Name": "my_ad",
      "ContentUrlPrefix": "https://source.com/",
      "AdsUrl": "http://ads.com/ad1?param1=[palyer_params.p1]",
      "ConfigAliases": {
        "player_params.p1": {
          "1": "abc"
        }
      },
      "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/"
      }
    }
  ],
  "PageNo": 1,
  "PageSize": 10,
  "RequestId": "******11-DB8D-4A9A-875B-275798******",
  "SortBy": "asc",
  "TotalCount": 10,
  "NextToken": "******8EqYpQbZ6Eh7+Zz8DxVYoQ*****",
  "MaxResults": 10
}

Error codes

For a list of error codes, visit the Service error codes.