WICG / shared-storage

Explainer for proposed web platform Shared Storage API
Other
89 stars 23 forks source link

[DSP] Frequency Capping using Shared Storage API in Generate Bid #133

Open vanshika0812 opened 8 months ago

vanshika0812 commented 8 months ago

As a Buyer (DSP), the browserSignals sent as part of the generateBid function currently include prevWinsMs data, which can be utilised for on-device frequency capping at the IG level only.

Regarding implementing on-device frequency capping using cross-site data , I have the following questions:

Q1: Since Shared Storage enables us to make informed decisions based on cross-site data, can I read from shared storage within the generateBid (which is already running in a worklet) to apply ad-decision/business logic (such as Frequency Capping) based on cross-site information and select a subset of ads?

Q2: Additionally, can I write to the Shared Storage upon ad rendering?

jkarlin commented 8 months ago

Hi, thanks for asking.

Q1: Since Shared Storage enables us to make informed decisions based on cross-site data, can I read from shared storage within the generateBid (which is already running in a worklet) to apply ad-decision/business logic (such as Frequency Capping) based on cross-site information and select a subset of ads?

No, it is not possible to read from shared storage within bidding worklets.

Q2: Additionally, can I write to the Shared Storage upon ad rendering?

Yes, you can write to Shared Storage from virtually anywhere, including bidding worklets, reporting worklets, and from the rendered creative.