Skip to content

Commit

Permalink
9.0 upstream (#11735)
Browse files Browse the repository at this point in the history
* 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 <chris.corbo@indexexchange.com>

* 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 <adtech@graysonsky.com>

* 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 <victor.banudz@smart-hub.io>

* 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 <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>

* 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 <patmmccann@gmail.com>

* 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

* 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 <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>

* 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 <144369215+aivanov-zeta@users.noreply.github.com>
Co-authored-by: Love Sharma <love.sharma@indexexchange.com>

* Update package-lock.json

* Update package-lock.json

---------

Co-authored-by: MartinGumGum <109325501+MartinGumGum@users.noreply.github.com>
Co-authored-by: ccorbo <ccorbo2013@gmail.com>
Co-authored-by: Chris Corbo <chris.corbo@indexexchange.com>
Co-authored-by: Demetrio Girardi <dgirardi@prebid.org>
Co-authored-by: e-volution-tech <61746103+e-volution-tech@users.noreply.github.com>
Co-authored-by: ops-co <159886704+ops-co@users.noreply.github.com>
Co-authored-by: adtech-sky <adtech@graysonsky.com>
Co-authored-by: Philip Watson <philip.watson@adscale.co.nz>
Co-authored-by: Fatih Kaya <fatih.kaya.84@gmail.com>
Co-authored-by: SmartHubSolutions <87376145+SmartHubSolutions@users.noreply.github.com>
Co-authored-by: Victor <victor.banudz@smart-hub.io>
Co-authored-by: vladi-mmg <vladi@m-m-g.com>
Co-authored-by: Gonca Karadeniz <49647923+Goncakkd@users.noreply.github.com>
Co-authored-by: Carlos Felix <carlos.felix@33across.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: Karim Mourra <karim@jwplayer.com>
Co-authored-by: Léonard Labat <le.labat@criteo.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>
Co-authored-by: Brian Schaaf <brian@pubwise.io>
Co-authored-by: Chris Huie <phoenixtechnerd@gmail.com>
Co-authored-by: Love Sharma <sharmak.love@gmail.com>
Co-authored-by: aivanov-zeta <144369215+aivanov-zeta@users.noreply.github.com>
Co-authored-by: Love Sharma <love.sharma@indexexchange.com>
  • Loading branch information
1 parent 71150a8 commit fe0d8bb
Show file tree
Hide file tree
Showing 201 changed files with 5,160 additions and 4,969 deletions.
1 change: 0 additions & 1 deletion allowedModules.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@

module.exports = {
'modules': [
'criteo-direct-rsa-validate',
'crypto-js',
'live-connect' // Maintained by LiveIntent : https://github.com/liveintent-berlin/live-connect/
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<!--
FLEDGE (Protected Audience API) configuration with GPT and FLEDGE-supporting adapter
gulp serve --modules=fledgeForGpt,openxBidAdapter
gulp serve --modules=paapiForGpt,openxBidAdapter
-->
<script async src="../../build/dev/prebid.js"></script>
<script async src="https://www.googletagservices.com/tag/js/gpt.js"></script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<!--
FLEDGE (Protected Audience API) configuration with GPT and Prebid-Server
gulp serve --modules=fledgeForGpt,prebidServerBidAdapter
gulp serve --modules=paapiForGpt,prebidServerBidAdapter
-->
<script async src="../../build/dev/prebid.js"></script>
<script async src="https://www.googletagservices.com/tag/js/gpt.js"></script>
Expand Down Expand Up @@ -44,8 +44,8 @@

pbjs.que.push(function() {
pbjs.setConfig({
fledgeForGpt: {
enabled: true
paapi: {
enabled: true,
},
s2sConfig: [{
accountId : '1',
Expand All @@ -57,13 +57,6 @@
}]
});

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

pbjs.addAdUnits(adUnits);

pbjs.requestBids({
Expand Down
188 changes: 0 additions & 188 deletions integrationExamples/gpt/top-level-paapi/tl_paapi_example.html

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@
waitForIt: true,
params: {
// Note: the following media Ids are placeholders and should be replaced with your Ids.
mediaIDs: ['abc', 'def', 'ghi', 'jkl']
mediaIDs: ['abc', 'def', 'ghi', 'jkl'],
overrideContentId: 'always',
overrideContentUrl: 'always',
overrideContentTitle: 'always',
overrideContentDescription: 'always'
}
}]
}
Expand Down
134 changes: 134 additions & 0 deletions integrationExamples/top-level-paapi/gam-contextual.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
<html xmlns="http://www.w3.org/1999/html">
<head>
<script src="shared/example-setup.js"></script>
<script src="../../build/dev/prebid.js"></script>

<script async src="https://securepubads.g.doubleclick.net/tag/js/gpt.js"></script>

<script>
var FAILSAFE_TIMEOUT = 3300;
var PREBID_TIMEOUT = 3000;
var adUnits = [{
code: 'div-1',
mediaTypes: {
banner: {
sizes: [[300, 250]],
}
},
ortb2Imp: {
ext: {
ae: 1
}
},
bids: [
{
bidder: 'optable',
params: {
site: 'daa30ba1-5613-4a2c-b7f0-34e2c033202a'
},
},
{
bidder: 'contextual',
params: {
site: 'daa30ba1-5613-4a2c-b7f0-34e2c033202a'
}
}
],
}
]
;

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

var googletag = googletag || {};
googletag.cmd = googletag.cmd || [];
googletag.cmd.push(function () {
googletag.pubads().disableInitialLoad();
});

pbjs.que.push(function () {
pbjs.setConfig({
debug: true,
paapi: {
enabled: true,
gpt: {
autoconfig: false
},
topLevelSeller: {
auctionConfig: {
seller: window.location.origin,
decisionLogicURL: new URL('shared/decisionLogic.js', window.location).toString(),
},
overrideWinner: true
}
},
});

pbjs.addAdUnits(adUnits);
requestBids();
});

function requestBids() {
pbjs.adserverRequestSent = false;
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('/41758329/integ-test', [[300, 250], [300, 600]], 'div-1').setTargeting('creative', 'banner-safeframe').addService(googletag.pubads());

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

<body>
<h2>GAM contextual + Publisher as top level PAAPI seller example</h2>

<p>
This example starts PAAPI auctions at the same time as GAM targeting. The flow is
similar to a typical GAM auction, but if Prebid wins, and got a
PAAPI bid, it is rendered instead of the contextual bid.
</p>
<div id="controls">
<script>addExampleControls(requestBids)</script>
</div>
<h5>Div-1</h5>
<div id="div-1" style='min-width: 300px; min-height: 250px;'>
<script type='text/javascript'>
googletag.cmd.push(function () {
googletag.display('div-1');
});
</script>
</div>
<div style="margin-top: 20px">
<h2>Instructions</h2>
<p>Start local server with:</p>
<code>gulp serve-fast --https</code>
<p>Chrome flags:</p>
<code>--enable-features=CookieDeprecationFacilitatedTesting:label/treatment_1.2/force_eligible/true
--privacy-sandbox-enrollment-overrides=https://localhost:9999</code>
<p>Join interest group at <a href="https://www.optable.co/">https://www.optable.co/</a>
</p>
</div>
</body>
</html>
Loading

0 comments on commit fe0d8bb

Please sign in to comment.