Assigning Ad Sets with setEmbedCode in Player V3

You also have the option of assigning ad sets using the setEmbedCode function.

With this function you can set up playlists with different ad sets or set up ad sets for different contexts.
Note: This function requires that you associate an ad set with a movie in Backlot as shown in Assigning an Ad Set with OO.Player.create in Player V3.

The setEmbedCode function takes an additional options parameter that must be an object and must belong to the same provider as the embed code. In the options hash, use the adSetCode parameter, as in the following example.

<script>
player.setEmbedCode(embedCode, {
    adSetCode: 'yourAdSetCode'
});
<script>

해당 내용이 도움 되었습니까?