Skip to content

Commit

Permalink
Mabidder Bid Adapter : use ortbConverter facility to pass ortb2 (#11447)
Browse files Browse the repository at this point in the history
* Add lmpIdSystem userId submodule

* Use ortbConverter facility in mabidder

---------

Co-authored-by: Antoine Niek <[email protected]>
  • Loading branch information
ecdrsvc and zapo committed May 7, 2024
1 parent 685d72c commit 80f627d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions modules/mabidderBidAdapter.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
import { registerBidder } from '../src/adapters/bidderFactory.js';
import { BANNER } from '../src/mediaTypes.js';
import {getGlobal} from '../src/prebidGlobal.js';
import { getGlobal } from '../src/prebidGlobal.js';
import { ortbConverter } from '../libraries/ortbConverter/converter.js';

const BIDDER_CODE = 'mabidder';
export const baseUrl = 'https://prebid.ecdrsvc.com/bid';
const converter = ortbConverter({})

export const spec = {
supportedMediaTypes: [BANNER],
code: BIDDER_CODE,
Expand All @@ -14,7 +17,8 @@ export const spec = {
return !!(bid.params.ppid && bid.sizes && Array.isArray(bid.sizes) && Array.isArray(bid.sizes[0]))
},
buildRequests: function(validBidRequests, bidderRequest) {
const fpd = bidderRequest.ortb2;
const fpd = converter.toORTB({ bidRequests: validBidRequests, bidderRequest: bidderRequest });

const bids = [];
validBidRequests.forEach(bidRequest => {
const sizes = [];
Expand Down

0 comments on commit 80f627d

Please sign in to comment.