Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
133 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,33 @@ | ||
<h1>run ad auction</h1> | ||
<h1>run ad auction</h1> | ||
<div id="ad" style="width: 1500px; height: 1000px;"> Ad should be placed here</div> | ||
|
||
<script> | ||
if (!navigator.runAdAuction) { | ||
document.write("your browser doesn't have runAdAuction -- do you need to set some flags?"); | ||
} | ||
</script> | ||
|
||
<script type=module> | ||
<script type=module> | ||
if (navigator.runAdAuction) { | ||
const ar = await navigator.runAdAuction({ | ||
seller: 'https://fledge-tests.creativecdn.net:8202', | ||
decisionLogicUrl: 'https://fledge-tests.creativecdn.net:8202/seller.js', | ||
trustedScoringSignalsUrl: 'https://fledge-tests.creativecdn.net:8202/trusted-scoring.json', | ||
interestGroupBuyers: ["https://fledge-tests.creativecdn.net:8201"], | ||
auctionSignals: {key: "auction signals"}, | ||
sellerSignals: {key: "seller signals"}, | ||
perBuyerSignals: {"https://fledge-tests.creativecdn.net:8201": {key: "tc signals"}}, | ||
}); | ||
|
||
console.log("winning url " + ar); | ||
const adDiv = document.getElementById('ad'); | ||
adDiv.innerHTML = ""; | ||
if (ar === null) { | ||
document.write("No turtledove winner"); | ||
adDiv.appendChild(document.createTextNode("No turtledove winner")); | ||
} else { | ||
const iframe = document.createElement('iframe'); | ||
iframe.src = ar; | ||
document.body.appendChild(iframe); | ||
const fframe = document.createElement('fencedframe'); | ||
fframe.setAttribute('src', ar); | ||
fframe.setAttribute('style', 'width: 100px; height: 100px'); | ||
adDiv.appendChild(fframe); | ||
} | ||
} | ||
</script> | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.