code: function bidToBannerImp(bid) {
    const imp = {};
  
    imp.id = bid.bidId;
  
    imp.banner = {};
    imp.banner.w = bid.params.size[0];
    imp.banner.h = bid.params.size[1];
    imp.banner.topframe = utils.inIframe() ? 0 : 1;
  
    imp.ext = {};
    imp.ext.siteID = bid.params.siteId;
  
    if (bid.params.hasOwnProperty('id') &&
      (typeof bid.params.id === 'string' || typeof bid.params.id === 'number')) {
      imp.ext.sid = String(bid.params.id);
    } else {
      imp.ext.sid = `${bid.params.size[0]}x${bid.params.size[1]}`;
    }
  
    if (bid.params.hasOwnProperty('bidFloor') && bid.params.hasOwnProperty('bidFloorCur')) {
      imp.bidfloor = bid.params.bidFloor;
      imp.bidfloorcur = bid.params.bidFloorCur;
    }
  
    return imp;
  }
docs: Transform valid bid request config object to impression object that will be sent to ad server.
  
  @param  {object} bid A valid bid request config object.
  @return {object}     A impression object that will be sent to ad server.