Assigning an Ad Set with OO.Player.create in Player V3 (Deprecated)

Player V3 enables you to assign ad sets dynamically with OO.Player.create and the adSetCode parameter.

Note: Ooyala Player V3 has been deprecated and is scheduled to be disabled. For details and alternatives, see the OVP Release Notes.
Each ad set has a unique Ad Set Code identifier. You must first set up the Ad Set Code in Backlot, as shown in the first steps below.

To assign the ad set with OO.Player.create and the adSetCode parameter:

  1. Associate an ad set with an asset (movie) in Backlot.
  2. Once you create the association, you can get the Ad Set Code. The following figure shows an example of this association and the Ad Set Code that you create in the MONETIZE tab.
    Note: The ad set code identifier is not available by default for security reasons. Please contact your Customer Success Manager or Technical Support to enable this feature for your account.
  3. Use the OO.Player.create function to generate a player that takes a DOM element and the embed code of the player. In the following script example we name the DOM element playerwrapper and add the standard parameters height and width.
  4. Add the additional adSetCode key value pair to associate an ad set with a particular player and player asset (video).
     
    <script>
        var videoPlayer = OO.Player.create('playerwrapper','embed_code',{
          height:'100%',
          width:'100%',
          adSetCode:'yourAdSetCode'
        });
    <script>
    

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