Skip to content

Creates a new ad configuration to be used for server-side ad insertion

Description

Creates a new ad configuration to be used for server-side ad insertion.

Usage

ivs_create_ad_configuration(name, mediaTailorPlaybackConfigurations,
  postRollConfiguration, tags)

Arguments

  • name

    Ad configuration name. Defaults to “”.

  • mediaTailorPlaybackConfigurations

    [required] List of integration configurations with MediaTailor resources. The first item in the list is the default playback configuration used for the ad configuration. To select a different configuration per viewing session, see Generate and Sign IVS Playback Tokens.

  • postRollConfiguration

    Configuration for the post-roll ad break to use for this ad configuration. Default: disabled (enabled set to false, durationSeconds set to 15).

  • tags

    Array of 1-50 maps, each of the form string:string (key:value). See Best practices and strategies in Tagging Amazon Web Services Resources and Tag Editor for details, including restrictions that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no service-specific constraints beyond what is documented there.

Value

A list with the following syntax:

list(
  adConfiguration = list(
    arn = "string",
    name = "string",
    mediaTailorPlaybackConfigurations = list(
      list(
        playbackConfigurationArn = "string"
      )
    ),
    postRollConfiguration = list(
      durationSeconds = 123,
      enabled = TRUE|FALSE
    ),
    tags = list(
      "string"
    )
  )
)

Request syntax

svc$create_ad_configuration(
  name = "string",
  mediaTailorPlaybackConfigurations = list(
    list(
      playbackConfigurationArn = "string"
    )
  ),
  postRollConfiguration = list(
    durationSeconds = 123,
    enabled = TRUE|FALSE
  ),
  tags = list(
    "string"
  )
)