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

Xhb Adapter: adding alias support #1290

Merged
merged 12 commits into from
Jul 13, 2017
Merged

Xhb Adapter: adding alias support #1290

merged 12 commits into from
Jul 13, 2017

Conversation

daniel-hoffmann
Copy link
Contributor

Type of change

  • [x ] Other

Description of change

Changed Xhb Adapter to allow aliasing

Let me know if any changes need to be made.

Copy link
Collaborator

@jaiminpanchal27 jaiminpanchal27 left a 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.

@daniel-hoffmann
Copy link
Contributor Author

@jaiminpanchal27 Can you please check if the most recent commit is okay? Thanks! :)

jaiminpanchal27
jaiminpanchal27 previously approved these changes Jul 5, 2017
};
bidmanager.registerDefaultBidderSetting('xhb', _defaultBidderSettings);
Copy link
Member

Choose a reason for hiding this comment

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

Was this drop intentional?

Copy link
Contributor Author

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);
Copy link
Member

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

bid = bidfactory.createBid(2);
// no response data
// indicate that there is no bid for this placement
bid = bidfactory.createBid(2, bidObj);
Copy link
Member

Choose a reason for hiding this comment

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

use constant value

@mkendall07
Copy link
Member

@daniel-hoffmann
had a question and few minor changes and can merge.

@mkendall07
Copy link
Member

LGTM.

@mkendall07 mkendall07 merged commit 910f28f into prebid:master Jul 13, 2017
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