modules/dfpAdServerVideo.js
function buildUrlFromAdserverUrlComponents(components, bid, options) {
  const descriptionUrl = getDescriptionUrl(bid, components, 'search');
  if (descriptionUrl) { components.search.description_url = descriptionUrl; }

  const encodedCustomParams = getCustParams(bid, options);
  components.search.cust_params = (components.search.cust_params) ? components.search.cust_params + '%26' + encodedCustomParams : encodedCustomParams;

  return buildUrl(components);
}
function buildUrlFromAdserverUrlComponents(components, bid, options) {
  const descriptionUrl = getDescriptionUrl(bid, components, 'search');
  if (descriptionUrl) { components.search.description_url = descriptionUrl; }

  const encodedCustomParams = getCustParams(bid, options);
  components.search.cust_params = (components.search.cust_params) ? components.search.cust_params + '%26' + encodedCustomParams : encodedCustomParams;

  return buildUrl(components);
}
function buildUrlFromAdserverUrlComponents ( components , bid , options ) { const descriptionUrl = getDescriptionUrl ( bid , components , 'search' ) ; if ( descriptionUrl ) { components . search . description_url = descriptionUrl ; } const encodedCustomParams = getCustParams ( bid , options ) ; components . search . cust_params = ( components . search . cust_params ) ? components . search . cust_params + '%26' + encodedCustomParams : encodedCustomParams ; return buildUrl ( components ) ; }
Builds a video url from a base dfp video url and a winning bid, appending
Prebid-specific key-values.
@param {Object} components base video adserver url parsed into components object
@param {AdapterBidResponse} bid winning bid object to append parameters from
@param {Object} options Options which should be used to construct the URL (used for custom params).
@return {string} video url
Builds a video url from a base dfp video url and a winning bid appending Prebid - specific key - values .