nl_tokens: Ads constructor .
pl_tokens: function Ads ( player ) { var _this = this ; _classCallCheck ( this , Ads ) ; this . player = player ; this . config = player . config . ads ; this . playing = false ; this . initialized = false ; this . elements = { container : null , displayContainer : null } ; this . manager = null ; this . loader = null ; this . cuePoints = null ; this . events = { } ; this . safetyTimer = null ; this . countdownTimer = null ; // Setup a promise to resolve when the IMA manager is ready this . managerPromise = new Promise ( function ( resolve , reject ) { // The ad is loaded and ready _this . <mask> ( 'loaded' , resolve ) ; // Ads failed _this . on ( 'error' , reject ) ; } ) ; this . load ( ) ; }