Generate Bid Call in Case of No KV Signal

Image 1 Image 2 Image 3 Image 4
Here we see a cookie addict attempting to bid on cookies but with less data than expected. - iSac, ChatGPT, May 1, 2024 (GMT).

Generate Bid Invocation in Case of Missing KV Vals

Here we test what happens when an IG with declared Trusted Bidding Signals keys responds with no data for one or more of the keys. Other failure scenarios can be tested later.

Setup

  1. Page invokes DSP code to clear all IGs owned by https://www.pst-dsp.com/, then invokes the code to join 3 interest groups under https://www.pst-dsp.com/, each with at least one key hitting a KV server.
    • The bidding function is hardcoded to return the only registered URL that is available with a hardcoded bid.
    • The bidding function will also log to console that it has bid, and any trusted bidding signals it sees.
    • The DSPs KV endpoint returns a valid response (JSON and with appropriate headers) but no values at all, per key or per IG.
  2. The page invokes SSP code to run an auction inviting the DSP run an auction.
  3. We take the opaque URN and inject it into a div.

Since the only IGs invited to the auction are the ones registered on this page, we would not see a result if the IGs were filtered out.

  • DSP IG code here, bidding function here, and kv function here.
  • SSP auction code here, scoring here
  • JS for this page that invokes auction here

Result

The calls to generateBid run, as can be seen in console, and by the "ad" showing up below.

"Ad" Goes Here

Console Log Results

You should see...