Skip to content

Rubicon BidAdapter - SRA support for >10 bids#3514

Merged
idettman merged 3 commits intoprebid:masterfrom
rubicon-project:HB-2393_rubicon-adapter-batch-sra-requests
Apr 18, 2019
Merged

Rubicon BidAdapter - SRA support for >10 bids#3514
idettman merged 3 commits intoprebid:masterfrom
rubicon-project:HB-2393_rubicon-adapter-batch-sra-requests

Conversation

@idettman
Copy link
Contributor

@idettman idettman commented Feb 4, 2019

Rubicon Bid Adapter - SRA support for more than 10 bids

Type of change

  • Other

Description of change

The Ad Engine can handle a maximum of 10 sub-requests (slots/adUnits) per SRA request. As a simplification and to speed up development, we decided that the adapter would include only the first 10 adUnits in an SRA request and ignore the rest. This may be an edge case, but it is sub-optimal. Instead of ignoring them we should create a new SRA request for these adUnits.

Other information

Copy link
Collaborator

@robertrmartinez robertrmartinez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
I opened a test page with 40+ slots to verify it works as expected!

Copy link
Collaborator

@harpere harpere left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but want to test before merging.

*/
function partitionArray(array, size) {
return array.map((e, i) => (i % size === 0) ? array.slice(i, i + size) : null).filter((e) => e)
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fancy!

@stale
Copy link

stale bot commented Feb 25, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Feb 25, 2019
@stale stale bot closed this Mar 5, 2019
@idettman idettman reopened this Apr 4, 2019
@stale stale bot removed the stale label Apr 4, 2019
@idettman idettman removed the on hold label Apr 17, 2019
@idettman idettman requested a review from harpere April 17, 2019 21:49
@idettman idettman merged commit e119938 into prebid:master Apr 18, 2019
@idettman idettman deleted the HB-2393_rubicon-adapter-batch-sra-requests branch June 5, 2019 23:40
VideoReach pushed a commit to VideoReach/Prebid.js that referenced this pull request Aug 1, 2019
* added support to use multiple requests for SRA requests with more than 10 bids

* updated unit test to test SRA dividing 100 bids into 10 requests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Comments