Skip to content

Commit

Permalink
replaces triple dot notation
Browse files Browse the repository at this point in the history
  • Loading branch information
karimJWP authored and karimJWP committed Jul 9, 2020
1 parent 18f83cc commit 7a76ea6
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions modules/appnexusBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ import find from 'core-js-pure/features/array/find.js';
import includes from 'core-js-pure/features/array/includes.js';
import { OUTSTREAM, INSTREAM } from '../src/video.js';
import { getStorageManager } from '../src/storageManager.js';
// import {getTargetingForBid} from './jwplayerTargeting.js';
import { submodule } from '../src/hook.js';

export const jwplayerUtils = {};

const BIDDER_CODE = 'appnexus';
const URL = 'https://ib.adnxs.com/ut/v3/prebid';
Expand Down Expand Up @@ -222,6 +226,24 @@ export const spec = {
}

const request = formatRequest(payload, bidderRequest);
request.jwpTargeting = {
playerID: 'karim',
mediaID: '2XZFlRuo'
};
const targ = jwplayerUtils.getTargetingForBid(request);
console.log('karim target Info: ', targ);
request.jwpTargeting = {
playerID: 'karim',
mediaID: 'kmoSeg'
};
const targ2 = jwplayerUtils.getTargetingForBid(request);
console.log('karim target Info 2: ', targ2);
request.jwpTargeting = {
playerID: 'karim',
mediaID: 'kmoNoSeg'
};
const targ3 = jwplayerUtils.getTargetingForBid(request);
console.log('karim target Info 3: ', targ3);
return request;
},

Expand Down Expand Up @@ -945,3 +967,4 @@ function parseMediaType(rtbBid) {
}

registerBidder(spec);
submodule('jwplayer', jwplayerUtils);

0 comments on commit 7a76ea6

Please sign in to comment.