Skip to content

Commit

Permalink
Prebid 9: Update babel core (#11729)
Browse files Browse the repository at this point in the history
* Prebid 9: Update babel core

* Update bedigitechBidAdapter_spec.js

* Update bedigitechBidAdapter_spec.js

* Update bedigitechBidAdapter_spec.js

* Update bedigitechBidAdapter.js

* Update bedigitechBidAdapter_spec.js

* Delete test/spec/modules/iqmBidAdapter_spec.js

* 9.0 upstream (#11735)

* ampliffyBidAdapter.js: remove linter exceptions (#11666)

* GPID is set first from GPID, then from pbadslot as a fallback. (#11542)

* chore: pass through paapi imp extension [PB-2799] (#11639)

Co-authored-by: Chris Corbo <[email protected]>

* ViouslyBidAdapter.js: replace find (#11667)

* New PAAPI module: topLevelPaapi (#11379)

* refactor size logic

* fill in requestedSize on auction configs

* topLevelPaapi

* WIP

* getPAAPIBids

* include size in paapi bids

* update TL example

* slightly nicer example

* slight improvement

* refactor

* add PAAPI_ERROR event

* use optable in TL example

* allow async bid retrieval on render: safeframes

* allow async bid retrieval on render: renderAd

* do not force string on requestedSize

* support rendering of paapi bids

* include auctionConfig in events

* fix tests

* overrideWinner; autorun by default

* autorun & overrideWinner

* fix tests

* emit BID_WON for paapi bids

* add no ad server example

* improve bid override logic

* fix lint

* e-Volution Bid Adapter : update bid request validation and added video placement keys (#11561)

* updates for Prebid v5

* add id5id

* update tests

* add gvlid

* updated adapter

* removed redundant endpointId

* Opsco Bid Adapter : update process for retrieving placementId from bid request params (#11604)

* Opsco bid adapter init commit

* Opsco bid adapter banner implementation

* Changing test parameter

* Changing endpoint

* Retrieving placement Id from bid request params

---------

Co-authored-by: adtech-sky <[email protected]>

* StroeerCore Bid Adapter: remove 'ssl' flag from the request payload (#11678)

* AdMatic Bid Adapter: add monetixads alias (#11679)

* Admatic Bidder Adaptor

* Update admaticBidAdapter.md

* Update admaticBidAdapter.md

* remove floor parameter

* Update admaticBidAdapter.js

* Admatic Bid Adapter: alias and bid floor features activated

* Admatic adapter: host param control changed

* Alias name changed.

* Revert "Admatic adapter: host param control changed"

This reverts commit de7ac85.

* added alias feature and host param

* Revert "added alias feature and host param"

This reverts commit 6ec8f45.

* Revert "Alias name changed."

This reverts commit 661c54f.

* Revert "Admatic Bid Adapter: alias and bid floor features activated"

This reverts commit 7a2e0e2.

* Revert "Update admaticBidAdapter.js"

This reverts commit 7a845b7.

* Revert "remove floor parameter"

This reverts commit 7a23b05.

* Admatic adapter: host param control && Add new Bidder

* Revert "Admatic adapter: host param control && Add new Bidder"

This reverts commit 3c797b1.

* commit new features

* Update admaticBidAdapter.js

* updated for coverage

* sync updated

* Update adloader.js

* AdMatic Bidder: development of user sync url

* Update admaticBidAdapter.js

* Set currency for AdserverCurrency: bug fix

* Update admaticBidAdapter.js

* update

* admatic adapter video params update

* Update admaticBidAdapter.js

* update

* Update admaticBidAdapter.js

* update

* update

* Update admaticBidAdapter_spec.js

* Update admaticBidAdapter.js

* Update admaticBidAdapter.js

* Revert "Update admaticBidAdapter.js"

This reverts commit 1216892.

* Revert "Update admaticBidAdapter.js"

This reverts commit b1929ec.

* Revert "Update admaticBidAdapter_spec.js"

This reverts commit 1ca6597.

* Revert "update"

This reverts commit 689ce9d.

* Revert "update"

This reverts commit f381a45.

* Revert "Update admaticBidAdapter.js"

This reverts commit 38fd7ab.

* Revert "update"

This reverts commit a5316e7.

* Revert "Update admaticBidAdapter.js"

This reverts commit 60a28ca.

* Revert "admatic adapter video params update"

This reverts commit 31e69e8.

* update

* Update admaticBidAdapter.js

* Update admaticBidAdapter_spec.js

* mime_type add

* add native adapter

* AdMatic Adapter: Consent Management

* added gvlid

* Update admaticBidAdapter.js

* Various places: jsdoc fixes (#11672)

* Update adapterManager.js

* Update consentHandler.js

* Update prebid.js

* Update targeting.js

* Update refererDetection.js

* Update video.js

* Update videoCache.js

* Update params.js

* Update rules.js

* Update paapi.js

* Update ortb.js

* Update composer.js

* Update coreVideo.js

* Update adapterManager.js

* Update consentHandler.js

* Update ttlCollection.js

* Update enrichment.js

* Update gamAdServerSubmodule.js

* Smarthub replace placement (#11629)

* update adapter SmartHub: add aliases

* SmartHub adapter: replace placement

* add getter video.plcmt and update test

* revert placement to plcmt

---------

Co-authored-by: Victor <[email protected]>

* Marsmedia: remove analytics adapter (#11686)

* Change publisherId to zoneId
Add gdpr
Add supply chain
Add video media type

* Remove comments

* Fix unit test coverage

* fix request id bug
add vastXml to video response

* Remove bid response default sizes

* Change endpoint url

* Add unit test for vastXml

* Change end point

* Remove trailing-space

* Add onBidWon function

* New adapter - videofy

* Marsmedia & Videofy - Add onTimeout onSetTargeting

* Create sendbeacon function

* - add viewability

* remove unnecessary utils.getWindowTop()

* Remove bidderCode from response for alias use

* Remove unuse that var

* MarsMeida: Remove analytics adapter

* 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 <[email protected]>

* 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 <[email protected]>

* 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 <[email protected]>
Co-authored-by: Alexey Surovenko <[email protected]>

* JW Player RTD Adapter: 9.0 migration (#11692)

* enrich content id when empty

* updates tests

* updates documentation

* updates examples

* 9.0: Update gumgumBidAdapter.js (#11693)

* 9.0: Update gumgumBidAdapter.js

enforcing standard request object locations must also be supported when a param is offered.

* Update gumgumBidAdapter_spec.js

* Update gumgumBidAdapter_spec.js

* 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

* Prebid 9: rename fledge to paapi (#11695)

* rename bidderRequest.fledgeEnabled to bidderRequest.paapi.enabled

* rename fledgeAuctionConfigs to paapi

* remove support for bidder fledgeAuctionConfigs

* remove support for fledgeForGpt config

* rename fledgeForGpt -> paapiForGpt

* update refs to fledgeForGpt in comments and docs

* Remove special bidder configuration for fledge

* flip paapiForGpt autoconfig default

* rename integration examples

* update paapiForGpt.md

* 9.0: remove rsa validate

* 9.0: Update package.json (#11697)

* Criteo Bid Adapter: Update bidder DNS (#11700)

Co-authored-by: Patrick McCann <[email protected]>

* 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 <[email protected]>
Co-authored-by: Aiholkin <[email protected]>
Co-authored-by: Bill Newman <[email protected]>
Co-authored-by: Mykhailo Yaremchuk <[email protected]>
Co-authored-by: kottapally <[email protected]>

* Bidmatic Bid Adapter: Initial Release (#11690)

* Bidmatic Initial commit

* Use getFloor from price module

* Update sovrnBidAdapter.js: support plcmt (#11704)

* 9.0: Update quantcastBidAdapter.js for plcmt (#11707)

* 9.0: Update quantcastBidAdapter.js for plcmt

* Update quantcastBidAdapter_spec.js

* 9.0: Update acuityadsBidAdapter.js to add plcmt (#11710)

* 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 <[email protected]>

* 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 <[email protected]>

* 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 <[email protected]>
Co-authored-by: Alexey Surovenko <[email protected]>

* 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 <[email protected]>
Co-authored-by: Aiholkin <[email protected]>
Co-authored-by: Bill Newman <[email protected]>
Co-authored-by: Mykhailo Yaremchuk <[email protected]>
Co-authored-by: kottapally <[email protected]>

* Bidmatic Bid Adapter: Initial Release (#11690)

* Bidmatic Initial commit

* Use getFloor from price module

---------

Co-authored-by: Gonca Karadeniz <[email protected]>
Co-authored-by: mkomorski <[email protected]>
Co-authored-by: Marcin Komorski <[email protected]>
Co-authored-by: Kevin Siow <[email protected]>
Co-authored-by: Kevin Siow <[email protected]>
Co-authored-by: asurovenko-zeta <[email protected]>
Co-authored-by: Surovenko Alexey <[email protected]>
Co-authored-by: Alexey Surovenko <[email protected]>
Co-authored-by: Patrick McCann <[email protected]>
Co-authored-by: bhasker-ddh <[email protected]>
Co-authored-by: Vladislav Isaiko <[email protected]>
Co-authored-by: Aiholkin <[email protected]>
Co-authored-by: Bill Newman <[email protected]>
Co-authored-by: Mykhailo Yaremchuk <[email protected]>
Co-authored-by: kottapally <[email protected]>
Co-authored-by: Gena <[email protected]>

* Support for cids (#11713)

* Revert "9.0: Update gumgumBidAdapter.js (#11693)" (#11717)

This reverts commit caa9979.

* Add plmct (#11706)

* 9.0: 10452 enforce, need plcmt to get placement (#11718)

* Update adbookpspBidAdapter.js

* Update admanBidAdapter.js

* Update adtrueBidAdapter.js

* Update appushBidAdapter.js

* Update axisBidAdapter.js

* Update beyondmediaBidAdapter.js

* Update boldwinBidAdapter.js

* Update dspxBidAdapter.js

* Update edge226BidAdapter.js

* Update emtvBidAdapter.js

* Update globalsunBidAdapter.js

* Update gothamadsBidAdapter.js

* Update precisoBidAdapter.js

* Update smartyadsBidAdapter.js

* Update gothamadsBidAdapter.js

* Update precisoBidAdapter.js

* Update gothamadsBidAdapter.js

* Update lkqdBidAdapter.js

* Delete modules/iqmBidAdapter.js

* Delete test/spec/modules/iqmBidAdapter_spec.js

* Update smartyadsBidAdapter.js

* Update kiviadsBidAdapter.js

* Update krushmediaBidAdapter.js

* Update kueezBidAdapter.js

* Update loganBidAdapter.js

* Update loyalBidAdapter.js

* Update mediakeysBidAdapter.js

* Update mgidXBidAdapter.js

* Update mobfoxpbBidAdapter.js

* Update operaadsBidAdapter.js

* Update pgamsspBidAdapter.js

* Update pstudioBidAdapter.js

* Update pubgeniusBidAdapter.js

* Update pubCircleBidAdapter.js

* Update shinezBidAdapter.js

* Update videobyteBidAdapter.js

* Update visiblemeasuresBidAdapter.js

* Update waardexBidAdapter.js

* Update 33acrossBidAdapter.js

* Update gothamadsBidAdapter.js

* Update gothamadsBidAdapter.js

* Update precisoBidAdapter.js

* Update smartyadsBidAdapter.js

* Update smartxBidAdapter.js

* Update ozoneBidAdapter.js

* Update smartxBidAdapter.js

* Update 33acrossBidAdapter_spec.js

* Update admanBidAdapter_spec.js

* Update krushmediaBidAdapter_spec.js

* Update loganBidAdapter_spec.js

* Update mobfoxpbBidAdapter_spec.js

* Update precisoBidAdapter.js

* Update smartyadsBidAdapter.js

* Update e_volutionBidAdapter.js

* Update e_volutionBidAdapter.js

* Update pubmaticBidAdapter.js

* Update iqzoneBidAdapter.js

* Update qtBidAdapter.js

* Update lunamediahbBidAdapter.js

* Update krushmediaBidAdapter.js

* Update pubgeniusBidAdapter_spec.js

* Update smartxBidAdapter_spec.js

* Update apacdexBidAdapter_spec.js

* Update apacdexBidAdapter_spec.js

* ORTB2: don't rely on context to infer video.placement (#11719)

* Update videojsVideoProvider.js

* Update ortb.js

* Update ortb.js

* Update video.js

* Update videojsVideoProvider.js

* Update jwplayerVideoProvider.js

* Update ixBidAdapter.js

* Update videojsVideoProvider.js

* Update ixBidAdapter.js

* Update ortb.js

* Update videojsVideoProvider_spec.js

* Update video.js

* Update jwplayerVideoProvider.js

* Update videojsVideoProvider.js

* Update videojsVideoProvider_spec.js

* Update videojsVideoProvider.js

* Update videojsVideoProvider_spec.js

* Update video_spec.js

* Update ixBidAdapter.js

* Update prebidServerBidAdapter_spec.js

* Update viantOrtbBidAdapter_spec.js

* remove adbookpsp

* IX Bid Adapter: Remove Roundel Alias (#11732)

* pass user.geo and device.geo to payload (#11723)

* chore: removed roundel alias [PB-3025]

---------

Co-authored-by: aivanov-zeta <[email protected]>
Co-authored-by: Love Sharma <[email protected]>

* Update package-lock.json

* Update package-lock.json

---------

Co-authored-by: MartinGumGum <[email protected]>
Co-authored-by: ccorbo <[email protected]>
Co-authored-by: Chris Corbo <[email protected]>
Co-authored-by: Demetrio Girardi <[email protected]>
Co-authored-by: e-volution-tech <[email protected]>
Co-authored-by: ops-co <[email protected]>
Co-authored-by: adtech-sky <[email protected]>
Co-authored-by: Philip Watson <[email protected]>
Co-authored-by: Fatih Kaya <[email protected]>
Co-authored-by: SmartHubSolutions <[email protected]>
Co-authored-by: Victor <[email protected]>
Co-authored-by: vladi-mmg <[email protected]>
Co-authored-by: Gonca Karadeniz <[email protected]>
Co-authored-by: Carlos Felix <[email protected]>
Co-authored-by: mkomorski <[email protected]>
Co-authored-by: Marcin Komorski <[email protected]>
Co-authored-by: Kevin Siow <[email protected]>
Co-authored-by: Kevin Siow <[email protected]>
Co-authored-by: asurovenko-zeta <[email protected]>
Co-authored-by: Surovenko Alexey <[email protected]>
Co-authored-by: Alexey Surovenko <[email protected]>
Co-authored-by: Karim Mourra <[email protected]>
Co-authored-by: Léonard Labat <[email protected]>
Co-authored-by: bhasker-ddh <[email protected]>
Co-authored-by: Vladislav Isaiko <[email protected]>
Co-authored-by: Aiholkin <[email protected]>
Co-authored-by: Bill Newman <[email protected]>
Co-authored-by: Mykhailo Yaremchuk <[email protected]>
Co-authored-by: kottapally <[email protected]>
Co-authored-by: Gena <[email protected]>
Co-authored-by: Brian Schaaf <[email protected]>
Co-authored-by: Chris Huie <[email protected]>
Co-authored-by: Love Sharma <[email protected]>
Co-authored-by: aivanov-zeta <[email protected]>
Co-authored-by: Love Sharma <[email protected]>

* Revert "9.0 upstream (#11735)" (#11736)

This reverts commit fe0d8bb.

* Update bedigitechBidAdapter_spec.js

---------

Co-authored-by: Marcin Komorski <[email protected]>
Co-authored-by: Patrick McCann <[email protected]>
Co-authored-by: MartinGumGum <[email protected]>
Co-authored-by: ccorbo <[email protected]>
Co-authored-by: Chris Corbo <[email protected]>
Co-authored-by: Demetrio Girardi <[email protected]>
Co-authored-by: e-volution-tech <[email protected]>
Co-authored-by: ops-co <[email protected]>
Co-authored-by: adtech-sky <[email protected]>
Co-authored-by: Philip Watson <[email protected]>
Co-authored-by: Fatih Kaya <[email protected]>
Co-authored-by: SmartHubSolutions <[email protected]>
Co-authored-by: Victor <[email protected]>
Co-authored-by: vladi-mmg <[email protected]>
Co-authored-by: Gonca Karadeniz <[email protected]>
Co-authored-by: Carlos Felix <[email protected]>
Co-authored-by: Kevin Siow <[email protected]>
Co-authored-by: Kevin Siow <[email protected]>
Co-authored-by: asurovenko-zeta <[email protected]>
Co-authored-by: Surovenko Alexey <[email protected]>
Co-authored-by: Alexey Surovenko <[email protected]>
Co-authored-by: Karim Mourra <[email protected]>
Co-authored-by: Léonard Labat <[email protected]>
Co-authored-by: bhasker-ddh <[email protected]>
Co-authored-by: Vladislav Isaiko <[email protected]>
Co-authored-by: Aiholkin <[email protected]>
Co-authored-by: Bill Newman <[email protected]>
Co-authored-by: Mykhailo Yaremchuk <[email protected]>
Co-authored-by: kottapally <[email protected]>
Co-authored-by: Gena <[email protected]>
Co-authored-by: Brian Schaaf <[email protected]>
Co-authored-by: Chris Huie <[email protected]>
Co-authored-by: Love Sharma <[email protected]>
Co-authored-by: aivanov-zeta <[email protected]>
Co-authored-by: Love Sharma <[email protected]>
  • Loading branch information
1 parent fe8452f commit 99e8615
Show file tree
Hide file tree
Showing 59 changed files with 716 additions and 653 deletions.
2 changes: 1 addition & 1 deletion modules/nativoBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const localPbjsRef = getGlobal()
* Keep track of bid data by keys
* @returns {Object} - Map of bid data that can be referenced by multiple keys
*/
export const BidDataMap = () => {
export function BidDataMap() {
const referenceMap = {}
const bids = []

Expand Down
728 changes: 394 additions & 334 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
"yargs": "^1.3.1"
},
"dependencies": {
"@babel/core": "^7.16.7",
"@babel/core": "^7.24.6",
"@babel/plugin-transform-runtime": "^7.18.9",
"@babel/preset-env": "^7.16.8",
"@babel/runtime": "^7.18.9",
Expand Down
8 changes: 4 additions & 4 deletions test/spec/modules/adagioAnalyticsAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ const AUCTION_ID_ADAGIO = '6fc53663-bde5-427b-ab63-baa9ed296f47'
const AUCTION_ID_CACHE = 'b43d24a0-13d4-406d-8176-3181402bafc4';
const AUCTION_ID_CACHE_ADAGIO = 'a9cae98f-efb5-477e-9259-27350044f8db';

const BID_ADAGIO = Object.assign({}, BID_ADAGIO, {
const BID_ADAGIO = {
bidder: 'adagio',
auctionId: AUCTION_ID,
adUnitCode: '/19968336/header-bid-tag-1',
Expand Down Expand Up @@ -215,9 +215,9 @@ const BID_ADAGIO = Object.assign({}, BID_ADAGIO, {
sid: '42',
e_pba_test: true
}
});
};

const BID_ANOTHER = Object.assign({}, BID_ANOTHER, {
const BID_ANOTHER = {
bidder: 'another',
auctionId: AUCTION_ID,
adUnitCode: '/19968336/header-bid-tag-1',
Expand Down Expand Up @@ -246,7 +246,7 @@ const BID_ANOTHER = Object.assign({}, BID_ANOTHER, {
meta: {
advertiserDomains: ['example.com']
}
});
};

const BID_CACHED = Object.assign({}, BID_ADAGIO, {
auctionId: AUCTION_ID_CACHE,
Expand Down
8 changes: 4 additions & 4 deletions test/spec/modules/adgenerationBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ describe('AdgenerationAdapter', function () {
});

it('should return false when required params are not passed', function () {
let bid = Object.assign({}, bid);
delete bid.params;
bid.params = {};
expect(spec.isBidRequestValid(bid)).to.equal(false);
let invalidBid = Object.assign({}, bid);
delete invalidBid.params;
invalidBid.params = {};
expect(spec.isBidRequestValid(invalidBid)).to.equal(false);
});
});

Expand Down
8 changes: 4 additions & 4 deletions test/spec/modules/admaruBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ describe('Admaru Adapter', function () {
});

it('should return false when required params are not passed', () => {
let bid = Object.assign({}, bid);
delete bid.params;
bid.params = {
let invalidBid = Object.assign({}, bid);
delete invalidBid.params;
invalidBid.params = {
wrong: 'missing pub_id or adspace_id'
};
expect(spec.isBidRequestValid(bid)).to.equal(false);
expect(spec.isBidRequestValid(invalidBid)).to.equal(false);
});
});

Expand Down
16 changes: 8 additions & 8 deletions test/spec/modules/admixerBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,20 +61,20 @@ describe('AdmixerAdapter', function () {
});

it('should return false when required params are not passed', function () {
let bid = Object.assign({}, bid);
delete bid.params;
bid.params = {
let invalidBid = Object.assign({}, bid);
delete invalidBid.params;
invalidBid.params = {
placementId: 0,
};
expect(spec.isBidRequestValid(bid)).to.equal(false);
expect(spec.isBidRequestValid(invalidBid)).to.equal(false);
});
it('should return false when params required by WL are not passed', function () {
let wlBid = Object.assign({}, wlBid);
delete wlBid.params;
wlBid.params = {
let invalidBid = Object.assign({}, wlBid);
delete invalidBid.params;
invalidBid.params = {
clientId: 0,
};
expect(spec.isBidRequestValid(wlBid)).to.equal(false);
expect(spec.isBidRequestValid(invalidBid)).to.equal(false);
});
});

Expand Down
8 changes: 4 additions & 4 deletions test/spec/modules/adoceanBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ describe('AdoceanAdapter', function () {
});

it('should return false when required params are not passed', function () {
const bid = Object.assign({}, bid);
delete bid.params;
bid.params = {
const invalidBid = Object.assign({}, bid);
delete invalidBid.params;
invalidBid.params = {
'masterId': 0
};

expect(spec.isBidRequestValid(bid)).to.equal(false);
expect(spec.isBidRequestValid(invalidBid)).to.equal(false);
});
});

Expand Down
8 changes: 4 additions & 4 deletions test/spec/modules/adrelevantisBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ describe('AdrelevantisAdapter', function () {
});

it('should return false when required params are not passed', function () {
let bid = Object.assign({}, bid);
delete bid.params;
bid.params = {
let invalidBid = Object.assign({}, bid);
delete invalidBid.params;
invalidBid.params = {
'placementId': 0
};
expect(spec.isBidRequestValid(bid)).to.equal(false);
expect(spec.isBidRequestValid(invalidBid)).to.equal(false);
});
});

Expand Down
14 changes: 7 additions & 7 deletions test/spec/modules/adyoulikeBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -619,19 +619,19 @@ describe('Adyoulike Adapter', function () {
});

it('should return false when required params are not passed', function () {
let bid = Object.assign({}, bid);
delete bid.size;
let invalidBid = Object.assign({}, bid);
delete invalidBid.sizes;

expect(!!spec.isBidRequestValid(bid)).to.equal(false);
expect(!!spec.isBidRequestValid(invalidBid)).to.equal(false);
});

it('should return false when required params are not passed', function () {
let bid = Object.assign({}, bid);
delete bid.params;
bid.params = {
let invalidBid = Object.assign({}, bid);
delete invalidBid.params;
invalidBid.params = {
'placement': 0
};
expect(!!spec.isBidRequestValid(bid)).to.equal(false);
expect(!!spec.isBidRequestValid(invalidBid)).to.equal(false);
});
});

Expand Down
8 changes: 4 additions & 4 deletions test/spec/modules/ajaBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ describe('AjaAdapter', function () {
});

it('should return false when required params are not passed', function () {
let bid = Object.assign({}, bid);
delete bid.params;
bid.params = {
let invalidBid = Object.assign({}, bid);
delete invalidBid.params;
invalidBid.params = {
'asi': 0
};
expect(spec.isBidRequestValid(bid)).to.equal(false);
expect(spec.isBidRequestValid(invalidBid)).to.equal(false);
});
});

Expand Down
8 changes: 4 additions & 4 deletions test/spec/modules/aniviewBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ describe('ANIVIEW Bid Adapter Test', function () {
});

it('should return false when required params are not passed', function () {
let bid = Object.assign({}, bid);
delete bid.params;
bid.params = {
let invalidBid = Object.assign({}, bid);
delete invalidBid.params;
invalidBid.params = {
something: 'is wrong'
};
expect(spec.isBidRequestValid(bid)).to.equal(false);
expect(spec.isBidRequestValid(invalidBid)).to.equal(false);
});
});

Expand Down
12 changes: 6 additions & 6 deletions test/spec/modules/appierBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,17 @@ describe('AppierAdapter', function () {
});

it('should return false when required param zoneId is missing', function () {
let bid = Object.assign({}, bid);
bid.params = {};
expect(spec.isBidRequestValid(bid)).to.equal(false);
let invalidBid = Object.assign({}, bid);
invalidBid.params = {};
expect(spec.isBidRequestValid(invalidBid)).to.equal(false);
});

it('should return false when required param zoneId has wrong type', function () {
let bid = Object.assign({}, bid);
bid.params = {
let invalidBid = Object.assign({}, bid);
invalidBid.params = {
'hzid': null
};
expect(spec.isBidRequestValid(bid)).to.equal(false);
expect(spec.isBidRequestValid(invalidBid)).to.equal(false);
});
});

Expand Down
16 changes: 8 additions & 8 deletions test/spec/modules/appnexusBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,21 +75,21 @@ describe('AppNexusAdapter', function () {
});

it('should return false when required params are not passed', function () {
let bid = Object.assign({}, bid);
delete bid.params;
bid.params = {
let invalidBid = Object.assign({}, bid);
delete invalidBid.params;
invalidBid.params = {
'placementId': 0
};
expect(spec.isBidRequestValid(bid)).to.equal(false);
expect(spec.isBidRequestValid(invalidBid)).to.equal(false);
});

it('should return false when required params are not passed', function () {
let bid = Object.assign({}, bid);
delete bid.params;
bid.params = {
let invalidBid = Object.assign({}, bid);
delete invalidBid.params;
invalidBid.params = {
'placement_id': 0
};
expect(spec.isBidRequestValid(bid)).to.equal(false);
expect(spec.isBidRequestValid(invalidBid)).to.equal(false);
});
});

Expand Down
8 changes: 4 additions & 4 deletions test/spec/modules/asealBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ describe('asealBidAdapter', () => {
});

it('should return false when required params are not passed', () => {
let bid = Object.assign({}, bid);
delete bid.params;
bid.params = {};
expect(spec.isBidRequestValid(bid)).to.equal(false);
let invalidBid = Object.assign({}, bid);
delete invalidBid.params;
invalidBid.params = {};
expect(spec.isBidRequestValid(invalidBid)).to.equal(false);
});
});

Expand Down
16 changes: 8 additions & 8 deletions test/spec/modules/audiencerunBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,22 +60,22 @@ describe('AudienceRun bid adapter tests', function () {
});

it('should return true when zoneId is valid', function () {
let bid = Object.assign({}, bid);
delete bid.params;
bid.params = {
let invalidBid = Object.assign({}, bid);
delete invalidBid.params;
invalidBid.params = {
zoneId: '12345abcde',
};

expect(spec.isBidRequestValid(bid)).to.equal(true);
expect(spec.isBidRequestValid(invalidBid)).to.equal(true);
});

it('should return false when required params are not passed', function () {
let bid = Object.assign({}, bid);
delete bid.params;
let invalidBid = Object.assign({}, bid);
delete invalidBid.params;

bid.params = {};
invalidBid.params = {};

expect(spec.isBidRequestValid(bid)).to.equal(false);
expect(spec.isBidRequestValid(invalidBid)).to.equal(false);
});
});

Expand Down
14 changes: 8 additions & 6 deletions test/spec/modules/bedigitechBidAdapter_spec.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { expect } from 'chai';
import { spec } from 'modules/bedigitechBidAdapter.js';
import { newBidder } from 'src/adapters/bidderFactory.js';
import {BANNER} from 'src/mediaTypes.js';
import { BANNER } from 'src/mediaTypes.js';

describe('BedigitechAdapter', function () {
const adapter = newBidder(spec);
Expand Down Expand Up @@ -34,13 +34,13 @@ describe('BedigitechAdapter', function () {
});

it('should return false when required params are not passed', function () {
const bid = Object.assign({}, bid);
delete bid.params;
bid.params = {
const invalidBid = Object.assign({}, bid);
delete invalidBid.params;
invalidBid.params = {
'masterId': 0
};

expect(spec.isBidRequestValid(bid)).to.equal(false);
expect(spec.isBidRequestValid(invalidBid)).to.equal(false);
});
});

Expand Down Expand Up @@ -126,7 +126,9 @@ describe('BedigitechAdapter', function () {
} else if (k === 'meta') {
expect(result[0][k]).to.deep.equal(expectedResponse[0][k]);
} else {
expect(result[0][k]).to.equal(expectedResponse[0][k]);
if (k !== 'requestId') {
expect(result[0][k]).to.equal(expectedResponse[0][k]);
}
}
});
});
Expand Down
8 changes: 4 additions & 4 deletions test/spec/modules/bidglassAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ describe('Bid Glass Adapter', function () {
});

it('should return false when required params are not passed', function () {
let bid = Object.assign({}, bid);
delete bid.params;
bid.params = {};
expect(spec.isBidRequestValid(bid)).to.equal(false);
let invalidBid = Object.assign({}, bid);
delete invalidBid.params;
invalidBid.params = {};
expect(spec.isBidRequestValid(invalidBid)).to.equal(false);
});
});

Expand Down
6 changes: 3 additions & 3 deletions test/spec/modules/c1xBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ describe('C1XAdapter', () => {
});

it('should return false when require params are not passed', function () {
let bid = Object.assign({}, bid);
bid.params = {};
expect(c1xAdapter.isBidRequestValid(bid)).to.equal(false);
let invalidBid = Object.assign({}, bid);
invalidBid.params = {};
expect(c1xAdapter.isBidRequestValid(invalidBid)).to.equal(false);
});
});
describe('buildRequests', () => {
Expand Down
8 changes: 4 additions & 4 deletions test/spec/modules/clickforceBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ describe('ClickforceAdapter', function () {
});

it('should return false when required params are not passed', function () {
let bid = Object.assign({}, bid);
delete bid.params;
bid.params = {
let invalidBid = Object.assign({}, bid);
delete invalidBid.params;
invalidBid.params = {
'someIncorrectParam': 0
};
expect(spec.isBidRequestValid(bid)).to.equal(false);
expect(spec.isBidRequestValid(invalidBid)).to.equal(false);
});
});

Expand Down
Loading

0 comments on commit 99e8615

Please sign in to comment.