modules/lifestreetBidAdapter.js
function isResponseValid(response) {
  return !/^\s*\{\s*"advertisementAvailable"\s*:\s*false/i.test(response.content) &&
    response.content.indexOf('<VAST version="2.0"></VAST>') === -1 && (typeof response.cpm !== 'undefined') &&
    response.status === 1;
}
function isResponseValid(response) {
  return !/^\s*\{\s*"advertisementAvailable"\s*:\s*false/i.test(response.content) &&
    response.content.indexOf('<VAST version="2.0"></VAST>') === -1 && (typeof response.cpm !== 'undefined') &&
    response.status === 1;
}
function isResponseValid ( response ) { return ! / ^\s*\{\s*"advertisementAvailable"\s*:\s*false / i . test ( response . content ) && response . content . indexOf ( '<VAST version="2.0"></VAST>' ) === - 1 && ( typeof response . cpm !== 'undefined' ) && response . status === 1 ; }
Validates response from Lifestreet AD server
Validates response from Lifestreet AD server