VAI Integration Test Page

This page demonstrates the Validated Actor Inventory (VAI) integration using the script tag approach.

VAI Data (from window.__PW_VAI__)

Loading VAI data...

Raw JSON

Loading...

Prebid Integration Example

This demonstrates how the VAI data would be passed to Prebid:

<!-- Example HTML (non-hook approach) -->
<!-- Prebid must already be loaded and pbjs must exist. -->

<!-- Load VAI (same-origin with your public surface, e.g. the cdn host in local dev) -->
<script src="/pw/vai.js"></script>

<script>
  (function () {
    var vai = window.__PW_VAI__;
    if (!vai) {
      // If you need strict ordering, prefer the hook approach (not shown here).
      return;
    }

    pbjs.setConfig({
      ortb2: {
        site: {
          ext: {
            pw_vai: vai
          }
        }
      }
    });
  })();
</script>

Verification Status

Running verification checks...

Hook Test

Checking if __PW_VAI_HOOK__ was called...