// ssp
const auctionConfig = {
    seller: "https://ssp-fledge-demo.glitch.me", // should https & same as decisionLogicUrl's origin

    // x-allow-fledge: true
    decisionLogicUrl: "https://ssp-fledge-demo.glitch.me/ssp/decision_logic.js",

    interestGroupBuyers: [
        // * is not supported yet
        "https://dsp-fledge-demo.glitch.me",
    ],
    // public for everyone
    auctionSignals: { auction_signals: "auction_signals" },

    // only for single party
    sellerSignals: { seller_signals: "seller_signals" },

    // only for single party
    perBuyerSignals: {
        // listed on interestGroupByers
        "https://dsp-fledge-demo.glitch.me": { per_buyer_signals: "per_buyer_signals" },
    }
}

document.addEventListener("DOMContentLoaded", async(e) => {
    console.log(e)
    const adAuctionResult = await navigator.runAdAuction(auctionConfig)
    console.log({ adAuctionResult })

    const $iframe = document.createElement('iframe')
    $iframe.src = adAuctionResult
    document.body.appendChild($iframe)
})
@@ -778,27 +778,8 @@
 %3E %7B%0A
-    console.log(e)%0A
     
@@ -883,16 +883,188 @@
 sult %7D)%0A
+    const query = new URL(location.href).search%0A    const frametype = (query === %22?fencedframe%22) ? %22fencedframe%22 : %22iframe%22%0A    console.log(%60display ads in %3C$%7Bframetype%7D%3E%60)
 %0A    con
@@ -1103,16 +1103,17 @@
 ent(
-'i
 frame
-'
+type
 )%0A  

support flag in ssp/runAdAuction.js