Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow s2s bidders call pbs without need of a client adapter file #2704

Merged
merged 4 commits into from
Jun 20, 2018

Conversation

jsnellbaker
Copy link
Collaborator

Type of change

  • Feature

Description of change

To add support for the request noted in #2659

This will allow a pbs bidder to make a request through prebid.js without needing a corresponding client-side adapter file setup in prebid.js.

These changes are mainly to support video-type requests through this type of workflow.

@bretg
Copy link
Collaborator

bretg commented Jun 11, 2018

While it's ok for s2s to not have a client-side adapter, vendors and pubs should realize it's potentially a disadvantage to not include the client in the PBJS package. Even if the main auction logic happens on the server side, there may be client-side functions -- currently there's usersync, but I believe there was another feature discussed.

We'll need to update the S2S instructions on prebid.org.

@jsnellbaker
Copy link
Collaborator Author

@bretg Thanks for the feedback. I'll put together a docs PR soon.

@jsnellbaker
Copy link
Collaborator Author

To reviewers - I realized there is a workflow regarding aliasing bidders that I didn't incorporate when putting these changes together. Please wait from reviewing until I compile these additional changes and update the PR.

@jsnellbaker
Copy link
Collaborator Author

I pushed in the updates to support aliasing bidders.

@jsnellbaker
Copy link
Collaborator Author

Created docs PR for these updates: prebid/prebid.github.io#834

@smithaammassamveettil
Copy link

smithaammassamveettil commented Jun 14, 2018 via email

const videoBid = bids.some(bidResponse => bidResponse.bid.mediaType === 'video');
const cacheEnabled = config.getConfig('cache.url');

// video bids with cache enabled need to be cached first before they are considered done
Copy link
Member

Choose a reason for hiding this comment

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

is this a separate change?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No those changes are part of this PR. They are needed to ensure pbs video bids that are using prebid cache are properly used in the auction. Without this change; the adapter calls the done() before the caching process has finished which ends the auction prematurely.

Copy link
Member

@mkendall07 mkendall07 left a comment

Choose a reason for hiding this comment

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

I think some extra commits got added to this diff by mistake. Can you fix to get a clean diff for this change only?

@smithaammassamveettil
Copy link

smithaammassamveettil commented Jun 19, 2018 via email

@mkendall07
Copy link
Member

@smithaammassamveettil
This still needs review - hopefully should be in the next release. @jsnellbaker need to resolve 1 conflict.

@jsnellbaker
Copy link
Collaborator Author

@mkendall07 I resolved the conflicts. Please take a look over again when you have the chance. Thanks.

@mkendall07 mkendall07 merged commit 8036838 into master Jun 20, 2018
dluxemburg pushed a commit to Genius/Prebid.js that referenced this pull request Jul 17, 2018
…bid#2704)

* allow s2s adapters call pbs without client adapter file

* add support in aliasBidAdapter for s2s-only bidders
@jsnellbaker jsnellbaker deleted the pbs_support_s2sadapter branch August 17, 2018 15:14
florevallatmrf pushed a commit to Marfeel/Prebid.js that referenced this pull request Sep 6, 2018
…bid#2704)

* allow s2s adapters call pbs without client adapter file

* add support in aliasBidAdapter for s2s-only bidders
StefanWallin pushed a commit to mittmedia/Prebid.js that referenced this pull request Sep 28, 2018
…bid#2704)

* allow s2s adapters call pbs without client adapter file

* add support in aliasBidAdapter for s2s-only bidders
ghost pushed a commit to devunrulymedia/Prebid.js that referenced this pull request Jan 30, 2019
…bid#2704)

* allow s2s adapters call pbs without client adapter file

* add support in aliasBidAdapter for s2s-only bidders
AlessandroDG pushed a commit to simplaex/Prebid.js that referenced this pull request Mar 26, 2019
…bid#2704)

* allow s2s adapters call pbs without client adapter file

* add support in aliasBidAdapter for s2s-only bidders
AlessandroDG pushed a commit to simplaex/Prebid.js that referenced this pull request Mar 26, 2019
…bid#2704)

* allow s2s adapters call pbs without client adapter file

* add support in aliasBidAdapter for s2s-only bidders
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants