blob: dc92f5a5e1a4a0d7ba09b223c223d4ebe6c864d5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// These functions are used by FLEDGE to determine the logic for the ad seller.
// For our testing purposes, we only need the minimal amount of boilerplate
// code in place to allow them to be invoked properly and move the FLEDGE
// process along. The tests do not deal with reporting results, so we leave
// `reportResult` empty. See `generateURNFromFledge` in "utils.js" to see how
// these files are used.
function scoreAd(
adMetadata, bid, auctionConfig, trustedScoringSignals, browserSignals) {
return 2*bid;
}
function reportResult(auctionConfig, browserSignals) {
return;
}
|