function scoreAd(adMetadata, bid, auctionConfig, trustedScoringSignals,
browserSignals) {
let allowComponentAuction =
typeof auctionConfig.auctionSignals === 'string' &&
auctionConfig.auctionSignals.includes('sellerAllowsComponentAuction');
return {desirability: bid,
allowComponentAuction:allowComponentAuction};
}
function reportResult(auctionConfig, browserSignals) {
sendReportTo(auctionConfig.seller + '/echoall?report_seller');
return {
'success': true,
'signalsForWinner': {'signalForWinner': 1},
'reportUrl': auctionConfig.seller + '/report_seller',
};
}