Skip to content

New option to Include deal KVPs when enableSendAllBids === false#4136

Merged
harpere merged 2 commits intomasterfrom
always_include_deal_kvps
Sep 10, 2019
Merged

New option to Include deal KVPs when enableSendAllBids === false#4136
harpere merged 2 commits intomasterfrom
always_include_deal_kvps

Conversation

@robertrmartinez
Copy link
Collaborator

@robertrmartinez robertrmartinez commented Aug 30, 2019

Type of change

  • Bugfix

Description of change

Fix for #3899

New option in targetingControls to allow sending through bids which have dealId's even when enableSendAllBids is false

pbjs.setConfig({
   enableSendAllBids: false,
   targetingControls: {
      alwaysIncludeDeals: true
   }
});

alwaysIncludeDeals must be explicitly set = true to utilize.

This code only happens when enableSendAllBids is false (as if true should have been added anyways!)

@robertrmartinez robertrmartinez requested a review from bretg August 30, 2019 20:53
@bretg bretg requested review from jsnellbaker and removed request for idettman September 3, 2019 16:03
hb_bidder: 'rubicon',
foobar: '300x250',
hb_deal_appnexus: '1234',
hb_pb_appnexus: '0.53',
Copy link
Contributor

Choose a reason for hiding this comment

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

why isn't this 0.1 to match bid4.cpm? Also, I would find it less confusing to use different deal IDs for RP and APN

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good catch. Let me fix

hb_adid_appnexus: '148018fe5e',
hb_bidder_appnexus: 'appnexus',
};
let targetingWithoutAdnxsDeal = {
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd also like to see a scenario where the winning bid isn't a deal.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ok Will do!

@robertrmartinez
Copy link
Collaborator Author

@bretg Updated the tests

@jsnellbaker jsnellbaker added the needs 2nd review Core module updates require two approvals from the core team label Sep 5, 2019
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

@harpere harpere added LGTM and removed needs 2nd review Core module updates require two approvals from the core team labels Sep 10, 2019
@harpere harpere merged commit 730c561 into master Sep 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Comments