Commit d0b18b4
committed
Emit absolute first-party URLs for inline SSAT creatives
The inline `adm` in window.tsjs.bids is rendered by the Prebid Universal
Creative inside GAM's iframe (f.srcdoc = d.ad), a foreign origin.
rewrite_creative_html emitted root-relative /first-party/... URLs that
resolve against GAM's origin there and 404, and injected the tsjs bundle
into every creative iframe.
Add rewrite_inline_creative_html: emits absolute
https://<publisher.domain>/first-party/... URLs (resolve regardless of the
document base URL or whether PUC honors the custom renderer) and skips the
tsjs bundle injection. Route build_bid_map's inline adm through it; the
first-party /auction path keeps the root-relative rewriter. One shared
rewriter via base_origin/inject_tsjs. Add tests for the absolute-URL shape
and absent tsjs injection at the creative and build_bid_map boundaries.1 parent 1c98302 commit d0b18b4
3 files changed
Lines changed: 223 additions & 46 deletions
0 commit comments