Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion dev-docs/bidder-adaptor.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,8 @@ export const spec = {
onSetTargeting: function(bid) {},
onBidderError: function({ error, bidderRequest }) {},
onAdRenderSucceeded: function(bid) {},
supportedMediaTypes: [BANNER, VIDEO, NATIVE, AUDIO]
supportedMediaTypes: [BANNER, VIDEO, NATIVE, AUDIO],
alwaysHasCapacity: true // When true, this bidder will be omitted in checking if origin has http capacity
}
registerBidder(spec);

Expand Down Expand Up @@ -1190,6 +1191,7 @@ export const spec = {
code: BIDDER_CODE,
gvlid: 0000000000,
supportedMediaTypes: [BANNER, VIDEO, NATIVE],
alwaysHasCapacity: true,
aliases: [{code: "myAlias", gvlid: 99999999999} ],
/**
* Determines whether or not the given bid request is valid.
Expand Down
1 change: 1 addition & 0 deletions dev-docs/modules/prebidServer.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ There are many configuration options for s2sConfig:
| `customHeaders` | Optional | Object | These custom headers will be included in the XHR call to the bidder's endpoint. This will allow you to send data specific to your use case. The format consists of an object where the keys represent the header names and the values correspond to the respective header values. Here is an example how a customHeader object might look like - `{"Header1": "Value1", "Header2": "Value2"}`|
| `endpointCompression` | Optional | Boolean | Gzip compress the auction request payload when supported and debug mode is off. Adds `gzip=1` to the request URL. |
| `filterBidderlessCalls` | Optional | Boolean | When `true`, ad units that have no bidders defined are excluded from Prebid Server requests. Defaults to `false`. | `true` |
| `alwaysHasCapacity` | Optional | Boolean | When `true`, this prebid server instance will be omitted in checking if origin has http capacity, defaults to `false` |

If `endpoint` and `syncEndpoint` are objects, these are the supported properties:

Expand Down
8 changes: 8 additions & 0 deletions dev-docs/publisher-api-reference/setConfig.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,14 @@ pbjs.setConfig({ maxRequestsPerOrigin: 6 });
pbjs.setConfig({ maxRequestsPerOrigin: 1 });
```

Note: Prebid adapters or Prebid Server instances can be omitted from this capacity check if they declare `alwaysHasCapacity: true`. See [bidder adapter configuration](/dev-docs/bidder-adaptor.html) and [Prebid Server configuration](/dev-docs/modules/prebidServer.html) for more details.

Although, `maxRequestsPerOrigin` can still be forced by the publisher using:

```javascript
pbjs.setConfig({ maxRequestsPerOrigin: 1, forceMaxRequestsPerOrigin: true });
```

### Disable Ajax Timeout

<a name="setConfig-Disable-Ajax-Timeout"></a>
Expand Down