# Why does the video not start when I try to show VAST ads with the Roku SDK?

**URL:** <https://community.bitmovin.com/t/why-does-the-video-not-start-when-i-try-to-show-vast-ads-with-the-roku-sdk/948>\
**Category:** Support\
**Tags:** bitmovin-player, roku, vast, brightscript, ads\
**Created:** [June 28, 2022, 4:56pm UTC](https://community.bitmovin.com/t/why-does-the-video-not-start-when-i-try-to-show-vast-ads-with-the-roku-sdk/948 "2022-06-28T16:56:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![matheus.cardoso](https://avatars.discourse-cdn.com/v4/letter/m/3bc359/32.png) [@matheus.cardoso](https://community.bitmovin.com/u/matheus.cardoso)\
**Post date:** [June 28, 2022, 4:56pm UTC](https://community.bitmovin.com/t/why-does-the-video-not-start-when-i-try-to-show-vast-ads-with-the-roku-sdk/948/1 "2022-06-28T16:56:44Z")

</div>

I’m having issues with ads when applying the following configuration:

```auto
playerConfig = {
    playback: { autoplay: true, muted: false },
    adaptation: { preload: true },
    key: m.global.configdetails.bitmovinSDK.key
    advertising: {
        adBreaks: [{
            tag: {
                type: "vast",
                url: getadUrl()
            }
        }]
    }
}

```

The function `getadUrl() ` returns the following tag:

`https://pubads.g.doubleclick.net/gampad/ads?iu=/21775744923/external/single_ad_samples&sz=640x480&cust_params=sample_ct%3Dlinear&ciu_szs=300x250%2C728x90&gdfp_req=1&output=vast&unviewed_position_start=1&env=vp&impl=s&correlator=`

Any clue about what is wrong with that snippet?

---

<div class="post-metadata">

**Author:** ![anon23459950](https://avatars.discourse-cdn.com/v4/letter/a/977dab/32.png) [@anon23459950](https://community.bitmovin.com/u/anon23459950)\
**Post date:** [July 1, 2022, 10:43am UTC](https://community.bitmovin.com/t/why-does-the-video-not-start-when-i-try-to-show-vast-ads-with-the-roku-sdk/948/2 "2022-07-01T10:43:14Z")

</div>

There are two things that stand out to me:

1. This line is missing a comma at the end, breaking the player config:

> [@matheus.cardoso](#):
>
> `key: m.global.configdetails.bitmovinSDK.key`

1. To the best of my knowledge and understanding the ad configuration should be in the source config, not in the player config.

I hope the above helps narrow things down.
