Usage of deprecatedReplaceInURN for Macros in Query Params

Image 1 Image 2 Image 3 Image 4
Here we see numerous privacy professors teaching their class about how to do string replacement. - iSac, ChatGPT, April 21, 2024.

deprecatedReplaceInURN Usage

Overview

Here we demonstrate usage of deprecatedReplaceInURN a bit. Chrome is in the process of making the availability and documentation of deprecatedReplaceInURN more official, but it will be around until 2026 as discussed here.

Prereqs

I haven't gotten back to Chrome yet on getting my attestation down, so for now see here.

Test

We do a relatively simple test here where this page (pst-one) is the "publisher page", uses pst-ssp.com to run a private auction on page, where pst-dsp.com is invited to bid and returns a creative served from pst-dsp.com.

See Me Work!!!

Submit messages you would like to see substituted into the call to the creative server. The "creative" will appear below with the full URL that went to the rendering endpoint.

The JS doing the replacement is here.
The server serving the "creative" is here.

Implications

This has a few implications:

Constraints and Non Implications

To explicitly call out a few things this doesn't allow:

Bad Macro Formats

Allowed macro styles are %%macro%% and ${macro}, else you get: