All Products
Search
Document Center

Intelligent Media Services:GetAdInsertion

Last Updated:Jan 14, 2026

Obtains details of an ad insertion configuration.

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:GetAdInsertionget
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
NamestringYes

The name of the ad insertion configuration that you want to query.

my_ad

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

Configobject

The ad insertion configuration.

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 configuration.

my_ad
ContentUrlPrefixstring

The prefix of the source URL.

https://source.com/
AdsUrlstring

The URL of the ad decision server (ADS).

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

The aliases for dynamic variable replacement.

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

The personalization threshold.

5
SlateAdUrlstring

The URL of the slate ad.

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

The CDN configurations.

ContentSegmentUrlPrefixstring

The CDN prefix for accessing content segments.

http://cdn.com/
AdSegmentUrlPrefixstring

The CDN prefix for accessing ad segments.

http://cdn.com/
AdMarkerPassthroughstring

Indicates whether ad marker passthrough is enabled.

ON
ManifestEndpointConfigobject

The playback endpoint prefix for accessing manifests.

HlsPrefixstring

The playback endpoint prefix for accessing HLS manifests.

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

The ID of the request.

******3B-0E1A-586A-AC29-742247******

Examples

Sample success responses

JSONformat

{
  "Config": {
    "CreateTime": "2024-06-13T08:26:09Z\t",
    "LastModified": "2024-06-13T08:26:09Z\t",
    "Name": "my_ad",
    "ContentUrlPrefix": "https://source.com/\n",
    "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/"
    }
  },
  "RequestId": "******3B-0E1A-586A-AC29-742247******"
}

Error codes

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