Skip to content

Commit

Permalink
ENG-6433 - 4.29.0 (#106)
Browse files Browse the repository at this point in the history
* Increment pre version

* Fix astraoneBidAdapter (prebid#6230)

* Fix astraoneBidAdapter

* Fix examples; update astraoneBidAdapter description

* Fix astraoneBidAdapter_spec

* Remove integration examples

* Rename gbt to gpt

* update banner ttl (prebid#6228)

* browsi: updating test parameters (prebid#6048)

* SpotX Bid Adapter: default to 4/3 aspect ratio when response doesn't contain w or h (prebid#6159)

* Default to 4/3 aspect ratio when response doesn't contain w or h

* SpotX bid adapter: reorder tests and remove extra assertions

* Extended ID permissions supported by bidder (prebid#6112)

* User id bidder permission scheme

* styling

* prebidServer support

* -

* fix

* prebidServerBidAdapter take eidPermissions directly from userId module

* -

* unit tests

* -

* -

* update

* -

* -

* changed pbjs_bidders to pbjsBidders

* changed pbjsBidders to bidders
ext.prebid.data.eidPermissions to ext.prebid.data.eidpermissions

* rerun circleci

* rerun circleci

* omitting eidPermission entry if 'bidders' is not configured

Co-authored-by: myerkovich <myerkovich@rubiconproject.com>
Co-authored-by: Marko Yerkovich <marko_yerkovich@MacBook-Pro-Marko.local>

* Relevant Yield analytics adapter (prebid#6195)

* Pubmatic:  fix issue where using an adUnit outstream renderer throws an error (prebid#6152)

* Malltv Bid Adapter : added data object as a param (prebid#6232)

* Updated malltv adapter

* Updated markdown

* Added test for malltvBidAdapter

* support setting coopSync in s2sConfig (prebid#6213)

Co-authored-by: Mark Monday <mmonday@rubiconproject.com>

* Revert "support setting coopSync in s2sConfig (prebid#6213)" (prebid#6249)

This reverts commit 25dd35c.

* pbsBidAdapter: change order of client syncs (prebid#6248)

* pbsBidAdapter: change order cookie_syncs

Prebid Server places cookie-sync URLs in a specific order. PBJS was pulling them off in reverse order.

* moving comment

* reverting coopSync

* pass a flag back to ID5 servers if abTesting was enabled by the publisher for monitoring usage of the feature (prebid#6170)

* appneuxs Bid Adapter - add support for identitylink userId (prebid#6245)

* Update britepoolIdSystem.md (prebid#6254)

Eliot from Britepool says you can set just the api key without any params (eg ssid or hash)

* UNICORN Adapter - accept multiple formats (prebid#6255)

* enable multiple formats
add version

* add banner w/h

* fix w/h & spec

* ATS-analytics - add comment clarifying ownership of atsAnalytics (prebid#6257)

* [ParrableIdSystem] Ensure base64 payload is url-safe (prebid#6258)

* Added url safe base64 encoding

* Added url safe base64 encoding test

Co-authored-by: Victor <victorigualada@gmail.com>

* Keywords + Screen resolution + CPU Core (prebid#6259)

Co-authored-by: sgimenez <sergi.gimenez@richaudience.com>

* Rubicon Analytics: Fire event once gptSlots render (prebid#6241)

* Once all gam slots are back fire event

* push to cmd queue

* New dimension for tracking name of the matching adUnit pattern (prebid#6252)

* Adhese Bid Adapter: Per adunit targets (prebid#6256)

* adpod category support test

* Revert "adpod category support test"

* Gjirafa Bid Adapter: added data object as a param (prebid#6231)

* Added data parameter to gjirafaBidAdapter

* Updated gjirafaBidAdapter markdown

* Added test for gjirafaBidAdapter

* Fix a TypeError when message event source is not available (prebid#6224)

* fix broken tests due to "encoded" base64 logic (prebid#6268)

* Adkernel Bid Adapter: stringads alias added (prebid#6262)

* Adkernel: stringads alias

* Revert "Extended ID permissions supported by bidder (prebid#6112)" (prebid#6269)

This reverts commit a926dee.

* Prebid 4.25.0 Release

* Increment pre version

* smartxBidAdapter: new Feature - Made Out-Stream Player configurable (prebid#6239)

* Add smartclipBidAdapter

* smartxBidAdapter.js - removed unused variables, removed debug, added window before the outstream related functions

* - made outstream player configurable

* remove wrong named files

* camelcase

* fix

Co-authored-by: smartclip AdTechnology <adtech@smartclip.com>
Co-authored-by: Gino Cirlini <adtech@smartclip.tv>

* Idl1 (prebid#6242)

* Renaming idLibrary to idImportLibrary

* Renaming idLibrary to idImportLibrary

Co-authored-by: skocheri <skocheri@rubiconproject.com>

* Add the trade desk gvlid (prebid#6263)

UnifiedId only works with a vendor exception in the gdpr enforcement module.
However this is not okay as the unifiedId matching endpoint doesn't take the consent into account and
cookies are being dropped even without consent.

* pick up wrapper family detail (prebid#6272)

* Add user sync (prebid#6244)

* initial

* fix

* remove redundant language mod, use player sizes in video traff

* test modify

* fix

* Adding Tests

* add keywords param

* log

* log

* log

* fix

* add idl

* add idl

* fix test

* lint

* lint

* fix

* lint

* lint

* lint

* lint

* add sync

* fix

Co-authored-by: Aigolkin1991 <Aigolkin1991@gmail.com>
Co-authored-by: Aiholkin <artem.iholkin@smartyads.com>

* Zeotap id plus gvlid (prebid#6260)

* Add gvlid for ZeotapIdPlus module

* Pass gvlid and module name to storage manager

* add testcases to zeotapIdPlusIdSystem

* remove unwanted code

* adWMG adapter: add new parameter, fix minor bugs (prebid#6265)

* Support floorCPM parameter, fix some minor bugs

* fix space-in-parens circleci error

* example fix

* clean usersync URL

* spaces

* spaces

* add new unit tests, compatibility with IE11

* remove logInfo

Co-authored-by: Mikhail Dykun <m.dykun@wmgroup.us>

* [ParrableIdSystem] Supply iframe state to backend (prebid#6278)

* Add iframe detection

* Remove forgotten .only

Co-authored-by: Victor <victorigualada@gmail.com>

* Bid Viewability Module (prebid#6206)

* introducing a new event, bidViewable

* new module: bidViewability

* details in bidViewability.md

* disable webdriver tests in trionBidAdapter spec (prebid#6280)

* [ParrableIdSystem] Supply Prebid library version to backend (prebid#6279)

* Add prebid version to data object

* Renamed prebid to prebidVersion

* Fix missing coma

Co-authored-by: Victor <victorigualada@gmail.com>

* [ParrableIdSystem] Accept list of partners as an array or string (prebid#6277)

* Accept partners as an array and fallthrough partner if no partners

* Ensure that Parrable data object decodes with urlsafe base64 in tests

* Fixed tests caused by typo in config property

* Fix failing test due to accessing unexisting property 'partner'

Co-authored-by: Victor <victorigualada@gmail.com>

* Rubicon Bid Adapter FPD Update (prebid#6122)

* Update to consolidate applying FPD to both banner and video requests. FPD will be merged using global defined FPD, ad unit FPD, and rubicon bidder param FPD. Validation logic with warning logs added

* Refectored last push to:
1) Correct keywords bug
2) Revise error which looked for FPD in (user/context).ext.data as opposed to (user/context).data
3) General code cleanup

* Consolidated other FPD data logic into new function

* 1. Update to move pbadslot and adserver data into imp[] as opposed to parent.
2. Update to convert keywords passed through RP params to string if array found

* Removed unnecessary conditional

* Changed conditional to check for undefined type

* Update to consolidate several lines of duplicate code into one location

* ID5 User Id Module: update a/b testing to be user based not request based (prebid#6281)

* convert A/B testing to be user-based, rather than request-based

* update docs to say a/b testing is user based, not request based

* Shared ID gdpr support (prebid#6275)

* SharedId gdpr support

* Reverted commented locally failing tests

* Lemma:set mediaType key value (prebid#6006)

* lemmaBidAdapter.js

Added lemma bid adapter file

* lemmaBidAdapter.md

Added lemma bid adapter md file

* lemmaBidAdapter_spec.js

Added lemma bid adapter test spec file

* Update lemmaBidAdapter.js

Fixed automated code review alert comparison between inconvertible types

* Update lemmaBidAdapter.js

Fixed review changes

* Update lemmaBidAdapter.md

Correct parameter value.

* Update lemmaBidAdapter.js

Lemma Bid Adapter - v3.0 compliance

* Update lemmaBidAdapter_spec.js

Lemma Bid Adapter - v3.0 compliance

* Update lemmaBidAdapter.md

Lemma Bid Adapter - v3.0 compliance

* Update lemmaBidAdapter.js

Added user sync support into bid adapter.

* updated include modules file extension.

updated include modules js file extension.

* Update lemmaBidAdapter_spec.js

Added unit test for user sync feature.

* Update lemmaBidAdapter.js

Fixed format error.

* Update lemmaBidAdapter_spec.js

Fixed format error and typo error.

* Set mediaType key value into bid object

Set mediaType key value into the bid object.

* Update lemmaBidAdapter.js

remove duplicate function

* Update lemmaBidAdapter.js

Remove non supported code.

* Update lemmaBidAdapter_spec.js

Remove GDPR test cases.

* added support for addtlConsent (prebid#6005)

Co-authored-by: Ix-Prebid-Support <ix-prebid-support@indexexchange.com>

* Add bid adapter for Missena (prebid#6247)

* adds support for getFloor of video mediaTypes

* adds test for calling getFloor with correct mediaType

* checks that _getFloor converts string floors to float

* Add bid adapter for Missena

* Use publisher demo token in tests

* Add Missena global vendor ID to spec

* Use apiKey in the current bidRequest

* Add referer info to payload

Co-authored-by: Nick Llerandi <nllerandi@triplelift.com>
Co-authored-by: Brandon Ling <51931757+blingster7@users.noreply.github.com>
Co-authored-by: Brandon Ling <bling@triplelift.com>

* Gulp test file example added in readme (prebid#6287)

* Sharethrough: Add support for ID5, Shared ID, and Live Intent ID (prebid#6261)

* Update prebid adapter universal ids to include ID5, SharedID, and LiveIntent ID.

[#176447070](https://www.pivotaltracker.com/story/show/176447070)

Co-authored-by: Mathieu Pheulpin <mpheulpin@sharethrough.com>

* Addressing review

[#176447070]

* Quick rewrite

[#176447070]

* Address ID5 review, forward linkType to adserver

* Reformatting SharedID to align with ID5

Co-authored-by: Mathieu Pheulpin <mpheulpin@sharethrough.com>

* SmartAdServer Bid Adapter: image sync and noAd (prebid#6236)

* SIM-889 Now we have image based sync

* SIM-889 Added test to check noad and image sync

* SIM-889 Fixing indenting issues

* Add client Alias Adkernel (prebid#6291)

Adding "bcm" alias to Adkernel adapter

* [ParrableIdSystem] Add GVLID and handle TC Consent data (prebid#6283)

* Added GDPR support

* Remove forgotten .only

Co-authored-by: Victor <victorigualada@gmail.com>

* 4.26.0 release

* 4.27.0-pre

* Updated data mapping of winning bid and auction logs in pubxai analytics adapter (prebid#6285)

Co-authored-by: Phaneendra Hegde <phaneendra.hegde@gmail.com>

* Grid Bid Adapter: Added video protocols to the ad request (prebid#6299)

* Rubicon Bid Adapter: updated transactionId to auctionId for OpenRTB (prebid#6298)

* Fix for Issue 6117: Added Module Name in Build to Comments (prebid#6297)

* map tripleliftBidAdapter.js tl_source to bid.meta.mediaType (prebid#6303)

* Tappx Bid Adapter: new bidder adapter added (prebid#6233)

* ADD: tappx bid adapter

* FIX: replace .includes by .indexOf

* UPDATE: Expand the test coverage

* FIX: format spacing tests

* FIX: get auctionId from validBidRequests

* UPDATE: add bannerMediaType tablet sizes

* FIX: get timeout from bidderRequest.timeout

* UPDATE: replace the way to get the hostname

* UPDATE: adding  support multiple bid requests in a single call

* UPDATE: remove hardcoded test payload param

Co-authored-by: marc_tappx <marc@tappx.com>

* Add Native ad capability to AdYouLike adapter (prebid#6198)

* Remove useless bidderCode in bid response

* send all the available sizes in the bid request

* Use the banner sizes if given

* avoid compatibility issue with old bid format

* ad iframe and publisher domain paramters to bid requests

* add publisher domain info in ad request

* add a check in unit tests for publisherDomain

* encode uri components

* add native assets support

* add native information to ad request

* fix native ad parsing

* fix nativ condition to set mediatype

* fix image access and add trackers

* fix and add unit test on native ad

* update md file

* remove usage of URLSearchParams

* allox pure native ad with no adm provided

Co-authored-by: Guillaume <guiandouard@gmail.com>

* Update targeting.js to fix TTL buffer arithmetic (prebid#6300)

* Permutive RTD submodule (prebid#6290)

* Add Permutive RTD module

* set demo data in LS for test page

* fix linter issues

* reduce timeout on example page

* decrease sample timeouts

* rename targeting to segments

* Adtelligent Bid Adapter: Add Navelix as alias (prebid#6306)

* Navelix bidder

* gvlID

* Pubmatic add warning for non-string adSlots (prebid#6304)

* add warning for non-string adSlots

- and update the markdown file to say they should be strings

* be more specific in explanatory comment

* Update ttl outstream (prebid#6253)

* adding DMX

test @97%, two files added one updated

* Update districtm_spec.js

* Update districtmDMX.js

* adding all districtm needed file

* remove legacy file

* remove typo || 0 in the test method

* force default to return a valid width and height

* update unit test code for failing test

* changed class for an object

* remove package-lock.json

* change file name for dmx adapter

* renamed files

* restaure package-lock.json

* update to last package-lock state

* update gdpr user consent

* fix sizes issue

* Documentation updates

Adding the readme.md info

* update file name and update unit testing import file location

* current machine state

* lint correction

* remove variable assigment duplicate

* adding CCPA support for DMX

* adding test for ccpa and gdpr

* districtm dmx adding deal id field

* idsync support ccpa & gdpr

* merge forked

* stop mediatype changing ttl

* remove lint error

* adding gvlid for dmx

* removing change

Removing change from on commit PR file package-lock.json

* update file 

Removing comments on DMX adapter

* Revert "removing change"

This reverts commit e4bbbe5

* adding aliases base on ticket prebid#6294

* update file 

Removing comments on DMX adapter

* fix error for issue prebid#6294

* file removal from PR

Co-authored-by: Steve Alliance <steve@districtm.ca>
Co-authored-by: Luis <luissastreverzun@gmail.com>
Co-authored-by: Steve Alliance <stevealliance@Steves-Air.localdomain>
Co-authored-by: Steve Alliance <stevealliance@Steves-MacBook-Air.local>
Co-authored-by: steve-a-districtm <steve@districtm.net>
Co-authored-by: Steve Alliance <stevealliance@DMMBP-C02WXCFAJG5H.local>

* [ParrableIdSystem] Accept lowercase timezone names in timezone filter (prebid#6282)

* Add lower case comparison for allowedZones

* Lowercase blocked zones also

* Fixed timezone lowercase tests

* Handle IE missing timeZone field

* Improve lowercase timezone comparison

Co-authored-by: Victor <victorigualada@gmail.com>

* Added new size - Id 550 (980x480) (prebid#6311)

* Revert "Rubicon Bid Adapter: updated transactionId to auctionId for OpenRTB (prebid#6298)" (prebid#6314)

This reverts commit f672209.

* Rubicon: adding size 300x200 (prebid#6315)

* added prebid version support to ixdiag (prebid#6292)

* Extended ID permissions supported by bidder (prebid#6276)

* User id bidder permission scheme

* styling

* prebidServer support

* -

* fix

* prebidServerBidAdapter take eidPermissions directly from userId module

* -

* unit tests

* -

* -

* update

* -

* -

* changed pbjs_bidders to pbjsBidders

* changed pbjsBidders to bidders
ext.prebid.data.eidPermissions to ext.prebid.data.eidpermissions

* rerun circleci

* rerun circleci

* omitting eidPermission entry if 'bidders' is not configured

* fixed 'calling the PBS adapter without any defined userId modules causes an exception'

* proposal

* rerun circleci

* utils implementation

* comment

* revert import validation

Co-authored-by: myerkovich <myerkovich@rubiconproject.com>
Co-authored-by: Marko Yerkovich <marko_yerkovich@MacBook-Pro-Marko.local>
Co-authored-by: Marko Yerkovich <myerkovich@magnite.com>

* new bid adapter: Logain (prebid#6312)

Co-authored-by: Aiholkin <artem.iholkin@smartyads.com>

* Change URL in Tapad Id Submodule (prebid#6318)

* IndexExchange Bid Adapter: Added support for netID, ID+ and FabrickId userId (prebid#6286)

* added more userID partner support for IX adapter - TDID, LI, NetID, Neustar, Zeotap

* removed liveintent and adsrvr.org [DNA-5040]

* updated neustar id

* fixed fabrickid

* frabrickId instead of id

* added more userID partner support for IX adapter - NetID, Neustar, Zeotap (#1)

* added more userID partner support for IX adapter - TDID, LI, NetID, Neustar, Zeotap

* added tests

* added tests for new userinfo modules

* missed a few checks

* Dna 5040 ix userid support (#2)

* added more userID partner support for IX adapter - TDID, LI, NetID, Neustar, Zeotap

* removed liveintent and adsrvr.org [DNA-5040]

* updated neustar id

* fixed fabrickid

* frabrickId instead of id

* added tests

* added tests for new userinfo modules

* missed a few checks

Co-authored-by: Ran Li <ran.li@indexexchange.com>

* added few missing checks in IX adapter

* Use userIdAsEids instead of userId (#3)

* use eids, revert package-lock
* test update

Co-authored-by: Ran Li <ran.li@indexexchange.com>
Co-authored-by: amykwyang <amyyang90@gmail.com>

* Prebid 4.27.0 Release

* increment pre version

* mediasquare fix userId (prebid#6321)

* Change the EU consent string parameter name to the company-wide standard (prebid#6320)

* adding support in pbsAdapter for getFloor (prebid#6273)

* AdHash Bidder Adapter: initial prebid.js integration (prebid#6274)

* PBJS Video Cache Update (prebid#6295)

* Support bidder aliasing by not using bid.bidder to retrieve configs (which are static anyway) (prebid#6313)

* Fabrick ID System : updates to _setReferrer and appending urls (prebid#6322)

* fabrickId updates

 - encode all url params
 - dedupe w/out queryString and keep the longest
 - additionally truncate from % if that ends up being the last (or next to last) char after truncation
 - truncate 1k instead of 200
 - don't send functions along in query (only send strings and numbers)

* attempting to fix ie failure - https://app.circleci.com/pipelines/github/prebid/Prebid.js/3945/workflows/4929a5c0-9e57-49e3-a6d8-29691560ca31/jobs/12086

* re-attempting to fix ie failure - https://app.circleci.com/pipelines/github/prebid/Prebid.js/3945/workflows/4929a5c0-9e57-49e3-a6d8-29691560ca31/jobs/12086

* re-attempting to fix ie failure - https://app.circleci.com/pipelines/github/prebid/Prebid.js/3945/workflows/4929a5c0-9e57-49e3-a6d8-29691560ca31/jobs/12086

* re-attempting to fix ie failure - https://app.circleci.com/pipelines/github/prebid/Prebid.js/3945/workflows/4929a5c0-9e57-49e3-a6d8-29691560ca31/jobs/12086

* re-attempting to fix ie failure - https://app.circleci.com/pipelines/github/prebid/Prebid.js/3945/workflows/4929a5c0-9e57-49e3-a6d8-29691560ca31/jobs/12086

* re-attempting to fix ie failure - https://app.circleci.com/pipelines/github/prebid/Prebid.js/3945/workflows/4929a5c0-9e57-49e3-a6d8-29691560ca31/jobs/12086

- attempting to add debugging so I can know what exactly is failing in ie (since I don't have a windows machine)

* found the issue having debugged locally - stubbing my error message is what killed me!

* not the right way to loop through a map

Co-authored-by: Anderson, Ben <Ben.Anderson@team.neustar>

* Configureable option to delay auction event + fix bug with googletag init (prebid#6344)

* Adhese Bid Adapter: replace id5 with eid (prebid#6339)

* FID-287: Update Reconciliation RTD delivery id format (prebid#6343)

* Inskin Bid Adapter: send screen size in the ad call (prebid#6316)

* Ozone Bid Adapter: added or updated support for multiple modules (prebid#6324)

* ozone 2.5.0 adapter updates

* ozone 2.5.0 adapter - fixup for prebidCircleCI tests to remove object values on user.eid

Co-authored-by: Afsheen Bigdeli <afsheenb@namecast.net>

* Triplelift Bid Adapter: add PubCommon ID support (prebid#6352)

* Prebid 4.28.0 Release

* Increment pre version

* GMOSSP Bid Adapter :  add refererInfo from bidderRequest  (prebid#6319)

* Axonix Bid Adapter: add new bid adapter (prebid#6341)

* Add Axonix bid adapter

* Fixed tests

* Documentation: Prebid Server and Postbid integration example ( ad server-less ) (prebid#6348)

* Native: add custom data assets capability (prebid#6220)

Use `mediaTypes.native.ext: {}` special object to add/allow custom data. assets.

* iPROM adapter upload - adapter (prebid#6334)

Co-authored-by: Gašper Žagar <gasper.zagar@iprom.si>

* Ucfunnel Bid Adapter: update currency parameter in ad response (prebid#6357)

* TheMediaGrid Bid Adapter: fix trouble with alias using (prebid#6363)

* Rubicon Analytics Adapter: pass along advertiserDomains (prebid#6356)

* Pass along advertiser domains!

* only send up to 10 adomains

* support setting coopSync in s2sConfig (prebid#6330)

* TrustX Bid Adapter: Fix alias error (prebid#6373)

* Adform Bid Adapter: add global targeting to the request query as parameter (prebid#6376)

Co-authored-by: Justas <jpmiltas@gmail.com>

* Prebid 4.29.0 Release

Co-authored-by: robertrmartinez <rrmartinez1552@gmail.com>
Co-authored-by: Liza Kobrazova <lizakobrazova@gmail.com>
Co-authored-by: Steve Alliance <steve.alliance@gmail.com>
Co-authored-by: bretg <bgorsline@gmail.com>
Co-authored-by: Amanda Dillon <41923726+agdillon@users.noreply.github.com>
Co-authored-by: YerkovichM <48519843+YerkovichM@users.noreply.github.com>
Co-authored-by: myerkovich <myerkovich@rubiconproject.com>
Co-authored-by: Marko Yerkovich <marko_yerkovich@MacBook-Pro-Marko.local>
Co-authored-by: samuel-palmer-relevant-digital <77437973+samuel-palmer-relevant-digital@users.noreply.github.com>
Co-authored-by: pm-shashank-jain <40654031+pm-shashank-jain@users.noreply.github.com>
Co-authored-by: ardit-baloku <77985953+ardit-baloku@users.noreply.github.com>
Co-authored-by: msm0504 <51493331+msm0504@users.noreply.github.com>
Co-authored-by: Mark Monday <mmonday@rubiconproject.com>
Co-authored-by: Scott Menzer <scott@id5.io>
Co-authored-by: jsnellbaker <31102355+jsnellbaker@users.noreply.github.com>
Co-authored-by: Patrick McCann <patmmccann@gmail.com>
Co-authored-by: Kotaro Shikata <lim.0.ctyl@gmail.com>
Co-authored-by: mamatic <52153441+mamatic@users.noreply.github.com>
Co-authored-by: Ian Flournoy <ian@parrable.com>
Co-authored-by: Victor <victorigualada@gmail.com>
Co-authored-by: Rich Audience <integrations@richaudience.com>
Co-authored-by: sgimenez <sergi.gimenez@richaudience.com>
Co-authored-by: mefjush <mefjush@gmail.com>
Co-authored-by: Catalin Ciocov <catalin.ciocov@gmail.com>
Co-authored-by: harpere <ericsbiz@yahoo.com>
Co-authored-by: Denis Logachov <denis@adkernel.com>
Co-authored-by: Eric Harper <eharper@rubiconproject.com>
Co-authored-by: Skylinar <53079123+Skylinar@users.noreply.github.com>
Co-authored-by: smartclip AdTechnology <adtech@smartclip.com>
Co-authored-by: Gino Cirlini <adtech@smartclip.tv>
Co-authored-by: SKOCHERI <37454420+SKOCHERI@users.noreply.github.com>
Co-authored-by: skocheri <skocheri@rubiconproject.com>
Co-authored-by: Nepomuk Seiler <muuki88@users.noreply.github.com>
Co-authored-by: Adprime <64427228+Adprime@users.noreply.github.com>
Co-authored-by: Aigolkin1991 <Aigolkin1991@gmail.com>
Co-authored-by: Aiholkin <artem.iholkin@smartyads.com>
Co-authored-by: shikharsharma-zeotap <shikhar.sharma@zeotap.com>
Co-authored-by: nyakove <43004249+nyakove@users.noreply.github.com>
Co-authored-by: Mikhail Dykun <m.dykun@wmgroup.us>
Co-authored-by: Ian Flournoy <ian@flournoy.us>
Co-authored-by: Harshad Mane <harshad.mane@pubmatic.com>
Co-authored-by: mmoschovas <63253416+mmoschovas@users.noreply.github.com>
Co-authored-by: bjorn-lw <32431346+bjorn-lw@users.noreply.github.com>
Co-authored-by: Lemma Dev <54662130+lemmadev@users.noreply.github.com>
Co-authored-by: ix-certification <adapter-certification-eng@indexexchange.com>
Co-authored-by: Ix-Prebid-Support <ix-prebid-support@indexexchange.com>
Co-authored-by: Missena <78362128+dev-missena@users.noreply.github.com>
Co-authored-by: Nick Llerandi <nllerandi@triplelift.com>
Co-authored-by: Brandon Ling <51931757+blingster7@users.noreply.github.com>
Co-authored-by: Brandon Ling <bling@triplelift.com>
Co-authored-by: Pooja Pasawala <poojapasawala@gmail.com>
Co-authored-by: Mathieu Pheulpin <mpheulpin@sharethrough.com>
Co-authored-by: lowendavid <66423906+lowendavid@users.noreply.github.com>
Co-authored-by: iskmerof <matt.foremski@gmail.com>
Co-authored-by: Matt Kendall <1870166+mkendall07@users.noreply.github.com>
Co-authored-by: pnh-pubx <73683023+pnh-pubx@users.noreply.github.com>
Co-authored-by: Phaneendra Hegde <phaneendra.hegde@gmail.com>
Co-authored-by: TheMediaGrid <44166371+TheMediaGrid@users.noreply.github.com>
Co-authored-by: prebidtappx <77485538+prebidtappx@users.noreply.github.com>
Co-authored-by: marc_tappx <marc@tappx.com>
Co-authored-by: guiann <guillaume.andouard@adyoulike.com>
Co-authored-by: Guillaume <guiandouard@gmail.com>
Co-authored-by: David Reischer <reischer.david@gmail.com>
Co-authored-by: Gena <wertixvost@gmail.com>
Co-authored-by: jsut <adam.prime@wattpad.com>
Co-authored-by: Steve Alliance <steve@districtm.ca>
Co-authored-by: Luis <luissastreverzun@gmail.com>
Co-authored-by: Steve Alliance <stevealliance@Steves-Air.localdomain>
Co-authored-by: Steve Alliance <stevealliance@Steves-MacBook-Air.local>
Co-authored-by: steve-a-districtm <steve@districtm.net>
Co-authored-by: Steve Alliance <stevealliance@DMMBP-C02WXCFAJG5H.local>
Co-authored-by: Thomas Skaarnes Nikitin <48713095+thomas-netric@users.noreply.github.com>
Co-authored-by: lksharma <sharmak.love@gmail.com>
Co-authored-by: Marko Yerkovich <myerkovich@magnite.com>
Co-authored-by: WlsLogan <77974248+WlsLogan@users.noreply.github.com>
Co-authored-by: Paweł Cejrowski <pcejrowski@gmail.com>
Co-authored-by: li-ran <70167305+li-ran@users.noreply.github.com>
Co-authored-by: Ran Li <ran.li@indexexchange.com>
Co-authored-by: amykwyang <amyyang90@gmail.com>
Co-authored-by: Jason Snellbaker <jsnellbaker@appnexus.com>
Co-authored-by: matthieularere-msq <63732822+matthieularere-msq@users.noreply.github.com>
Co-authored-by: Samuel Adu <samuel.adu@gmail.com>
Co-authored-by: Damyan <wyand@abv.bg>
Co-authored-by: Ben Anderson <benanderson@benanderson.us>
Co-authored-by: Anderson, Ben <Ben.Anderson@team.neustar>
Co-authored-by: Vladimir Fedoseev <vl.fedoseev@gmail.com>
Co-authored-by: afsheenb <afsheenb@users.noreply.github.com>
Co-authored-by: Afsheen Bigdeli <afsheenb@namecast.net>
Co-authored-by: nllerandi3lift <75995508+nllerandi3lift@users.noreply.github.com>
Co-authored-by: Mike Chowla <mike.chowla@pubmatic.com>
Co-authored-by: KazuakiM <kazuaki_mabuchi_to_go@hotmail.co.jp>
Co-authored-by: César Fernández <cfalonso@gmail.com>
Co-authored-by: ysfbsf <youssef.bsf@gmail.com>
Co-authored-by: Olivier <osazos@adagio.io>
Co-authored-by: iprom-adserver <79305981+iprom-adserver@users.noreply.github.com>
Co-authored-by: Gašper Žagar <gasper.zagar@iprom.si>
Co-authored-by: jackhsiehucf <77815341+jackhsiehucf@users.noreply.github.com>
Co-authored-by: PWyrembak <paul@trustx.org>
Co-authored-by: Justas Pupelis <pupelis.justas@gmail.com>
Co-authored-by: Justas <jpmiltas@gmail.com>
Co-authored-by: Alex Cook <alexcook@Alexs-MacBook-Pro.local>
  • Loading branch information
Show file tree
Hide file tree
Showing 139 changed files with 7,575 additions and 1,753 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,11 @@ To run the unit tests:
gulp test
```

To run the unit tests for a perticular file (example for pubmaticBidAdapter_spec.js):
```bash
gulp test --file "test/spec/modules/pubmaticBidAdapter_spec.js"
```

To generate and view the code coverage reports:

```bash
Expand Down
5 changes: 3 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const execa = require('execa');

var prebid = require('./package.json');
var dateString = 'Updated : ' + (new Date()).toISOString().substring(0, 10);
var banner = '/* <%= prebid.name %> v<%= prebid.version %>\n' + dateString + ' */\n';
var banner = '/* <%= prebid.name %> v<%= prebid.version %>\n' + dateString + '\nModules: <%= modules %> */\n';
var port = 9999;
const FAKE_SERVER_HOST = argv.host ? argv.host : 'localhost';
const FAKE_SERVER_PORT = 4444;
Expand Down Expand Up @@ -157,12 +157,13 @@ function makeWebpackPkg() {

const analyticsSources = helpers.getAnalyticsSources();
const moduleSources = helpers.getModulePaths(externalModules);
const modulesString = (externalModules.length > 0) ? externalModules.join(', ') : 'All available modules in current version.';

return gulp.src([].concat(moduleSources, analyticsSources, 'src/prebid.js'))
.pipe(helpers.nameModules(externalModules))
.pipe(webpackStream(cloned, webpack))
.pipe(uglify())
.pipe(gulpif(file => file.basename === 'prebid-core.js', header(banner, { prebid: prebid })))
.pipe(gulpif(file => file.basename === 'prebid-core.js', header(banner, { prebid: prebid, modules: modulesString })))
.pipe(gulp.dest('build/dist'));
}

Expand Down
223 changes: 223 additions & 0 deletions integrationExamples/gpt/permutiveRtdProvider_example.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,223 @@
<html>

<head>
<link rel="icon" type="image/png" href="/favicon.png">
<script async src="//www.googletagservices.com/tag/js/gpt.js"></script>
<script src="../../build/dev/prebid.js" async></script>
<script>
window.permutive = {};
window.permutive.ready = () => {};

function setLocalStorageData () {
const data = {
_pdfps: ['gam1', 'gam2'],
_prubicons: ['rubicon1', 'rubicon2'],
_papns: ['appnexus1', 'appnexus2'],
_psegs: ['1234', '1000001', '1000002'],
_ppam: ['ppam1', 'ppam2'],
_pcrprs: ['pcrprs1', 'pcrprs2']
}

for (let key in data) {
window.localStorage[key] = JSON.stringify(data[key])
}
}

setLocalStorageData()

var div_1_sizes = [
[300, 250],
[300, 600]
];
var div_2_sizes = [
[728, 90],
[970, 250]
];
var PREBID_TIMEOUT = 1000;
var FAILSAFE_TIMEOUT = 1500;

var adUnits = [
{
code: '/19968336/header-bid-tag-0',
mediaTypes: {
banner: {
sizes: div_1_sizes
}
},
bids: [
{
bidder: 'appnexus',
params: {
placementId: 13144370,
keywords: {
inline_kvs: ['1']
}
}
},
{
bidder: 'rubicon',
params: {
accountId: '9840',
siteId: '123564',
zoneId: '583584',
inventory: {
area: ['home']
},
visitor: {
inline_kvs: ['1']
}
}
},
{
bidder: 'ozone',
params: {
publisherId: 'OZONEGMG0001',
siteId: '4204204209',
placementId: '0420420500',
customData: [
{
settings: {},
targeting: {
inline_kvs: ['1', '2', '3', '4']
}
}
],
ozoneData: {}
}
}
]
},
{
code: '/19968336/header-bid-tag-1',
mediaTypes: {
banner: {
sizes: div_2_sizes
}
},
bids: [
{
bidder: 'appnexus',
params: {
placementId: 13144370
}
},
{
bidder: 'ozone',
params: {
publisherId: 'OZONEGMG0001',
siteId: '4204204209',
placementId: '0420420500'
}
}
]
}
];


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

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

pbjs.que.push(function() {
pbjs.setConfig({
debug: true,
realTimeData: {
auctionDelay: 50, // maximum time for RTD modules to respond
dataProviders: [
{
name: 'permutive',
waitForIt: true,
params: {
acBidders: ['appnexus', 'rubicon', 'ozone'],
maxSegs: 500,
overwrites: {
rubicon: function (bid, data, acEnabled, utils, defaultFn) {
if (defaultFn){
bid = defaultFn(bid, data, acEnabled)
}
if (data.gam && data.gam.length) {
utils.deepSetValue(bid, 'params.visitor.permutive', data.gam)
}
}
}
}
}
]
}
});
pbjs.addAdUnits(adUnits);
requestBids();
});

function requestBids () {
pbjs.que.push(function() {
pbjs.requestBids({
bidsBackHandler: initAdserver,
timeout: PREBID_TIMEOUT
});
});
}

function initAdserver() {
if (pbjs.initAdserverSet) return;
pbjs.initAdserverSet = true;
googletag.cmd.push(function() {
pbjs.que.push(function() {
pbjs.setTargetingForGPTAsync();
googletag.pubads().refresh();
});
});
}
// in case PBJS doesn't load
setTimeout(function() {
initAdserver();
}, FAILSAFE_TIMEOUT);

googletag.cmd.push(function() {
googletag.defineSlot('/19968336/header-bid-tag-0', div_1_sizes, 'div-1').addService(googletag.pubads());
googletag.pubads().enableSingleRequest();
googletag.enableServices();
});
googletag.cmd.push(function() {
googletag.defineSlot('/19968336/header-bid-tag-1', div_2_sizes, 'div-2').addService(googletag.pubads());
googletag.pubads().enableSingleRequest();
googletag.enableServices();
});

</script>

</head>

<body>
<p><button onclick="requestBids()">Refresh Ad Unit</button></p>
<h2>Basic Prebid.js Example</h2>
<h5>Div-1</h5>
<div id="div-1">
<script type="text/javascript">
googletag.cmd.push(function() {
googletag.display("div-1");
});

</script>
</div>

<br>

<h5>Div-2</h5>
<div id="div-2">
<script type="text/javascript">
googletag.cmd.push(function() {
googletag.display("div-2");
});

</script>
</div>

</body>

</html>
1 change: 1 addition & 0 deletions integrationExamples/gpt/userId_example.html
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@
},
{
name: "sharedId",
// bidders: ["rubicon", "sampleBidders"], // to allow this ID for specific bidders
params: {
syncTime: 60 // in seconds, default is 24 hours
},
Expand Down
86 changes: 86 additions & 0 deletions integrationExamples/postbid/postbid_prebidServer_example.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
<html>
<head>
<script>

var pbjs = pbjs || {};
pbjs.que = pbjs.que || [];
(function() {
var pbjsEl = document.createElement("script");
pbjsEl.type = "text/javascript";
pbjsEl.async = true;
pbjsEl.src = '../../build/dev/prebid.js';
var pbjsTargetEl = document.getElementsByTagName("head")[0];
pbjsTargetEl.insertBefore(pbjsEl, pbjsTargetEl.firstChild);
})();

pbjs.que.push(function() {
var adUnits = [{
code: 'postbid_iframe',
mediaTypes: {
banner: {
sizes: [[300, 250]]
}
},
bids: [
{
bidder: 'appnexus',
params: {
placementId: 13144370
}
}
]
}];

pbjs.setConfig({
bidderTimeout: 1000,
s2sConfig : {
accountId : '1',
enabled : true, //default value set to false
bidders : ['appnexus'],
timeout : 1000, //default value is 1000
adapter : 'prebidServer', //if we have any other s2s adapter, default value is s2s
endpoint : 'https://prebid.adnxs.com/pbs/v1/openrtb2/auction'
}
});

pbjs.addAdUnits(adUnits);

pbjs.requestBids({
bidsBackHandler: function(bidResponses) {
var iframe = document.getElementById('postbid_iframe');
var iframeDoc = iframe.contentWindow.document;
var adServerTargeting = pbjs.getAdserverTargetingForAdUnitCode('postbid_iframe');

// If any bidders return any creatives
if (adServerTargeting && adServerTargeting['hb_adid']) {
pbjs.renderAd(iframeDoc, adServerTargeting['hb_adid']);
} else {
iframe.width = sizes[0][0];
iframe.height = sizes[0][1];
iframeDoc.write('<head></head><body>' + passbackTagHtml + '</body>');
iframeDoc.close();
}
}
})
});

var passbackTagHtml = 'TO ADD';
</script>

</head>

<body>
<iframe id='postbid_iframe'
FRAMEBORDER="0"
SCROLLING="no"
MARGINHEIGHT="0"
MARGINWIDTH="0"
TOPMARGIN="0"
LEFTMARGIN="0"
ALLOWTRANSPARENCY="true"
WIDTH="0"
HEIGHT="0">
</iframe>

</body>
</html>
8 changes: 6 additions & 2 deletions modules/adWMGBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,18 @@ export const spec = {
return bidResponses;
},
getUserSyncs: (syncOptions, serverResponses, gdprConsent, uspConsent) => {
if (gdprConsent) {
if (gdprConsent && SYNC_ENDPOINT.indexOf('gdpr') === -1) {
SYNC_ENDPOINT = utils.tryAppendQueryString(SYNC_ENDPOINT, 'gdpr', (gdprConsent.gdprApplies ? 1 : 0));
}

if (gdprConsent && typeof gdprConsent.consentString === 'string') {
if (gdprConsent && typeof gdprConsent.consentString === 'string' && SYNC_ENDPOINT.indexOf('gdpr_consent') === -1) {
SYNC_ENDPOINT = utils.tryAppendQueryString(SYNC_ENDPOINT, 'gdpr_consent', gdprConsent.consentString);
}

if (SYNC_ENDPOINT.slice(-1) === '&') {
SYNC_ENDPOINT = SYNC_ENDPOINT.slice(0, -1);
}

/* if (uspConsent) {
SYNC_ENDPOINT = utils.tryAppendQueryString(SYNC_ENDPOINT, 'us_privacy', uspConsent);
} */
Expand Down
9 changes: 5 additions & 4 deletions modules/adWMGBidAdapter.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ Module that connects to adWMG demand sources to fetch bids. Supports 'banner' ad

# Bid Parameters

| Key | Required | Example | Description |
| --- | -------- | ------- | ----------- |
| `publisherId` | yes | `'5cebea3c9eea646c7b623d5e'` | publisher ID from WMG Dashboard |
| `IABCategories` | no | `['IAB1', 'IAB5']` | IAB ad categories for adUnit |
| Key | Required | Example | Description |
| --------------- | -------- | -----------------------------| ------------------------------- |
| `publisherId` | yes | `'5cebea3c9eea646c7b623d5e'` | publisher ID from WMG Dashboard |
| `IABCategories` | no | `['IAB1', 'IAB5']` | IAB ad categories for adUnit |
| `floorCPM` | no | `0.5` | Floor price for adUnit |


# Test Parameters
Expand Down
Loading

0 comments on commit d1b0175

Please sign in to comment.