modules/getintentBidAdapter.js
function(serverResponse) {
    let responseBody = serverResponse.body;
    const bids = [];
    if (responseBody && responseBody.no_bid !== 1) {
      let size = parseSize(responseBody.size);
      let bid = {
        requestId: responseBody.bid_id,
        ttl: BID_RESPONSE_TTL_SEC,
        netRevenue: IS_NET_REVENUE,
        currency: responseBody.currency,
        creativeId: responseBody.creative_id,
        cpm: responseBody.cpm,
        width: size[0],
        height: size[1]
      };
      if (responseBody.vast_url) {
        bid.mediaType = 'video';
        bid.vastUrl = responseBody.vast_url;
      } else {
        bid.mediaType = 'banner';
        bid.ad = responseBody.ad;
      }
      bids.push(bid);
    }
    return bids;
  }
function(serverResponse) {
    let responseBody = serverResponse.body;
    const bids = [];
    if (responseBody && responseBody.no_bid !== 1) {
      let size = parseSize(responseBody.size);
      let bid = {
        requestId: responseBody.bid_id,
        ttl: BID_RESPONSE_TTL_SEC,
        netRevenue: IS_NET_REVENUE,
        currency: responseBody.currency,
        creativeId: responseBody.creative_id,
        cpm: responseBody.cpm,
        width: size[0],
        height: size[1]
      };
      if (responseBody.vast_url) {
        bid.mediaType = 'video';
        bid.vastUrl = responseBody.vast_url;
      } else {
        bid.mediaType = 'banner';
        bid.ad = responseBody.ad;
      }
      bids.push(bid);
    }
    return bids;
  }
function ( serverResponse ) { let responseBody = serverResponse . body ; const bids = [ ] ; if ( responseBody && responseBody . no_bid !== 1 ) { let size = parseSize ( responseBody . size ) ; let bid = { requestId : responseBody . bid_id , ttl : BID_RESPONSE_TTL_SEC , netRevenue : IS_NET_REVENUE , currency : responseBody . currency , creativeId : responseBody . creative_id , cpm : responseBody . cpm , width : size [ 0 ] , height : size [ 1 ] } ; if ( responseBody . vast_url ) { bid . mediaType = 'video' ; bid . vastUrl = responseBody . vast_url ; } else { bid . mediaType = 'banner' ; bid . ad = responseBody . ad ; } bids . push ( bid ) ; } return bids ; }
Callback for bids, after the call to DSP completes.
Parse the response from the server into a list of bids.

@param {object} serverResponse A response from the GetIntent's server.
@return {Bid[]} An array of bids which were nested inside the server.
Callback for bids after the call to DSP completes . Parse the response from the server into a list of bids .