Skip to content

Commit

Permalink
Grid placement branch: pull master (#9884)
Browse files Browse the repository at this point in the history
* ZetaGlobalSsp Bid Adapter: provide tagid from params (#9764)

* ZetaGlobalSsp: provide tagid from params

* fix test

---------

Co-authored-by: Surovenko Alexey <[email protected]>
Co-authored-by: Alexey Surovenko <[email protected]>

* AIDEM Bid Adapter: extended app/site parameters on win notice  (#9765)

* AIDEM Bid Adapter

* Added _spec.js

* update

* Fix Navigator in _spec.js

* Removed timeout handler.

* Added publisherId as required bidder params

* moved publisherId into site publisher object

* Added wpar to environment

* Added placementId parameter

* added unit tests for the wpar environment object

* PlacementId is now a required parameter
Added optional rateLimit parameter
Added publisherId, siteId, placementId in win notice payload
Added unit tests

* Revert to optional placementId parameter
Added missing semicolons

* Extended win notice

---------

Co-authored-by: Giovanni Sollazzo <[email protected]>
Co-authored-by: darkstar <[email protected]>

* BrightcomSSP, Brightcom: remove options overide from buildRequests (#9753)

* TTD Bid Adapter: add support for video.plcmt and imp.rwdd (#9762)

* Update ttdBidAdapter.js

* Update ttdBidAdapter_spec.js

* Update ttdBidAdapter_spec.js

* Update ttdBidAdapter_spec.js

* Update ttdBidAdapter_spec.js

* Update ttdBidAdapter.js

* Update ttdBidAdapter_spec.js

* Criteo ID Module: Add error callback for pixel sync call (#9754)

Co-authored-by: v.raybaud <[email protected]>

* PubMatic Bid Adapter: native 1.2 support (#9701)

* Changes for native 1.2 support

* Bug fixes and testacases updation

* Changes to include ext and mimes properties of assets and added condition to read len OR length param value

* Bug fixes

* Bug fix and test cases fix

* Test

* Test

* Update undertoneBidAdapter.js (#9778)

* appnexus bid adapter - add gvlids to aliases (#9777)

* Update gumgumBidAdapter.js (#9779)

* Multiple modules: decouple GVL IDs from storage access control (#9736)

* Core: allow restriction of cookies / localStorage through `bidderSettings.*.storageAllowed`

* Add test cases

* Remove gvlid param from storage manager logic

* Refactor every invocation of `getStorageManager`

* GVL ID registry

* Refactor gdprEnforcement gvlid lookup

* fix lint

* Remove empty file

* Undo #9728 for realVu

* Fix typo

* Multiple bids in one request to Adrino Adserver (#9742)

Co-authored-by: Tomasz Mielcarz <[email protected]>

* size map support (#9772)

* OpenxOrtbAdapter: add back missing params support for coppa and video (#9782)

* Criteo Bid Adapter: Read GPP from ortb2 object (#9775)

Add support of GPP consent string when it is present in ortb2 object.

* vidazoo Bid Adapter: update support of metaData (#9749)

* feat(module): multi size request

* fix getUserSyncs
added tests

* update(module): package-lock.json from master

* feat(module): VidazooBidAdapter - send top query params to server

* feat: support metaData from server response.

* remove forgotten only on spec.

---------

Co-authored-by: Udi Talias <[email protected]>
Co-authored-by: roman <[email protected]>

* Concert Bid Adapter: Enable support for additional userId's (#9780)

* collect EIDs for bid request

* add ad slot positioning to payload

* RPO-2012: Update local storage name-spacing for c_uid (#8)

* Updates c_uid namespacing to be more specific for concert

* fixes unit tests

* remove console.log

* RPO-2012: Add check for shared id (#9)

* Adds check for sharedId

* Updates cookie name

* remove trailing comma

* [RPO-3152] Enable Support for GPP Consent (#12)

* Adds gpp consent integration to concert bid adapter

* Update tests to check for gpp consent string param

* removes user sync endpoint and tests

* updates comment

* cleans up consentAllowsPpid function

* comment fix

* rename variables for clarity

* fixes conditional logic for consent allows function (#13)

* [RPO-3262] Update getUid function to check for pubcid and sharedid (#14)

* Update getUid function to check for pubcid and sharedid

* updates adapter version

---------

Co-authored-by: antoin <[email protected]>
Co-authored-by: Antoin <[email protected]>

* Prebid 7.44.0 release

* Increment version to 7.45.0-pre

* vidoomy adapter: added bidfloor module (#9784)

* Prebid core: fix image assets in converted legacy response (#9752)

* Mgid Adapter: update & refactor (#9751)

* upd
- better support ortb2
- implement getUserSyncs
- some refactoring

* upd
- better support ortb2
- implement getUserSyncs
- some refactoring

* upd

* fix eids import

---------

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

* Various Bid Adapters: point tmax at request object (#9770)

* Removed 'CreateEidsArray' import statements, as well as references to it within corresponding functions. Added references to 'userIdAsEids' property as an alternative

* Revert "Removed 'CreateEidsArray' import statements, as well as references to it within corresponding functions. Added references to 'userIdAsEids' property as an alternative"

This reverts commit f654a5b.

* passed all tests

* passed tests with bluebillywigAdapter

* Impactify bid adapter passed tests

* Mediakeys bid adapter passing tests

* Sharethrough bid adapter passed tests

* Connectad bid adapter passed tests

* Added tests back to expectedEids object, and adjusted userIdAsEids array to reflect changes

* Yieldmo bid adapter passed tests

* Smartadserver bid adapter passed tests

* Removed unnecessary reassignment of bidUserId to eids

* Removed unnecessary reassignment of bidUserId to eids

* Improveddigital bid adapter passed tests

* Yieldmo bid adapter passed tests

* Sovrn bid adapter passed tests

* Ttd bid adapter passed tests

* Refactored adapters to draw tmax values from bidderRequest object and ensured they were passing tests

* Update nexx360BidAdapter.js

* Deleted unrelated ttsBidAdapter file from PR

* Deleted unrelated ttdBidAdapter_spec file from PR

* add back ttd adapter

* add ttd spec flle back

* add new line

---------

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

* OpenXOrtb Bid Adapter: fix multiformat requests (#9790)

* OpenXOrtb: fix multiformat requests

* pay attention to feature tags

* refactor & cleanup

* FreeWheel SSP Bid Adapter: support video context and placement (#9792)

* FreeWheel add floor price

* FreeWheel code update

* FreeWheel-SSP-Adapter: Update to use Vast 4.2 by default

* FreeWheel-SSP-Adapter add userIdAsEids support

* Freewheel-SSP-Adapter add test for eids

* Freewheel SSP Adapter: add prebid version in request

* code cleanup

* FreeWheel SSP Bid Adapter: support video context and placement

* update test

* IX Bid Adapter: refactor build request method and ft improves (#9793)

Co-authored-by: shahin.rahbariasl <[email protected]>

* AMX ID System: allow cookie storage (#9761)

* Update AMXIdSystem logic, allow non-html5 storage, refactor sharedId domainOverride function into library

* Fix failing test, bad invocation of getStorageManager

* Yahoo ConnectId UserID Module: explicit storage management (#9716)

* Explicitly manage storage of ConnectID

* Addressed initial PR feedback

* Documentation update

* Address consent logic issues

* Prevent storage of empty object response from UPS

* Change storage key to match module name.

---------

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

* Ogury Adapter add device density in bid request (#9796)

* Growthcode UserId: Bug fixes & Better Error Catching (#9785)

* Remove the cookie storage for data.

* Clean up error checking on return JSON data.

* Code cleanup

* LiveIntent UserId module: Add support for bidswitch and medianet ids (#9703)

* Add support for bidswitch id

* Add test

* Update liveIntentIdSystem_spec.js

* Fix test

* Add medianet cookie

* Change atype from 508 to 3

* Revert version change in package-lock.json

* Add bidswitch.com and media.net examples

* Customer request: change bidswitch.com to bidswitch.net

---------

Co-authored-by: Viktor Dreiling <[email protected]>
Co-authored-by: Viktor Dreiling <[email protected]>

* Yahoo ConnectId UserID Module: Resolving getStorageManager invocation issue (#9798)

* Resolving getStorageManager invocation issue

* Lint

* MODULE_TYPE -> moduleType

* CORE: disable the requirement for having a url, when enabling renderNow in Renderer (#9769)

* disable the requirement for having a url, when enabling renderNow in the Renderer

* kick off circleci

---------

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

* JW Player Video Adapter: Support multiple setup listeners (#9791)

* supports multiple setup listeners

* adds length check

* Pub-X Bid Adapter: adding page url support (#9746)

* Pub-X Bid Adapter: adding page url support

* Refactored to use site.page

* Update pubxBidAdapter.js

getting circleci to run

---------

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

* Magnite Analytics Adapter : add seat non bid handling (#9696)

* Return all bids

* Adjust findMatch function

* Return all buds unit testing

* Responds to review comments

* Unit test adjustments

* Remove extra line for lint

* minor changes

* doh

---------

Co-authored-by: Robert Ray Martinez III <[email protected]>

* openxBidAdapter: update to OpenRTB adapter (#9794)

* openxBidAdapter: update to OpenRTB adapter

* remove skipped tests

* IVS Bid Adapter: initial adapter release (#9706)

* Add IVS bid adapter

* Fix publisherId in test parameters

* IVS bid adapter: fix tests (#9807)

* Prebid 7.45.0 release

* Increment version to 7.46.0-pre

* Criteo Bid Adapter: Fix invalid deal property name mapping from bidder response (#9808)

Currently, our PBJS adapter code expects to receive a property called 'dealCode' where our bidder emits 'deal' instead.
We've updated our backend to temporary emit both dealCode & deal but long term we'd like to align to use 'deal 'across all integrations.

* Kargo Bid Adapter: Refactor of bid request (#9731)

* pageURL pull from topmostLocation

* Kargo: Support for client hints (#9)

* Starting SUA support

* Kargo: Adding support for client hints

* Adding tests for sua

* Kargo: Update referer logic

* Refactor of Kargo Prebid adapter.

* PR comments addressed.

* Feedback addressed.

* Pr comments addressed.

* Continuing refactor of Kargo Bid adapter.

* Logic adjustment to exclude values when not present. Relying on server defaults.

* Updating unit tests.

* PR feedback addressed.

* Refactoring bid adapter functions.

* PR feedback addressed.

* Additional refactoring.

* Refactoring for each to use Object entries.

* Minor fixes.

* Minor fixes.

* Minor fixes.

* TDID and linting updates

* Conflicts resolved with master.

* Re-adding raw CRB storage (#14)

* Updating shared IDs object name

* Fixing missing ad markup

* Removing package json changes. Fixing unit tests broken by recent changes.

* Linting

* send requestCount even when it is 0 for BTO (#18)

* Reverting package.json change

* Reverting package-lock.json changes

* Cleanup

* Test cleanup

* Test fix

Test fix

All tests fixed

* Adding test for TDID

* Resolving merge issue

---------

Co-authored-by: Neil Flynn <[email protected]>
Co-authored-by: Julian Gan <[email protected]>

* Criteo Bid Adapter: Map device sua field to user ext sua (#9809)

Co-authored-by: v.raybaud <[email protected]>

* Deleted the global.site.cattax field as it is not defined in openrtb 2.5 (#9810)

* kueezRtb Bid Adapter: Add support for passing metaData object from server response. (#9815)

* AdMatic Bid Adapter: badv added (#9820)

* 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

* MinuteMediaPlus Bid Adapter: Add support for passing metaData object from server response. (#9816)

* Nativo Bid Adapter: Adding UserId support (#9767)

* Initial nativoBidAdapter document creation (js, md and spec)

* Fulling working prebid using nativoBidAdapter. Support for GDPR and CCPA in user syncs.

* Added defult size settings based on the largest ad unit. Added response body validation. Added consent to request url qs params.

* Changed bidder endpoint url

* Changed double quotes to single quotes.

* Reverted package-json.lock to remove modifications from PR

* Added optional bidder param 'url' so the ad server can force- match an existing placement

* Lint fix. Added space after if.

* Added new QS param to send various adUnit data to adapter endpopint

* Updated unit test for new QS param

* Added qs param to keep track of ad unit refreshes

* Updated bidMap key default value

* Updated refresh increment logic

* Refactored spread operator for IE11 support

* Updated isBidRequestValid check

* Refactored Object.enties to use Object.keys to fix CircleCI testing errors

* Updated bid mapping key creation to prioritize ad unit code over placementId

* Added filtering by ad, advertiser and campaign.

* Merged master

* Added more robust bidDataMap with multiple key access

* Deduped filer values

* Rolled back package.json

* Duped upstream/master's package.lock file ... not sure how it got changed in the first place

* Small refactor of filterData length check. Removed comparison with 0 since a length value of 0 is already falsy.

* Added bid sizes to request

* Fixed function name in spec. Added unit tests.

* Added priceFloor module support

* Added protection agains empty url parameter

* Changed ntv_url QS param to use referrer.location instead of referrer.page

* Removed testing 'only' flag

* Added ntv_url QS param value validation

* Added userId support

* Added unit tests, refactored for bugs

* Wrapped ajax in try/catch

* Added more unit testing

* Updated eid check for duplicate values. Removed error logging as we no longer need it.

* Removed spec test .only. Fixed unit tests that were breaking.

* Added Prebid version to nativo exchange request

* Removed unused bidder methods

* vidoomy adapter: added userid module (#9795)

* KargoBidAdapter: GPP Support (#9812)

* support VIDEO feature flag in PubMatic bid adapter (#9744)

* Eskimi Bid Adapter: initial adapter release (#9768)

* rewrite the adapter to use ortbConverter

* Eskimi: fix `isBidRequestValid`

* Eskimi: fix request validation tests

---------

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

* Update the Conversant adapter to have source.tid to have auctionId (#9822)

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

* MinuteMediaPlus Bid Adapter: Pass gpid to server. (#9830)

* IX Bid Adapter: Support for Ad unit specific First Party Data (#9821)

* feat: add adunit specific fpd support [PB-1387]

* feat: move duplicate code to its function [PB-1387]

---------

Co-authored-by: shahin.rahbariasl <[email protected]>

* KueezRtb Bid Adapter: Pass gpid to server. (#9831)

* Adnuntius Bid Adapter: Europe endpoint (#9829)

* Adnuntius Bid Adapter: Route traffic to euro-servers if GDPR applies.

* Tests Added to gdpr applies.

* TheMediaGrid: make gridNMBidAdater as alias for gridBidAdapter (#9832)

* TheMediaGrid: make gridNMBidAdater as alias for gridBidAdapter

* TheMediaGrid: fix alias name

* pairId userId submodule: initial commit for pairId submodule (#9662)

* add userId submodule for pairId system

* [PairIdSystem] add logic to fetch from liveramp cookie

* Fix liveramp local storage/cookie key for PairId

* addressed PR review comments

* Build Process: Disallow it.skip (#9799)

* Update realvuAnalyticsAdapter_spec.js

* Update axonixBidAdapter_spec.js

* Update pubCommonId_spec.js

* Update test_index.js

* Update test_index.js

* Update adagioBidAdapter_spec.js

* Update test_index.js

* Update test_index.js

* Update test_index.js

* Update test_index.js

* Update openxOrtbBidAdapter_spec.js

* Update 1plusXRtdProvider_spec.js

* Update pubmaticBidAdapter_spec.js

* Pair ID system: fix storageManager invocation (#9833)

* Yieldmo Adapter: Send GPP data in bid request. (#9460)

* Adding gpp and gpp_sid

adding gpp parameters to Banner and Video bids.

* Sending gdpr data if no gpp

* Refactor

* Bidwatch Analytics Adapter: add of the referer for bid won (#9818)

* Mediasquare Bid Adapter: add of the referer for onBidWon (#9817)

* Mediasquare Bid Adapter: add of the referer for onBidWon

* Mediasquare Bid Adapter: replay test

* vidoomy adapter: sync url changed (#9834)

* Support VIDEO feature flag in AppNexus bid adapter (#9653)

* ortbConverter: support video.plcmt (#9840)

* Documentation: Add FLEDGE aka Protected Audience API examples (#9839)

* Add FLEDGE aka Protected Audience API examples

* Remove alias from pbs example

* Core: fix spurious warnings on `mergeConfig` (#9704)

* Core: fix spurious warnings on `mergeConfig`

* Fix sendAllBid config name

* Prebid 7.46.0 release

* Increment version to 7.47.0-pre

* vidoomy adapter: added block module (#9825)

* Sending empty array instead of string. (#9846)

* RTB house Bid Adapter: fix encoding bug for bid response for native ads (#9850)

* RTB hose Bid Adapter: encode URI corecctly using encodeURI instead of encodeURIComponent

* Missena Bid Adapter: fix alias (#9849)

* add EMTV adapter (#9783)

* Criteo Id Module: ensure all kind of privacy strings are sent to backend (#9845)

Also adding missing gdpr applies flag

* NextMillennium Bd Adapter : add gvlid (#9858)

* add gvlid

* no change

* Prebid 7.47.0 release

* Increment version to 7.48.0-pre

* Adrino Bid Adapter: banner support added (#9860)

* banner support added

* test name change

* not my test failed

* not my test failed

---------

Co-authored-by: Tomasz Mielcarz <[email protected]>

* Criteo Bid Adapter: Map native assets to slot.ext.assets (#9851)

Co-authored-by: v.raybaud <[email protected]>

* Realvu analytics adapter: fix test failures on Edge (#9857)

* Realvu analytics adapter: fix test failures on Edge

* Remove realVu tests

* ORTB2 bcat & badv support + ORTB2 tests (#9871)

* AdMatic Bid Adapter: added Video / Banner params (#9856)

* 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

* Triplelift Bid Adapter: copying ad unit impression data (#9865)

* TL-35335: Cast playbackmethod as array

* TL-36204: Copy tid to imp extension obj

* Added support for entire ortb2Imp obj

* Only setting what exists in ortb2Imp.ext

* Added additional test to check copy of entire ext obj

* Revert "TL-36204: Copy tid to imp extension object"

* TL-36204: Copying ortb2Imp.ext to impression ext obj

* Added edge case logic and additional test

* recos for tid change

* Added spread operator to replace deepClone

---------

Co-authored-by: nllerandi3lift <[email protected]>
Co-authored-by: Nick Llerandi <[email protected]>

* Multiple modules: do not use bidderTimeout as TTL (#9880)

* Multiple modules: do not use bidderTimeout as TTL

* Fix lint

* Grid Bid Adapter: add support for video.plcmt (#9763)

* Update gridBidAdapter.js

* Update gridBidAdapter_spec.js

* Revert "Grid Bid Adapter: add support for video.plcmt (#9763)" (#9882)

This reverts commit 2edd264.

---------

Co-authored-by: asurovenko-zeta <[email protected]>
Co-authored-by: Surovenko Alexey <[email protected]>
Co-authored-by: Alexey Surovenko <[email protected]>
Co-authored-by: AndreaC <[email protected]>
Co-authored-by: Giovanni Sollazzo <[email protected]>
Co-authored-by: darkstar <[email protected]>
Co-authored-by: Alexandru <[email protected]>
Co-authored-by: Vincent <[email protected]>
Co-authored-by: v.raybaud <[email protected]>
Co-authored-by: pm-priyanka-deshmane <[email protected]>
Co-authored-by: jsnellbaker <[email protected]>
Co-authored-by: Demetrio Girardi <[email protected]>
Co-authored-by: TM <[email protected]>
Co-authored-by: Tomasz Mielcarz <[email protected]>
Co-authored-by: Taro FURUKAWA <[email protected]>
Co-authored-by: Brian Schmidt <[email protected]>
Co-authored-by: dzhang-criteo <[email protected]>
Co-authored-by: Saar Amrani <[email protected]>
Co-authored-by: Udi Talias <[email protected]>
Co-authored-by: roman <[email protected]>
Co-authored-by: Brett Bloxom <[email protected]>
Co-authored-by: antoin <[email protected]>
Co-authored-by: Antoin <[email protected]>
Co-authored-by: Prebid.js automated release <[email protected]>
Co-authored-by: Nisar Thadathil <[email protected]>
Co-authored-by: JulieLorin <[email protected]>
Co-authored-by: Gaudeamus <[email protected]>
Co-authored-by: gaudeamus <[email protected]>
Co-authored-by: Justin Quinn <[email protected]>
Co-authored-by: Chris Huie <[email protected]>
Co-authored-by: xwang202 <[email protected]>
Co-authored-by: shahinrahbariasl <[email protected]>
Co-authored-by: shahin.rahbariasl <[email protected]>
Co-authored-by: Nick Jacob <[email protected]>
Co-authored-by: Samuel Adu <[email protected]>
Co-authored-by: slimkrazy <[email protected]>
Co-authored-by: Jonathan Nadarajah <[email protected]>
Co-authored-by: southern-growthcode <[email protected]>
Co-authored-by: Viktor Dreiling <[email protected]>
Co-authored-by: Viktor Dreiling <[email protected]>
Co-authored-by: Viktor Dreiling <[email protected]>
Co-authored-by: Jeremy Sadwith <[email protected]>
Co-authored-by: olafbuitelaar <[email protected]>
Co-authored-by: Karim Mourra <[email protected]>
Co-authored-by: yuki <[email protected]>
Co-authored-by: Andrew Slagle <[email protected]>
Co-authored-by: Robert Ray Martinez III <[email protected]>
Co-authored-by: ivs-mark <[email protected]>
Co-authored-by: Léonard Labat <[email protected]>
Co-authored-by: Neil Flynn <[email protected]>
Co-authored-by: Julian Gan <[email protected]>
Co-authored-by: Antti Ylitepsa <[email protected]>
Co-authored-by: Fatih Kaya <[email protected]>
Co-authored-by: jsfledd <[email protected]>
Co-authored-by: Matt Crute <[email protected]>
Co-authored-by: Mikołaj Robakowski <[email protected]>
Co-authored-by: Sekandar <[email protected]>
Co-authored-by: johnwier <[email protected]>
Co-authored-by: johwier <[email protected]>
Co-authored-by: Mikael Lundin <[email protected]>
Co-authored-by: TheMediaGrid <[email protected]>
Co-authored-by: congdu-kun <[email protected]>
Co-authored-by: Nayan Savla <[email protected]>
Co-authored-by: Alain Cajuste <[email protected]>
Co-authored-by: Laurentiu Badea <[email protected]>
Co-authored-by: Nima Sarayan <[email protected]>
Co-authored-by: kmr <[email protected]>
Co-authored-by: Petre Damoc <[email protected]>
Co-authored-by: EngageMediaHB <[email protected]>
Co-authored-by: JacobKlein26 <[email protected]>
Co-authored-by: Piotr Jaworski <[email protected]>
Co-authored-by: Patrick Loughrey <[email protected]>
Co-authored-by: nllerandi3lift <[email protected]>
Co-authored-by: Nick Llerandi <[email protected]>
  • Loading branch information
Show file tree
Hide file tree
Showing 269 changed files with 9,818 additions and 7,803 deletions.
103 changes: 103 additions & 0 deletions integrationExamples/gpt/fledge_example.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
<html>
<head>
<!--
FLEDGE (Protected Audience API) configuration with GPT and FLEDGE-supporting adapter
gulp serve --modules=fledgeForGpt,openxBidAdapter
-->
<script async src="../../build/dev/prebid.js"></script>
<script async src="https://www.googletagservices.com/tag/js/gpt.js"></script>
<script>
var FAILSAFE_TIMEOUT = 3000;
var PREBID_TIMEOUT = 1500;

var pbjs = pbjs || {};
pbjs.que = pbjs.que || [];

var googletag = googletag || {};
googletag.cmd = googletag.cmd || [];

googletag.cmd.push(function() {
googletag.pubads().disableInitialLoad();
});

var adUnits = [{
code: 'div-gpt-ad-1460505748561-0',
mediaTypes: {
banner: {
sizes: [[300, 250]]
}
},
bids: [{
bidder: 'openx',
params: {
platform: '8869ec2c-9d3f-4f16-9d2f-49aaab8978fb',
unit: '111111'
}
}],
ortb2Imp: {
ext: {
ae: 1
}
}
}];

pbjs.que.push(function() {
pbjs.setConfig({
fledgeForGpt: {
enabled: true
}
});

pbjs.setBidderConfig({
bidders: ['openx'],
config: {
fledgeEnabled: true
}
});

pbjs.addAdUnits(adUnits);

pbjs.requestBids({
bidsBackHandler: sendAdserverRequest,
timeout: PREBID_TIMEOUT
});

function sendAdserverRequest() {
if (pbjs.adserverRequestSent) return;
pbjs.adserverRequestSent = true;
googletag.cmd.push(function() {
pbjs.que.push(function() {
pbjs.setTargetingForGPTAsync();
googletag.pubads().refresh();
});
});
}

setTimeout(function() {
sendAdserverRequest();
}, FAILSAFE_TIMEOUT);
});

googletag.cmd.push(function() {
googletag
.defineSlot('/19968336/header-bid-tag-0', adUnits[0].mediaTypes.banner.sizes, 'div-gpt-ad-1460505748561-0')
.addService(googletag.pubads());

googletag.pubads().enableSingleRequest();
googletag.enableServices();
});
</script>
</head>

<body>
<h2>Prebid.js FLEDGE+GPT Example</h2>

<h5>Div-1</h5>
<div id='div-gpt-ad-1460505748561-0'>
<script type='text/javascript'>
googletag.cmd.push(function() { googletag.display('div-gpt-ad-1460505748561-0'); });
</script>
</div>
</body>
</html>
111 changes: 111 additions & 0 deletions integrationExamples/gpt/prebidServer_fledge_example.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
<html>
<head>
<!--
FLEDGE (Protected Audience API) configuration with GPT and Prebid-Server
gulp serve --modules=fledgeForGpt,prebidServerBidAdapter
-->
<script async src="../../build/dev/prebid.js"></script>
<script async src="https://www.googletagservices.com/tag/js/gpt.js"></script>
<script>
var FAILSAFE_TIMEOUT = 3000;
var PREBID_TIMEOUT = 1500;

var pbjs = pbjs || {};
pbjs.que = pbjs.que || [];

var googletag = googletag || {};
googletag.cmd = googletag.cmd || [];

googletag.cmd.push(function() {
googletag.pubads().disableInitialLoad();
});

var adUnits = [{
code: 'div-gpt-ad-1460505748561-0',
mediaTypes: {
banner: {
sizes: [[300, 250]]
}
},
bids: [{
bidder: 'openx',
params: {
platform: '8869ec2c-9d3f-4f16-9d2f-49aaab8978fb',
unit: '111111'
}
}],
ortb2Imp: {
ext: {
ae: 1
}
}
}];

pbjs.que.push(function() {
pbjs.setConfig({
fledgeForGpt: {
enabled: true
},
s2sConfig: [{
accountId : '1',
enabled : true,
defaultVendor: 'appnexus',
bidders : ['openx'],
timeout : 1500,
adapter : 'prebidServer'
}]
});

pbjs.setBidderConfig({
bidders: ['openx'],
config: {
fledgeEnabled: true
}
});

pbjs.addAdUnits(adUnits);

pbjs.requestBids({
bidsBackHandler: sendAdserverRequest,
timeout: PREBID_TIMEOUT
});

function sendAdserverRequest() {
if (pbjs.adserverRequestSent) return;
pbjs.adserverRequestSent = true;
googletag.cmd.push(function() {
pbjs.que.push(function() {
pbjs.setTargetingForGPTAsync();
googletag.pubads().refresh();
});
});
}

setTimeout(function() {
sendAdserverRequest();
}, FAILSAFE_TIMEOUT);
});

googletag.cmd.push(function() {
googletag
.defineSlot('/19968336/header-bid-tag-0', adUnits[0].mediaTypes.banner.sizes, 'div-gpt-ad-1460505748561-0')
.addService(googletag.pubads());

googletag.pubads().enableSingleRequest();
googletag.enableServices();
});
</script>
</head>

<body>
<h2>Prebid.js FLEDGE+GPT Example</h2>

<h5>Div-1</h5>
<div id='div-gpt-ad-1460505748561-0'>
<script type='text/javascript'>
googletag.cmd.push(function() { googletag.display('div-gpt-ad-1460505748561-0'); });
</script>
</div>
</body>
</html>
39 changes: 39 additions & 0 deletions libraries/domainOverrideToRootDomain/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/**
* Create a domainOverride callback for an ID module, closing over
* an instance of StorageManager.
*
* The domainOverride function, given document.domain, will return
* the topmost domain we are able to set a cookie on. For example,
* given subdomain.example.com, it would return example.com.
*
* @param {StorageManager} storage e.g. from getStorageManager()
* @param {string} moduleName the name of the module using this function
* @returns {function(): string}
*/
export function domainOverrideToRootDomain(storage, moduleName) {
return function() {
const domainElements = document.domain.split('.');
const cookieName = `_gd${Date.now()}_${moduleName}`;

for (let i = 0, topDomain, testCookie; i < domainElements.length; i++) {
const nextDomain = domainElements.slice(i).join('.');

// write test cookie
storage.setCookie(cookieName, '1', undefined, undefined, nextDomain);

// read test cookie to verify domain was valid
testCookie = storage.getCookie(cookieName);

// delete test cookie
storage.setCookie(cookieName, '', 'Thu, 01 Jan 1970 00:00:01 GMT', undefined, nextDomain);

if (testCookie === '1') {
// cookie was written successfully using test domain so the topDomain is updated
topDomain = nextDomain;
} else {
// cookie failed to write using test domain so exit by returning the topDomain
return topDomain;
}
}
}
}
1 change: 1 addition & 0 deletions libraries/ortbConverter/processors/video.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {sizesToFormat} from '../lib/sizes.js';
const ORTB_VIDEO_PARAMS = new Set([
'pos',
'placement',
'plcmt',
'api',
'mimes',
'protocols',
Expand Down
9 changes: 4 additions & 5 deletions modules/ablidaBidAdapter.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { triggerPixel } from '../src/utils.js';
import {config} from '../src/config.js';
import {triggerPixel} from '../src/utils.js';
import {registerBidder} from '../src/adapters/bidderFactory.js';
import { BANNER, NATIVE, VIDEO } from '../src/mediaTypes.js';
import { convertOrtbRequestToProprietaryNative } from '../src/native.js';
import {BANNER, NATIVE, VIDEO} from '../src/mediaTypes.js';
import {convertOrtbRequestToProprietaryNative} from '../src/native.js';

const BIDDER_CODE = 'ablida';
const ENDPOINT_URL = 'https://bidder.ablida.net/prebid';
Expand Down Expand Up @@ -77,7 +76,7 @@ export const spec = {
const response = serverResponse.body;

response.forEach(function(bid) {
bid.ttl = config.getConfig('_bidderTimeout');
bid.ttl = 60
bidResponses.push(bid);
});
return bidResponses;
Expand Down
2 changes: 1 addition & 1 deletion modules/acuityAdsBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export const spec = {
coppa: config.getConfig('coppa') === true ? 1 : 0,
ccpa: bidderRequest.uspConsent || undefined,
gdpr: bidderRequest.gdprConsent || undefined,
tmax: config.getConfig('bidderTimeout')
tmax: bidderRequest.timeout
};

const len = validBidRequests.length;
Expand Down
2 changes: 1 addition & 1 deletion modules/adagioBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const SUPPORTED_MEDIA_TYPES = [BANNER, NATIVE, VIDEO];
const ADAGIO_TAG_URL = 'https://script.4dex.io/localstore.js';
const ADAGIO_LOCALSTORAGE_KEY = 'adagioScript';
const GVLID = 617;
export const storage = getStorageManager({gvlid: GVLID, bidderCode: BIDDER_CODE});
export const storage = getStorageManager({bidderCode: BIDDER_CODE});
export const RENDERER_URL = 'https://script.4dex.io/outstream-player.js';
const MAX_SESS_DURATION = 30 * 60 * 1000;
const ADAGIO_PUBKEY = 'AL16XT44Sfp+8SHVF1UdC7hydPSMVLMhsYknKDdwqq+0ToDSJrP0+Qh0ki9JJI2uYm/6VEYo8TJED9WfMkiJ4vf02CW3RvSWwc35bif2SK1L8Nn/GfFYr/2/GG/Rm0vUsv+vBHky6nuuYls20Og0HDhMgaOlXoQ/cxMuiy5QSktp';
Expand Down
6 changes: 4 additions & 2 deletions modules/adkernelAdnAnalyticsAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@ import { logError, parseUrl, _each } from '../src/utils.js';
import {ajax} from '../src/ajax.js';
import {getStorageManager} from '../src/storageManager.js';
import {config} from '../src/config.js';
import {MODULE_TYPE_ANALYTICS} from '../src/activities/modules.js';

const MODULE_CODE = 'adkernelAdn';
const GVLID = 14;
const ANALYTICS_VERSION = '1.0.2';
const DEFAULT_QUEUE_TIMEOUT = 4000;
const DEFAULT_HOST = 'tag.adkernel.com';
const storageObj = getStorageManager({gvlid: GVLID});
const storageObj = getStorageManager({moduleType: MODULE_TYPE_ANALYTICS, moduleName: MODULE_CODE});

const ADK_HB_EVENTS = {
AUCTION_INIT: 'auctionInit',
Expand Down Expand Up @@ -104,7 +106,7 @@ analyticsAdapter.enableAnalytics = (config) => {

adapterManager.registerAnalyticsAdapter({
adapter: analyticsAdapter,
code: 'adkernelAdn',
code: MODULE_CODE,
gvlid: GVLID
});

Expand Down
Loading

0 comments on commit dafcd5b

Please sign in to comment.