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

districtmDMX adapter: result bid missing bidId from _bidsRequested #1191

Closed
PsychodelEKS opened this issue May 10, 2017 · 5 comments
Closed

Comments

@PsychodelEKS
Copy link

Type of issue

bug

Description

districtmDMX adapter served bids (passed to bidsBackHandler) do not have any attribute to match them with bids from _bidsRequested.

Steps to reproduce

  1. Configure districtmDMX adapter to bid any placement
  2. register any function as a bidsBackHandler to observe passed results
  3. get bid from districtmDMX

Expected results

districtmDMX bid contains adId which matches bidId from corresponding requsted bid (_bidsRequested)

Actual results

there is adId, but it does not match _bidsRequested[*].bidId

Platform details

independant

Other information

Made a hack myself, though there may be better solution (I used additional attribute requestBidId not to interfere with anything):

--- src/adapters/districtmDMX.js	(revision 1f910686a4adff1223941ca89a98a1b349cfbfcf)
+++ src/adapters/districtmDMX.js	(revision )
@@ -32,6 +32,8 @@
       bidmanager.addBidResponse(bidObject.placementCode, bid);
     }
 
+    bid.requestBidId = bidObject.bidId;
+
     return bid;
   };
 
@mkendall07
Copy link
Member

@stevealliance can you fix?

@stevealliance
Copy link
Contributor

stevealliance commented May 12, 2017

@mkendall07 Just got your message, working on it

@stevealliance
Copy link
Contributor

@PsychodelEKS I check other object and no one return the bidId ... correct me if I'm wrong.
Example of Appnexus obj return in the callback

adId:"717335e1501291"
adUnitCode:"div-gpt-ad-12345678-2"
adUrl:"http://nym1-ib.adnxs.com/ab?e="
adserverTargeting:Object
alwaysUseBid:true
bidder:"appnexus"
bidderCode:"appnexus"
cpm:0.02709
creative_id:65361706
dealId:undefined
getSize:function ()
getStatusCode:function ()
height:250
pbAg:"0.00"
pbDg:"0.02"
pbHg:"0.02"
pbLg:"0.00"
pbMg:"0.00"
requestId:"d5792e87-3d68-43f9-a7ec-c4965fc5f7c7"
requestTimestamp:1494621098493
responseTimestamp:1494621098699
size:"300x250"
statusMessage:"Bid available"
timeToRespond:206
width:300

@PsychodelEKS
Copy link
Author

PsychodelEKS commented May 12, 2017

@stevealliance that's not necessary bidId, it can be anything one can use to match bid response with particular bid request from pbjs._bidsRequested, the correct and straight forward solution is to set bid.adId to the bidRequest.bidId. Please refer to #943 as an example.

@PsychodelEKS
Copy link
Author

@stevealliance actually bid factory supports bidRequest as a second parameter (first one is bid status), and if it is provided, bid.adId is set to bidRequest.bidId automatically. Code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants