modules/telariaBidAdapter.js
function createBid(status, reqBid, response, width, height, bidderCode) {
  let bid = createBidFactory(status, reqBid);

  // TTL 5 mins by default, future support for extended imp wait time
  if (response) {
    Object.assign(bid, {
      requestId: reqBid.bidId,
      cpm: response.price,
      creativeId: response.crid || '-1',
      vastXml: response.adm,
      vastUrl: reqBid.vastUrl,
      mediaType: 'video',
      width: width,
      height: height,
      bidderCode: bidderCode,
      adId: response.id,
      currency: 'USD',
      netRevenue: true,
      ttl: 300,
      ad: response.adm
    });
  }

  return bid;
}
function createBid(status, reqBid, response, width, height, bidderCode) {
  let bid = createBidFactory(status, reqBid);

  // TTL 5 mins by default, future support for extended imp wait time
  if (response) {
    Object.assign(bid, {
      requestId: reqBid.bidId,
      cpm: response.price,
      creativeId: response.crid || '-1',
      vastXml: response.adm,
      vastUrl: reqBid.vastUrl,
      mediaType: 'video',
      width: width,
      height: height,
      bidderCode: bidderCode,
      adId: response.id,
      currency: 'USD',
      netRevenue: true,
      ttl: 300,
      ad: response.adm
    });
  }

  return bid;
}
function createBid ( status , reqBid , response , width , height , bidderCode ) { let bid = createBidFactory ( status , reqBid ) ; // TTL 5 mins by default, future support for extended imp wait time if ( response ) { Object . assign ( bid , { requestId : reqBid . bidId , cpm : response . price , creativeId : response . crid || '-1' , vastXml : response . adm , vastUrl : reqBid . vastUrl , mediaType : 'video' , width : width , height : height , bidderCode : bidderCode , adId : response . id , currency : 'USD' , netRevenue : true , ttl : 300 , ad : response . adm } ) ; } return bid ; }
Create and return a bid object based on status and tag
@param status
@param reqBid
@param response
@param width
@param height
@param bidderCode
Create and return a bid object based on status and tag