modules/getintentBidAdapter.js
function buildGiBidRequest(bidRequest) {
  let giBidRequest = {
    bid_id: bidRequest.bidId,
    pid: bidRequest.params.pid, // required
    tid: bidRequest.params.tid, // required
    known: bidRequest.params.known || 1,
    is_video: bidRequest.mediaType === 'video',
    resp_type: 'JSON',
    provider: 'direct.prebidjs'
  };
  if (bidRequest.sizes) {
    giBidRequest.size = produceSize(bidRequest.sizes);
  }
  addVideo(bidRequest.params.video, giBidRequest);
  addOptional(bidRequest.params, giBidRequest, OPTIONAL_PROPERTIES);
  return giBidRequest;
}
function buildGiBidRequest(bidRequest) {
  let giBidRequest = {
    bid_id: bidRequest.bidId,
    pid: bidRequest.params.pid, // required
    tid: bidRequest.params.tid, // required
    known: bidRequest.params.known || 1,
    is_video: bidRequest.mediaType === 'video',
    resp_type: 'JSON',
    provider: 'direct.prebidjs'
  };
  if (bidRequest.sizes) {
    giBidRequest.size = produceSize(bidRequest.sizes);
  }
  addVideo(bidRequest.params.video, giBidRequest);
  addOptional(bidRequest.params, giBidRequest, OPTIONAL_PROPERTIES);
  return giBidRequest;
}
function buildGiBidRequest ( bidRequest ) { let giBidRequest = { bid_id : bidRequest . bidId , pid : bidRequest . params . pid , // required tid : bidRequest . params . tid , // required known : bidRequest . params . known || 1 , is_video : bidRequest . mediaType === 'video' , resp_type : 'JSON' , provider : 'direct.prebidjs' } ; if ( bidRequest . sizes ) { giBidRequest . size = produceSize ( bidRequest . sizes ) ; } addVideo ( bidRequest . params . video , giBidRequest ) ; addOptional ( bidRequest . params , giBidRequest , OPTIONAL_PROPERTIES ) ; return giBidRequest ; }
Builds GI bid request from BidRequest.

@param {BidRequest} bidRequest.
@return {object} GI bid request.
Builds GI bid request from BidRequest .