-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
33Across ID System: Fix merge conflicts between master & 9.0 (#11715)
* Vis X Bid Adapter : retrieve and send seller defined audiences (#11638) * AF-3647 added device object to request in visxBidAdapter * AF-3647 added user, regs, site and user agent data to request * AF-3647 removed userAgentClientHints because of it is gotten from device object * AF-3647 updated test scenarios with sda signals * AF-3647 fixed to getting ortb2 and spec file * AF-3647 reverted to get user data from cookie/local storage * 33Across User ID Module : support for the recently introduced "multiple storage types" feature (#11563) * Refactoring - break functions that are handling multiple storage types. * user id: introduce the concept of enabled storage types * Apply domain override to 33across ID * First party ID - Support for multiple storage types * 33Across User ID: Recommend both storage types * refactor the way enabled storage types are populated * Default to fetch keepalive (#11682) Co-authored-by: Marcin Komorski <marcinkomorski@Marcins-MacBook-Pro.local> * Dailymotion Bid Adapter: add support for user syncs & new fields (#11603) * Dailymotion Bid Adapter: add support for playbackmethod & plcmt * Dailymotion Bid Adapter: add support for user syncs * Dailymotion Bid Adapter: Add support for ortb2 device, and contextual informations * Dailymotion Bid Adapter: Fix tests * Dailymotion Bid Adapter: add support for content.url & device.ext.atts * Dailymotion Bid Adapter: change markdown header levels * Dailymotion Bid Adapter: collect prebid.version --------- Co-authored-by: Kevin Siow <kevin.siow@dailymotion.com> * ZetaGlobalSsp Analytics Adapter : provide device object (#11607) * ZetaGlobalSpp Analytics adapter: provide device object * ZetaGlobalSpp Analytics adapter: provide ua in adRenderSucceeded event * provide domain and page in timeout event --------- Co-authored-by: Surovenko Alexey <surovenko.alexey@gmail.com> Co-authored-by: Alexey Surovenko <ASurovenko@vdhk6ddf9m.home> * Core Utils: fix jsdoc warnings (#11694) * Update utils.js * Update perfMetrics.js * Update ttlCollection.js * Update adpod.js * Update consentManagementGpp.js * Update consentManagementGpp.js * Update consentManagement.js * Update consentManagementUsp.js * Update currency.js * Update dfpAdServerVideo.js * Update instreamTracking.js * Update s2sTesting.js * Update sizeMapping.js * Update topicsFpdModule.js * Update uid2IdSystem.js * Update consentManagementUsp.js * Update sizeMapping.js * datablocksBidAdapter.js: fix syncs issue (#11684) fixes #11319 * ColossusSSP Bid Adapter : replace gpid for pbadslot (#11701) * add video&native traffic colossus ssp * Native obj validation * Native obj validation #2 * Added size field in requests * fixed test * fix merge conflicts * move to 3.0 * move to 3.0 * fix IE11 new URL issue * fix IE11 new URL issue * fix IE11 new URL issue * https for 3.0 * add https test * add ccp and schain features * fix test * sync with upstream, fix conflicts * Update colossussspBidAdapter.js remove commented code * Update colossussspBidAdapter.js lint fix * identity extensions * identity extensions * fix * fix * fix * fix * fix * add tests for user ids * fix * fix * fix * fix * fix * fix * fix * add gdpr support * add gdpr support * id5id support * Update colossussspBidAdapter.js add bidfloor parameter * Update colossussspBidAdapter.js check bidfloor * Update colossussspBidAdapter.js * Update colossussspBidAdapter.js * Update colossussspBidAdapter.js * Update colossussspBidAdapter_spec.js * use floor module * Revert "use floor module" This reverts commit f0c5c24. * use floor module * update to 5v * fix * add uid2 and bidFloor support * fix * add pbadslot support * fix conflicts * add onBidWon * refactor * add test for onBidWon() * fix * add group_id * Trigger circleci * fix * update user sync * fix window.location * fix test * updates * fix conflict * fix * updates * remove traffic param * add transactionId to request data for colossusssp adapter * Send tid in placements array * update user sync * updated tests * remove changes package-lock file * fix * add First Party Data * gpp support * accepting eids from request * fixing lint errors * resolving a conflict * fixing a failed test case related to tid * fixing karma version for conflict resolution * reverting package json files to original version * switching placement to plcmt * replacing gpid for pbadslot --------- Co-authored-by: Vladislav Isaiko <vladis@smartyads.com> Co-authored-by: Aiholkin <artem.iholkin@smartyads.com> Co-authored-by: Bill Newman <huddled.masses1650@gmail.com> Co-authored-by: Mykhailo Yaremchuk <m.yaremchuk@smartyads.com> Co-authored-by: kottapally <bhasker@gytworkz.com> * Bidmatic Bid Adapter: Initial Release (#11690) * Bidmatic Initial commit * Use getFloor from price module --------- Co-authored-by: Gonca Karadeniz <49647923+Goncakkd@users.noreply.github.com> Co-authored-by: mkomorski <marcin.komorski@pollub.edu.pl> Co-authored-by: Marcin Komorski <marcinkomorski@Marcins-MacBook-Pro.local> Co-authored-by: Kevin Siow <k.siow@passerelle.co> Co-authored-by: Kevin Siow <kevin.siow@dailymotion.com> Co-authored-by: asurovenko-zeta <80847074+asurovenko-zeta@users.noreply.github.com> Co-authored-by: Surovenko Alexey <surovenko.alexey@gmail.com> Co-authored-by: Alexey Surovenko <ASurovenko@vdhk6ddf9m.home> Co-authored-by: Patrick McCann <patmmccann@gmail.com> Co-authored-by: bhasker-ddh <159261864+bhasker-ddh@users.noreply.github.com> Co-authored-by: Vladislav Isaiko <vladis@smartyads.com> Co-authored-by: Aiholkin <artem.iholkin@smartyads.com> Co-authored-by: Bill Newman <huddled.masses1650@gmail.com> Co-authored-by: Mykhailo Yaremchuk <m.yaremchuk@smartyads.com> Co-authored-by: kottapally <bhasker@gytworkz.com> Co-authored-by: Gena <wertixvost@gmail.com>
- Loading branch information
1 parent
b932759
commit fd8f2e1
Showing
32 changed files
with
1,739 additions
and
271 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
import { ortbConverter } from '../libraries/ortbConverter/converter.js'; | ||
import { registerBidder } from '../src/adapters/bidderFactory.js'; | ||
import { BANNER, VIDEO } from '../src/mediaTypes.js'; | ||
import { replaceAuctionPrice, isNumber, deepAccess, isFn } from '../src/utils.js'; | ||
|
||
export const END_POINT = 'https://adapter.bidmatic.io/ortb-client'; | ||
const BIDDER_CODE = 'bidmatic'; | ||
const DEFAULT_CURRENCY = 'USD'; | ||
|
||
export const converter = ortbConverter({ | ||
context: { | ||
netRevenue: true, | ||
ttl: 290, | ||
}, | ||
imp(buildImp, bidRequest, context) { | ||
const imp = buildImp(bidRequest, context); | ||
const floorInfo = isFn(bidRequest.getFloor) ? bidRequest.getFloor({ | ||
currency: context.currency || 'USD', | ||
size: '*', | ||
mediaType: '*' | ||
}) : { | ||
floor: imp.bidfloor || deepAccess(bidRequest, 'params.bidfloor') || 0, | ||
currency: DEFAULT_CURRENCY | ||
}; | ||
|
||
if (floorInfo) { | ||
imp.bidfloor = floorInfo.floor; | ||
imp.bidfloorcur = floorInfo.currency; | ||
} | ||
imp.tagid = deepAccess(bidRequest, 'ortb2Imp.ext.gpid') || bidRequest.adUnitCode; | ||
|
||
return imp; | ||
}, | ||
request(buildRequest, imps, bidderRequest, context) { | ||
const request = buildRequest(imps, bidderRequest, context); | ||
if (!request.cur) { | ||
request.cur = [DEFAULT_CURRENCY]; | ||
} | ||
return request; | ||
}, | ||
bidResponse(buildBidResponse, bid, context) { | ||
const { bidRequest } = context; | ||
|
||
let resMediaType; | ||
const reqMediaTypes = Object.keys(bidRequest.mediaTypes); | ||
if (reqMediaTypes.length === 1) { | ||
resMediaType = reqMediaTypes[0]; | ||
} else { | ||
if (bid.adm.search(/^(<\?xml|<vast)/i) !== -1) { | ||
resMediaType = VIDEO; | ||
} else { | ||
resMediaType = BANNER; | ||
} | ||
} | ||
|
||
context.mediaType = resMediaType; | ||
|
||
return buildBidResponse(bid, context); | ||
} | ||
}); | ||
|
||
export const spec = { | ||
code: BIDDER_CODE, | ||
supportedMediaTypes: [BANNER, VIDEO], | ||
gvlid: 1134, | ||
isBidRequestValid: function (bid) { | ||
return isNumber(deepAccess(bid, 'params.source')) | ||
}, | ||
|
||
buildRequests: function (validBidRequests, bidderRequest) { | ||
const requestsBySource = validBidRequests.reduce((acc, bidRequest) => { | ||
acc[bidRequest.params.source] = acc[bidRequest.params.source] || []; | ||
acc[bidRequest.params.source].push(bidRequest); | ||
return acc; | ||
}, {}); | ||
|
||
return Object.entries(requestsBySource).map(([source, bidRequests]) => { | ||
const data = converter.toORTB({ bidRequests, bidderRequest }); | ||
const url = new URL(END_POINT); | ||
url.searchParams.append('source', source); | ||
return { | ||
method: 'POST', | ||
url: url.toString(), | ||
data: data, | ||
options: { | ||
withCredentials: true, | ||
} | ||
}; | ||
}); | ||
}, | ||
|
||
interpretResponse: function (serverResponse, bidRequest) { | ||
if (!serverResponse || !serverResponse.body) return []; | ||
const parsedSeatbid = serverResponse.body.seatbid.map(seatbidItem => { | ||
const parsedBid = seatbidItem.bid.map((bidItem) => ({ | ||
...bidItem, | ||
adm: replaceAuctionPrice(bidItem.adm, bidItem.price), | ||
nurl: replaceAuctionPrice(bidItem.nurl, bidItem.price) | ||
})); | ||
return { ...seatbidItem, bid: parsedBid }; | ||
}); | ||
const responseBody = { ...serverResponse.body, seatbid: parsedSeatbid }; | ||
return converter.fromORTB({ | ||
response: responseBody, | ||
request: bidRequest.data, | ||
}).bids; | ||
}, | ||
|
||
}; | ||
registerBidder(spec); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Overview | ||
|
||
``` | ||
Module Name: Bidmatic Bid Adapter | ||
Module Type: Bidder Adapter | ||
Maintainer: mg@bidmatic.io | ||
``` | ||
|
||
# Description | ||
|
||
Adds access to Bidmatic SSP oRTB service. | ||
|
||
# Sample Ad Unit: For Publishers | ||
``` | ||
var adUnits = [{ | ||
code: 'bg-test-rectangle', | ||
sizes: [[300, 250]], | ||
bids: [{ | ||
bidder: 'bidmatic', | ||
params: { | ||
source: 886409, | ||
bidfloor: 0.1 | ||
} | ||
}] | ||
}] | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.