Search e01
One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.
5 results across 6 corpora for SharedStorageSelectURLOperation.
Developer library 5
SharedStorageSelectURLOperation
Shared Storage API The **`SharedStorageSelectURLOperation`** interface of the Shared Storage API represents a [URL Selection output gate](/docs/Web/API/Shared_Storage_API#url_selection) operation. ## Instance methods - run() - : Defines the structure to which the `run()` method defined inside a URL Selection output gate operation should conform. ## Examples In this example, a class called `SelectURLOperatio
SharedStorageSelectURLOperation: run() method
Shared Storage API The **`run()`** method of the SharedStorageSelectURLOperation interface defines the structure to which the `run()` method defined inside a URL Selection output gate operation should conform. ## Syntax ```js-nolint run(urls, data) ``` ### Parameters - `urls` - : An array of objects representing the URLs to be chosen by the URL Selection operation. Each object contains two properties: - `u
SharedStorageOperation
> </thead> <tbody> <tr> <td>URL Selection</td> <td>Used to select a URL to display to the user based on shared storage data.</td> <td>SharedStorageSelectURLOperation</td> <td>selectURL()</td> </tr> <tr> <td>Run</td> <td>A generic way to process some shared storage data. Used, for example, by the <a href="https://privacysandbox.google.com/private-advertising/private-
WindowSharedStorage: selectURL() method
Shared Storage API The **`selectURL()`** method of the WindowSharedStorage interface executes a [URL Selection operation](/docs/Web/API/SharedStorageSelectURLOperation) that is registered in a module added to the current origin's SharedStorageWorklet. > [!NOTE] > The [URL Selection output gate](/docs/Web/API/Shared_Storage_API#url_selection) is used to select a URL from a provided list to display to the user, based
Shared Storage API
chosen. > [!NOTE] > Each output gate has a corresponding interface that defines the required structure of its class and `run()` method. For URL Selection, see SharedStorageSelectURLOperation. Once the operation is defined, it needs to be registered using SharedStorageWorkletGlobalScope.register(). ```js // ab-testing-worklet.js class SelectURLOperation { async run(urls, data) { // Read the user's experiment