-
Notifications
You must be signed in to change notification settings - Fork 296
Open
Description
Overview
Add event listener support for the Protected Audience API's navigator.runAdAuction to enable better monitoring and response handling of auction states.
Events:
auctionstart: Fired whenrunAdAuctionis dispatched.auctioncomplete: Fired whenrunAdAuctionpromise is resolved.auctionerror: Fired whenrunAdAuctionpromise is rejected.
Event Details:
For now, the event detail can be kept to a minimum to ensure proper user privacy. For this feature request, the required event data includes:
- component sellers and their buyers - As a component seller, I need to understand which auctions I am participating in and who my buyers are.
Example Usage
navigator.runAdAuction.addEventListener('auctionstart', (event) => {
console.log('Auction started:', event.detail);
});
navigator.runAdAuction.addEventListener('auctioncomplete', (event) => {
console.log('Auction completed:', event.detail);
});
navigator.runAdAuction.addEventListener('auctionerror', (event) => {
console.log('Auction failed:', event.detail);
});User Stories
Given I am a component seller
When I defer control of the runAdAuction call
Then I cannot monitor the number of auctions that are started, completed, or rejected.
FAQ
- Why do we defer control of the
runAdAuctioncall? - Integration with Google Publisher Tag requires component sellers to defer control so that the ad server auction can complete.
Metadata
Metadata
Assignees
Labels
No labels