WICG / turtledove

TURTLEDOVE
https://wicg.github.io/turtledove/
Other
540 stars 238 forks source link

PA API on cookie-less inventory #1345

Open aprokofg opened 6 days ago

aprokofg commented 6 days ago

One feature that could help facilitate PA API adoption is support to enable PA API only on cookie-less traffic where it could be valuable for the publishers.

The pseudo code for SSPs ad tag javascript could look something like this:

if (publisher_config.use_paapi) {
  if (publisher_config.only_use_paapi_on_cookieless) {
    return chrome.paapi_enabled && crome.igs_available && chrome.cookieless;
  } else {
    return chrome.paapi_enabled && crome.igs_available;
  }
}

There are 3 pieces of information that are need to implement this functionality:

The ask for Chrome is to a) provide an API to detect cookie-less inventory and b) provide a proper mechanism to detect whether IGs are available for use.

johannhof commented 6 days ago

While it's not a literal "user has opted out of 3PC" signal, note that the Storage Access API allows 3P embeds / subresources to understand whether they have access to third-party cookies or not. document.hasStorageAccess() is already supported across different browsers, while a header-only variant called Storage Access Headers is currently being proposed in Privacy CG and trialed in Chrome. This feature sends an HTTP header that signals access to cross-site cookies and storage, e.g. Sec-Fetch-Storage-Access: none if there is no access.

Does that help with your third requirement?

dmdabbs commented 6 days ago

PA might be GA, but where GAM is in use and GAM would be the PA top-level seller, its policy determines whether a PA auction is run, assuming the publisher has enabled PA.

aprokofg commented 6 days ago

While it's not a literal "user has opted out of 3PC" signal, note that the Storage Access API allows 3P embeds / subresources to understand whether they have access to third-party cookies or not. document.hasStorageAccess() is already supported across different browsers, while a header-only variant called Storage Access Headers is currently being proposed in Privacy CG and trialed in Chrome. This feature sends an HTTP header that signals access to cross-site cookies and storage, e.g. Sec-Fetch-Storage-Access: none if there is no access.

Does that help with your third requirement?

This might help it. Can anyone familiar with prebid.js validate if this is something that could be called from within the prebid code?

aprokofg commented 6 days ago

PA might be GA, but where GAM is in use and GAM would be the PA top-level seller, its policy determines whether a PA auction is run, assuming the publisher has enabled PA.

I think this is a different problem to solve. Here we're trying to explore ways on how to enable PA API across all publishers that can bring value to them. We should probably use the other thread to discuss GAM coordination questions.

dmdabbs commented 6 days ago

Can anyone familiar with prebid.js validate if this is something that could be called from within the prebid code?

Here are Prebid's PA config support docs. Prebid is open source and welcomes useful PRs.