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

Pre-Auction Filters and pbadslot support #50

Closed
wants to merge 53 commits into from
Closed

Conversation

idettman
Copy link

@idettman idettman commented Nov 20, 2019

Type of change

  • Feature

Description of change

Pre-Auction Filters and pbadslot support

  1. The pbAdSlot attribute is added to the Prebid Ad Unit in the First Party Data context
var AdUnit={
   code: "40989gjr9e98ajrosiero",
   context: {
     pbAdSlot: "/1111111/homepage/med-rect-2"
   },
};
  1. define pre-auction filter function
var setPbAdSlot = function setPbAdSlot(adunits) {
    console.log('setPbAdSlot called');
    // ... logic to find and set context.pbAdSlot for each AdUnit ...
};
pbjs.onEvent('onBeforeRequestBids', setPbAdSlot);
  1. The Prebid Server Bid Adapter must pass the Prebid AdSlot through the OpenRTB request in imp[].ext.context.data.adslot
{
  imp: [{
    ext: {
      context: {
        data: {
          adslot: "/1111111/homepage/med-rect-2"
        }
      }
    }
  }]
}

Other information

prebid#4149

nakamoto and others added 30 commits February 16, 2019 21:30
# Conflicts:
#	modules/advangelistsBidAdapter.js
#	test/spec/modules/advangelistsBidAdapter_spec.js
@idettman idettman requested a review from harpere November 22, 2019 12:44
@idettman idettman changed the title Add onBeforeRequestBids event support Pre-Auction Filters and pbadslot support Nov 22, 2019
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.

2 participants