Skip to content

Commit f707083

Browse files
author
Marcin Komorski
committed
Adding onIntervention, browserIntervention
1 parent 6b9d8c1 commit f707083

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

dev-docs/bidder-adaptor.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -737,6 +737,22 @@ Sample data received by this function:
737737
}
738738
```
739739

740+
### Registering on Intervention
741+
742+
The onIntervention function will be called when the browser reports an intervention affecting a rendered creative (e.g., Chrome Heavy Ad Intervention or similar reporting APIs).
743+
744+
#### Signature
745+
746+
```javascript
747+
function onIntervention({ bid, intervention }) { ... }
748+
```
749+
750+
#### Parameters
751+
752+
1. `bid` — the winning bid object for which the intervention was detected (same shape as in other render callbacks like `onAdRenderSucceeded`).
753+
2. `intervention` — a browser-provided object describing the intervention. In Chromium-based browsers this typically originates from the [ReportingObserver] API with type: 'intervention' and includes a body describing the intervention details.
754+
755+
740756
### Adding adapter aliases
741757

742758
Use aliases if you want to reuse your adapter using other name for your partner/client, or just a shortcut name.

dev-docs/publisher-api-reference/getEvents.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ The available events are:
4747
| bidderError | A bidder responded with an error | Object with the XMLHttpRequest error and the bid request object `{ error, bidderRequest }` |
4848
| tcf2Enforcement | There was a TCF2 enforcement action taken | `{ storageBlocked: ['moduleA', 'moduleB'], biddersBlocked: ['moduleB'], analyticsBlocked: ['moduleC'] }` |
4949
| bidAccepted | A bid was accepted and is about to be added to auction | Bid response object |
50+
| browserIntervention | The browser reported an intervention affecting a rendered creative (e.g., heavy-ad unload). | `{ bid, adId, intervention }` |
5051

5152
The example below shows how these events can be used.
5253

0 commit comments

Comments
 (0)