modules/ucfunnelBidAdapter.js
function(bid) {
    const isVideoMediaType = utils.deepAccess(bid, 'mediaTypes.video');
    const videoContext = utils.deepAccess(bid, 'mediaTypes.video.context');

    if (typeof bid.params !== 'object' || typeof bid.params.adid != 'string') {
      return false;
    }

    if (isVideoMediaType && videoContext === 'outstream') {
      utils.logWarn('Warning: outstream video is not supported yet');
      return false;
    }

    return true;
  }
function(bid) {
    const isVideoMediaType = utils.deepAccess(bid, 'mediaTypes.video');
    const videoContext = utils.deepAccess(bid, 'mediaTypes.video.context');

    if (typeof bid.params !== 'object' || typeof bid.params.adid != 'string') {
      return false;
    }

    if (isVideoMediaType && videoContext === 'outstream') {
      utils.logWarn('Warning: outstream video is not supported yet');
      return false;
    }

    return true;
  }
function ( bid ) { const isVideoMediaType = utils . deepAccess ( bid , 'mediaTypes.video' ) ; const videoContext = utils . deepAccess ( bid , 'mediaTypes.video.context' ) ; if ( typeof bid . params !== 'object' || typeof bid . params . adid != 'string' ) { return false ; } if ( isVideoMediaType && videoContext === 'outstream' ) { utils . logWarn ( 'Warning: outstream video is not supported yet' ) ; return false ; } return true ; }
Check if the bid is a valid zone ID in either number or string form
@param {object} bid the ucfunnel bid to validate
@return boolean for whether or not a bid is valid
Check if the bid is a valid zone ID in either number or string form