Skip to content

Commit

Permalink
Update ixBidAdapter.js (#5289)
Browse files Browse the repository at this point in the history
* Update ixBidAdapter.js

If the Index adapter is aliased, this gathers the alias instead of using the hard coded 'ix' value for bidder code.

* check for existence of bidderrequest

bidderrequest object doesn't exist in the test spec; IX team may want to write a more extensive test here.
  • Loading branch information
patmmccann authored May 25, 2020
1 parent 13c9859 commit 2b428bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/ixBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,8 @@ function buildRequest(validBidRequests, bidderRequest, impressions, version) {
const payload = {};

// Parse additional runtime configs.
const otherIxConfig = config.getConfig('ix');
const bidderCode = (bidderRequest && bidderRequest.bidderCode) || 'ix';
const otherIxConfig = config.getConfig(bidderCode);
if (otherIxConfig) {
// Append firstPartyData to r.site.page if firstPartyData exists.
if (typeof otherIxConfig.firstPartyData === 'object') {
Expand Down

0 comments on commit 2b428bc

Please sign in to comment.