-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Xhb Adapter: adding alias support #1290
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@daniel-hoffmann
Modules have been introduces in Prebid with this PR #1177
Your adapter is already converted to new style
https://github.com/prebid/Prebid.js/blob/master/modules/xhbBidAdapter.js
So take latest copy of master and merge changes here.
@jaiminpanchal27 Can you please check if the most recent commit is okay? Thanks! :) |
modules/xhbBidAdapter.js
Outdated
}; | ||
bidmanager.registerDefaultBidderSetting('xhb', _defaultBidderSettings); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was this drop intentional?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was originally, yes - but on second though, it probably is better to keep it in for the time being, so I added it in again.
let adId = jptResponseObj.result.creative_id; | ||
bid = bidfactory.createBid(CONSTANTS.STATUS.GOOD, bidObj); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please keep the constant value here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
modules/xhbBidAdapter.js
Outdated
bid = bidfactory.createBid(2); | ||
// no response data | ||
// indicate that there is no bid for this placement | ||
bid = bidfactory.createBid(2, bidObj); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use constant value
@daniel-hoffmann |
LGTM. |
Type of change
Description of change
Changed Xhb Adapter to allow aliasing
Let me know if any changes need to be made.