Skip to content

Commit

Permalink
Support bidder aliasing by not using bid.bidder to retrieve configs (…
Browse files Browse the repository at this point in the history
…which are static anyway) (prebid#6313)
  • Loading branch information
cciocov authored and seergiioo6 committed Mar 23, 2021
1 parent a397ae1 commit 1beebbd
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions modules/inskinBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ import { registerBidder } from '../src/adapters/bidderFactory.js';
const BIDDER_CODE = 'inskin';

const CONFIG = {
'inskin': {
'BASE_URI': 'https://mfad.inskinad.com/api/v2'
}
BASE_URI: 'https://mfad.inskinad.com/api/v2'
};

export const spec = {
Expand Down Expand Up @@ -97,8 +95,7 @@ export const spec = {
}

validBidRequests.map(bid => {
let config = CONFIG[bid.bidder];
ENDPOINT_URL = config.BASE_URI;
ENDPOINT_URL = CONFIG.BASE_URI;

const placement = Object.assign({
divName: bid.bidId,
Expand Down

0 comments on commit 1beebbd

Please sign in to comment.