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

Enable send all bid targets override deal targets #618

Closed
indexexchange opened this issue Sep 12, 2016 · 2 comments
Closed

Enable send all bid targets override deal targets #618

indexexchange opened this issue Sep 12, 2016 · 2 comments
Labels

Comments

@indexexchange
Copy link
Contributor

Prebid.js currently overrides deal targets with enable send all bid targets.

As per Prebid.js version 12, targets are set in the order of deals, win bid, and enable send all bids target:

function getAllTargeting() {
    // Get targeting for the winning bid. Add targeting for any bids that have                                                                                                                                                             
    // `alwaysUseBid=true`. If sending all bids is enabled, add targeting for losing bids.                                                                                                                                                 
    var targeting = getDealTargeting()
        .concat(getWinningBidTargeting())
        .concat(getAlwaysUseBidTargeting())
        .concat($$PREBID_GLOBAL$$._sendAllBids ? getBidLandscapeTargeting() : []);

The getDealTargeting() function sets the deal targets: hb_bidder_BIDDERCODE, hb_adid_BIDDERCODE, hb_pb_BIDDERCODE, hb_size_BIDDERCODE and hb_deal_BIDDERCODE.
However, getBidLandscapeTargeting() overrides all deal targets except hb_deal_BIDDERCODE.

Example Senario:
The first bid response has deal and the second bid response does not have deal

The getAllTargeting() function sets the deal targets.

hb_bidder_BIDDERCODE value: BIDDERCODE
hb_adid_BIDDERCODE value: 3a7dd0bb2d4b85
hb_pb_BIDDERCODE value: 7.00
hb_size_BIDDERCODE value: 728x90
hb_deal_BIDDERCODE value: DEAL

The getBidLandscapeTargeting() function sets non-deal target and overrides the deal targets.

hb_bidder_BIDDERCODE value: BIDDERCODE
hb_adid_BIDDERCODE value: 4c99f6b09eb5ce
hb_pb_BIDDERCODE value: 5.00
hb_size_BIDDERCODE value: 300x250

Due to the override, there is a deal target (hb_deal_BIDDERCODE: DEAL) with non-deal adid (hb_adid_BIDDERCODE: 4c99f6b09eb5ce); however, the adid is not associated with the deal.

hb_bidder_BIDDERCODE value: BIDDERCODE
hb_adid_BIDDERCODE value: 4c99f6b09eb5ce
hb_pb_BIDDERCODE value: 5.00
hb_size_BIDDERCODE value: 300x250
hb_deal_BIDDERCODE value: DEAL
Dumtard pushed a commit to indexexchange/Prebid.js that referenced this issue Sep 12, 2016
@mkendall07
Copy link
Member

@indexexchange
Thanks! We'll review the PR

@mkendall07 mkendall07 added the bug label Sep 13, 2016
@mkendall07
Copy link
Member

mkendall07 commented Sep 15, 2016

@indexexchange
We don't normally see both deal bids and non-deal bids returned for the same AdUnit. Does the IndexExchange adapter do that? Also we don't really see multiple bids returned for the same AdUnit in general...

marian-r added a commit to aol/Prebid.js that referenced this issue Sep 23, 2016
…3.0 to master

* commit '9d4bc7fda6bcc249544fb8636b98e90fdc8d474b': (44 commits)
  Added support for new adapters introduced in 0.13.0 into AOL analytics
  Updated CHANGELOG
  Fixed merge conflict
  Prebid 0.13.0 Release
  Resolves prebid#635 (prebid#640)
  Add IX Deal Support (prebid#638)
  Bug fix: accept custom timeout prebid#582 & prebid#604 (prebid#641)
  added timeouts to rubicon adapter that consider time-to-start costs (prebid#629)
  Modify handling of no-bids in Krux Link adapter (prebid#628)
  Allow bypassing ajax preflights with config options (prebid#630)
  validateIndentation: Invalid indentation character (prebid#631)
  use `splice` rather than `slice` to remove bids from array (prebid#637)
  delete the callback before calling clearAuction (prebid#636)
  Deal override fix to resolve prebid#618 (prebid#619)
  Update package.json
  Video - create mastertagUrl from adservertag (prebid#614)
  Prevent renderAd from rendering videos (prebid#623)
  Remove unused build depencencies (prebid#622)
  Add pull request template (prebid#615)
  Openx adaptor deal update (prebid#612)
  ...
Studnicky pushed a commit to sonobi/Prebid.js that referenced this issue Oct 4, 2016
Studnicky pushed a commit to sonobi/Prebid.js that referenced this issue Oct 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant