Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
dgirardi committed Nov 20, 2024
1 parent 4809bcb commit 25ae8ad
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions dev-docs/modules/paapi.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ An example of this can be seen in the OpenX bid adapter [here](https://github.co
PAAPI auctions can be started in parallel with Prebid auctions for a significant improvement in end-to-end latency,
as long as the adapters involved provide at least part of the auction config(s) in advance, before any request is sent to their backend.
To support parallel execution, adapters can provide a `buildPAAPIConfigs` method, taking [the same arguments as buildRequests](#paapi-input) and returning an array of PAAPI configuration objects in [the same format as `interpretResponse`'s `paapi` parameter](#paapi-output).
To support parallel execution, adapters can provide a `buildPAAPIConfigs` method, taking [the same arguments as buildRequests](#paapi-input) and returning an array of PAAPI configuration objects in the same format as `interpretResponse`'s [`paapi` parameter](#paapi-output).

```javascript
registerBidder({
Expand All @@ -198,7 +198,8 @@ registerBidder({
```

When provided, `buildPAAPIConfigs` is invoked just before `buildRequests`, and the configuration it returns is eligible to be immediately used to start PAAPI auctions (whether it will depends on the `parallel` config flag and the top level seller's support for it).
When /not/ provided, the adapter cannot participate in parallel auctions, and PAAPI configuration returned by `interpretResponse` are liable to be discarded when parallel auctions are enabled. For this reason we recommend implementing `buildPAAPIConfigs`.
When _not_ provided, the adapter cannot participate in parallel auctions, and PAAPI configuration returned by `interpretResponse` are liable to be discarded when parallel auctions are enabled. For this reason we recommend implementing `buildPAAPIConfigs`.
[Some signals](https://github.com/WICG/turtledove/blob/main/FLEDGE.md#211-providing-signals-asynchronously) can be provided asynchronously; Prebid supports this by merging them from the return value of `interpretResponse`, using `bidId` as key.
Notably, however, at least `seller`, `interestGroupBuyers`, and `decisionLogicUrl` must be provided synchronously (i.e., they must be hard-coded).
Expand All @@ -224,7 +225,7 @@ For example:
},
])
// and `interpretResponse` returns:
// and `interpretResponse` later returns:
({
paapi: [
{
Expand Down

0 comments on commit 25ae8ad

Please sign in to comment.