Skip to content

merge prebid master to local repo#28

Merged
terryc33x merged 128 commits into33Across:masterfrom
prebid:master
Aug 7, 2020
Merged

merge prebid master to local repo#28
terryc33x merged 128 commits into33Across:masterfrom
prebid:master

Conversation

@terryc33x
Copy link

No description provided.

mirkorean and others added 30 commits June 22, 2020 11:29
Customers are using custom parameters to our endpoint to use them downstream. We need a way of supporting this in prebid.
* feat(module): multi size request

* fix getUserSyncs
added tests

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

* feat(client): add user id request support

* fix(client): lint errors

Co-authored-by: roman <shmoop207@gmail.com>
* LiveIntentId submodule.

Bumped the live-connect-js version with changes:
- fixed the problem where userId/index.js was sending the full config on `decode`, while the docs claim it should only send `.params`
- removed the uuid lib
- removed the support for legacy LI first party cookies
- removed the redundant config parameter `providedIdentifierName`
- support for running live-connect inside of multiple wrappers

* LiveIntentId submodule.

Removed reading of non-accessible and therefore redundant code snippets

* Removed excessive config logging.

* Making the publisher id parameter optional.

* Removed unneeded check.
* check gdpr in buildRequest

* User sync based on whether gdpr applies or not

* check if consent data exists during user sync

* split user sync into further branches: 1) when gdpr does not apply 2) when consent data is unavailable

* contribute viewability to ttxRequest

* update tests

* remove window mock from tests

* use local variables

* introduce ServerRequestBuilder

* add withOptions() method to ServerRequestBuilder

* add semicolons

* sync up package-lock.json with upstream/master

* stub window.top in tests

* introduce getTopWindowSize() for test purpose

* reformat code

* add withSite() method to TtxRequestBuilder

add withSite() method to TtxRequestBuilder

* add isIframe() and _isViewabilityMeasurable()

* handle NON_MEASURABLE viewability in nested iframes

* consider page visibility, stub utils functions getWindowTop() and getWindowSelf()

* contribute viewability as 0 for inactive tab

* add prebidjs version to ttx request

* send caller as an array

* fix JSDoc in utils.js

* send viewability as non measurable when unable to locate target HTMLElement, add warning message

* introduce mapAdSlotPathToElementId()

* introduce getAdSlotHTMLElement(), add logging

* introduce mapAdSlotPathToElementId()

* update logging in ad unit path to element id mapping

* rephrase logging, fix tests

* update adapter documentation

* remove excessive logging

* improve logging

* revert change

* fix return of _mapAdUnitPathToElementId()

* improve logging of _mapAdUnitPathToElementId()

* do not use Array.find()

* return id once element is found

* return id once element is found

* let -> const

* Removing killswitch behavior for GDPR

* Updated comments to reflect current gdpr logic

* URI encode consent string

* Updated example site ID to help Prebid team e2e test our adapter

* send page url in ortb

* Removed redundant pageUrl default

* Restored package-log.json that mirrors prebid's repo

* Sending USP string during buildRequest

* Adding USP consent data to user sync

* add unit test for syncing without bidrequest

* Changed to uspConsent to make the connatation consistent

* Resetting adapter state in adapter after user sync rather than exposing it.

* removed console log

* Adding schain info

* remove setting empty format ext

* better tests invalid values

* removing validation of schain

* Fixed lint errors

* First cut for bidfloors support

* fixed where getFloors is read

* fixed merge conflicts

Co-authored-by: Gleb Glushtsov <gleb.glushtsov@33across.com>
Co-authored-by: Gleb Glushtsov <glebglushtsov@users.noreply.github.com>
Co-authored-by: Gleb Glushtsov <gleb.glushtsov@gmail.com>
Co-authored-by: Aparna Hegde <ahegde@pool-10-1-150-29-nyc.internal.33across.com>
Co-authored-by: Aparna Hegde <ahegde@admins-MacBook-Pro.local>
Co-authored-by: Aparna Hegde <ahegde@pool-10-1-150-137-nyc.internal.33across.com>
Co-authored-by: Aparna Hegde <ahegde@pool-10-1-150-96-nyc.internal.33across.com>
Co-authored-by: Aparna Hegde <ahegde@AHEGDE-MAC.local>
Co-authored-by: Aparna Hegde <ahegde@AHEGDE-MAC.fios-router.home>
* feat(module): multi size request

* fix getUserSyncs
added tests

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

* feat(client): add screen resolution as request param

* feat(client): add `res` param to spec

* fix(client): screen size inside test

Co-authored-by: roman <shmoop207@gmail.com>
* Add initial partial implementation for Appier bidder adapter.

* Use relative protocol for bidder API url.

* Handle server response for Appier adapter and add related unit tests.

* Support farm-specific prebid server and allow overriding the server with setConfig().

* Add doc for Appier bid adapter.

* Fix const correctness.

* Append requestId to the beacon image URL of Appier adapter to reduce the risks of being cached by proxy servers or browsers.

* Send bidderRequest.refererInfo to Appier bidder server.

* Remove the show beacon since now we generate it in the backend server.

* Only generate a show beacon url if it's not provided by the backend.

* Add version information for Appier adapter using semver (starts from 1.0.0).

* Add a new adapter for Appier bidder.

* Add a new adapter for Appier bidder.

* add appier analyticsAdapter skeleton.

* update initial working version.

* refactor and remove debug messages.

* fix config checking logic.

* implement bidAdjustment and add timeout before send event.

* unify cache operation into cacheManager to avoid direct key/value operation.

* Update server name.

* correct currency impl and message payload. remove unused debug messages.

* update var naming.

* rename creative vars. cleanup comments.

* add test cases for AnalyticsAdapter.

* update test specs file.

* remove spec from main branch.

* add unit tests for AnalyticsAdapter, #1 - Happy cases.

* refactor tests.

* update unit tests for AnalyticsAdapter.

* add tests for bid-adjusted, bid-timeout events

* fix bid adjustment test case.

* add nobid case in analytics unit test.

* add test case for delayed bids and prebidWon messages.

* Use logInfo and logError utilility functions instead of console.log() to print debug messages.

* handle timeout status message correctly.

* correct isTimeout setting logic and test cases.

* replace for...of by array.forEach for IE11

* apply auto formatter.

* refactor: extract timeout logic to a helper function

* tag analytic version with 0.1.0-beta for iCook release

* Re-implement the appier analytics adapter with a simpler design and correctly handle timeouts.

* Remove unused variables.

* Rename methods to improve consistency.

* Code cleanup: rename methods and avoid duplicated code.

* Fix wrong bid response data caused by non-deterministic event ordering of prebid.js.

* Send bid message immediately on auction end without delay.

* add withCredentials in ajax call to get client cookie.

* Fix broken unit test for appier analytic adapter.

* add prediction id support.

* update predictionId/configId format in tests.

* Init refined appier analytics testing

* hotfix: appier analytics support browserstack bug

* feat: add aliases

Co-authored-by: Hong Jen-Yee (PCMan) <pcman.hong@appier.com>
Co-authored-by: Yuan-Hung Huang <yuanhung.huang@appier.com>
Co-authored-by: kdchang <kd.chang@appier.com>
Co-authored-by: chih-ping-weng <chihping.weng@appier.com>
* Add GMOSSP Adapter

* fix test param
* feat(module): multi size request

* fix getUserSyncs
added tests

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

* feat(client): send adUnitCode on request payload

Co-authored-by: roman <shmoop207@gmail.com>
* added tdid and ad-unit-code

* fixed tdid

* removed digitrust

* repush

* add package-lock from upstream  master

* Delete package-lock.json

* add package-lock from upstream  master

Co-authored-by: Ankit Prakash <aprakash@sovrn.com>
Co-authored-by: Wesley Whitney <wesleywhitney@gmail.com>
Co-authored-by: John Rosendahl <jrosendahl@gmailcom>
…ts (#5410)

* CAP-1614 - updated docs to show correct size for banner and some other small fixes

* CAP-1636 support schain object in prebid

* CAP-1636 updated the review comments

* CAP-1849 - split up banner and video impressions to use format

Co-authored-by: Corey Kress <corey.kress@synacor.com>
Co-authored-by: Rajkumar Natarajan <rajkumar.natarajan@synacor.com>
* Improve Digital: CCPA support

* Outstream video support

* Lint fixes

* Improve Digital: outstream and deal improvements
* 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

* Remove gdpr default apply value

* minor: use better variable name

* Add unit test on unspecified gdprApplies

Co-authored-by: Guillaume <guiandouard@gmail.com>
* Price floors new schema support AB Test

* Add new serve-fast command + lint fix

* update comment

* Only sum up modelWeights once and set as prop!

Fix minor bug in handleFetchResponse to overwrite skipRate
* added support for pubcommon, digitrust, id5id

* added support for IdentityLink

* changed the source for id5

* added unit test cases

* changed source param for identityLink

* removed digitrust test case
* Add native support

* Add response testing

* DRY test

* Change required from bool to int

* Set mediaType

* Fixes objects

* Fixes object access

* Remove ad property, only set it for banner

* Update tests

* Moving hardcoding values to constants

* Update docs with native information

* Revert "Add native support"

* Getting rid of CCPA adapter validation (#9)

* fix linter errors (#10)

Co-authored-by: Ricardo Azpeitia Pimentel <ricardo.azpeitia@nextroll.com>
Co-authored-by: Abimael Martinez <abijr@users.noreply.github.com>
* Add Render RichAudience Adapter

* Update richaudienceBidAdapter.md & Add Try/Catch

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

* Mediasquare: Add support for uspConsent + schain userIds support. Plus enhance userSync

* fix iframeEnabled and pixelEnabled + suggested shortand statement
- allow publishers to pass deterministic signals
- add a counter to provide analytics on the number of auctions using the id5Id
* Add tradedesk id support

* Updating appnexus payload for criteo

Co-authored-by: Jaimin Panchal <email@example.com>
* added tcf 2.0

* Updated adapter to support gdprEnforcement

* reverted storage manager initialization

Co-authored-by: florin_nedelcu_invibes <florin.nedelcu@invibes.com>
* orbidder adapter: add withCredentials:true header to BidRequest and onBidWon Requests

* add blank in order to trigger build again

* remove blank to trigger build ... again

* adding extra line to trigger build ... again

* add prebid version to request

* add unit test for version parameter

* add version parameter to win requests

* fix comment

* trigger rebuild

* trigger rebuild

* remove onBidWon callback from adapter

Co-authored-by: Volk, Rainer <Rainer.Volk@otto.de>
Co-authored-by: RainerVolk4014 <53347752+RainerVolk4014@users.noreply.github.com>
Co-authored-by: siggi-otto <57615762+siggi-otto@users.noreply.github.com>
Co-authored-by: Hendrik Iseke <39734979+hiseke@users.noreply.github.com>
Co-authored-by: Hendrik Iseke <hendrik.iseke@gmx.de>
Co-authored-by: rvolk <>
* make default s2s ttl configurable
* Updating Conversant bid adapter URL to new 'cvx'

* Updating Conversant bid adapter URL to new 'cvx' - updating tests to match

* Updating Conversant bid adapter URL to new 'cvx':
rolling back package-lock.json to avoid conflict
* Update padsquadBidAdapter_spec.js

* Update padsquadBidAdapter.js

* Update padsquadBidAdapter.js
robertrmartinez and others added 28 commits July 29, 2020 11:39
* Changed fallback value of skipRate from 0 to undefined. Removed skipRate from bidRequest[ ].floorData if undefined. If no floor data available set bidRequest[ ].floorData.location to 'noBid'.

* Added top level floorProvider value.

* reverted skip rate back to 0 from undifined when not set. Removed type enforcement from floorProvider. Added floorProvider into return data.

* fixed description for floorProvider
* Added TheMediaGridNM Bid Adapter

* Updated required params for TheMediaGridNM Bid Adapter

* Update TheMediGridNM Bid Adapter

* Fix tests for TheMediaGridNM Bid Adapter

* Fixes after review for TheMediaGridNM Bid Adapter

* Add support of multi-format in TheMediaGrid Bid Adapter

* Update sync url for grid and gridNM Bid Adapters

* TheMediaGrid Bid Adapter: added keywords adUnit parameter

* Update TheMediaGrid Bid Adapter to support keywords from config

* Implement new request format for TheMediaGrid Bid Adapter

* Fix jwpseg params for TheMediaGrid Bid Adapter

* Update unit tests for The Media Grid Bid Adapter
Co-authored-by: Mark Monday <mmonday@rubiconproject.com>
* fixed bug with sortByDealAndPriceBucketOrCpm

* added unit test
* Mediasquare: Add support for uspConsent + schain userIds support. Plus enhance userSync

* fix iframeEnabled and pixelEnabled + suggested shortand statement

* mediasquare bidder: add metrics to onBidWon Event
)

* replace deep-equal library with native implementation

* remove reference from allowedModules
* pubperf analytics adapter added.

* pubperf analytics updated.
* Add apstream adapter

* Swap minified DSU with transparent implementation

* Set DSU if consentManagement disabled

* Add possibility to disable DSU via config

Co-authored-by: Yevhenii Tykhostup <yevhenii.tykhostup@audienceproject.com>
* adds support for floor module

* fixes lint
* CAP-1614 - updated docs to show correct size for banner and some other small fixes

* CAP-1636 support schain object in prebid

* CAP-1636 updated the review comments

* CAP-1849 - split up banner and video impressions to use format

* CAP-1879 - added adapter support for consent management module

* CAP-1879 - updates for pr

* CAP-1879 - remove unneeded checks

* CAP-1920 - fixed size bug

* CAP-1920 - update tests and banner

* CAP-1920 - fix a comparison, and height setting

Co-authored-by: Corey Kress <corey.kress@synacor.com>
Co-authored-by: Rajkumar Natarajan <rajkumar.natarajan@synacor.com>
…ta (#5350)

* Add unit coverage for parrableIdSystem getId callback

* PBID-14: Pass uspString to Parrable as us_privacy query parameter

* PBID-14: Simplify parrableIdSystem us_privacy test

* PBID-14: Only send us_privacy to Parrable when a value exists

* PBID-11: Read new Parrable compound cookie _parrable_id

Migrating from legacy _parrable_eid cookie. The new cookie contains ibaOptout and ccpaOptout status fields

* Remove path check from parrableIdSystem url test

* PBID-11: Integrate Parrable compound cookie, consolidating old cookies

* PBID-11: Update parrableIdSystem requestBids hook test to support compound cookie value

* PBID-11: Small refactor to parrableIdSystem spec to support compound cookie

* PBID-11: Handle legacy ibaOptout as truthy value when migrating to compound cookie

* PBID-11: Add parrableIdSystem spec tests covering migration of legacy cookies

* PBID-11: Remove storage documentation from test pages and userId module docs

* PBID-11: Remove SUBMODULES_THAT_ALWAYS_REFRESH_ID feature from userId system

* PBID-11: Use better serialize implementation for Parrable compound cookie

* PBID-11: Update parrableIdSystem interface documentation

* Add missing extension to mock xhr import

* PBID-11: Try to access eid property only when parrableId object exists

* PBID-11: Construct parrableId from legacy cookies in same manner as compound cookie

* Use hardcoded expiration date for legacy cookies

* PBID-39: Return full parrableId object in decode method

* PBID-39: Update all adapters to use parrableId.eid for userId value

* PBID-39: Update config for ORTB EIDs to extract parrableId.eid as User UID value

* PBID-39: Pass Parrable IBA and CCPA optout status into ORTB EIDs list through UID extensions

* PBID-39: Pass a true CCPA optout status to adapters when the EID has been suppressed

The userId/eids module will not consider our ID system for inclusion in the EIDs object if our ID value is not a string.
Unfortunately when we write our cookie without an EID (in the case where CCPA optout is true) then the deserialized EID value is undefined, to save space in the cookie.

So this is a hack that will return an empty string when Prebid is building the EIDs object so that we can still pass our optout status to those that require it to understand why our ID may be missing.

* parrableIdSystem: Relocate new unit test from upstream

* PBID-39: Fallback to cookie values when backend response is missing components

Also handle another missed callback scenario if the response object parses to nothing

* PBID-39: Avoid breaking openx bid adapter when renaming our id system

* PBID-39: Use array find

* Use supported array find method in parrableIdSystem_spec

* Restore backwards-compatible parrableId passing to OpenxBidAdapter

* VidazooBidAdapter: Consume new parrableId format
At the suggestion of our legal counsel.
* added automatad bid adapter

* added automatad bid adapter readme

* added automatad bidder adapter unit test

* updated maintainer email id for automatad adapter

* refactored automatadBidAdapter js

* refactored automatadBidAdapter unit test

* refactored automatadBidAdapter unit test

* added usersync code to automatad bid adapter

* Added unit test for onBidWon in automatadBidAdapter_spec

* removed trailing spaces

* removed trailing space

* changes for getUserSync function

* lint error fixes

* updated usersync url

* additional test for onBidWon function added

* added ajax stub in test

* updated winurl params

* lint fixes

* added adunitCode in bid request

* added test for adunit code
* feat(module): multi size request

* fix getUserSyncs
added tests

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

* feat(client): send unique deal id as server param

* fix(client): lint errors (padded-blocks)

* feat(client): move localStorage usage to storageManager

* fix(client): tests

Co-authored-by: roman <shmoop207@gmail.com>
@terryc33x terryc33x merged commit 9d593f6 into 33Across:master Aug 7, 2020
carlosfelix pushed a commit that referenced this pull request Jul 16, 2025
…rameters (prebid#13122)

* V 0 29 (#31)

* AGT-403: Add adType parameter to payload in report

* AGT-403: Test for partner report, adType parameter

* AGT-403: Test refactoring

* AGT-403: Documentation updated

* IntentIq Analytics Module: adUnitCode or placemetId to report (#9)

* AGT-446: adUnitCode or placemetId to report

* AGT-446: Description of changes, example

* AGT-446: Fix documentation

* AGT-446: Changes after review

* Agt 409 full url in prebid modules (#8)

* add sync

* update full url

* set url param

* fix comment

* fix issue fix sync mode

* update url

* update full url

* add test

* move browser_blacklist (#10)

* add is optedOut (#11)

* update date in FPD after sync (#12)

* update sync logic for new user (#13)

* fix unit tests

* change version name

* IntentIq ID: Support sourceMetaData and sourceMetaDataExternal (#17)

* AGT-453: Support sourceMetaData

* AGT-453: sourceMetaDataExternal

* AGT-453: Documentation

* AGT-453: Changes after review

* AGT-453: Fix doc

* Fix doc

* AGT-453: Fix test

* update test

* update endpoint (#16)

* update endpoint

* update test

* add tests

* update test

* fix conflict

* fix conflict

* add test for reportingServerAddress

* add test for reportingServerAddress

* AGT-498: support report method parameter (#22)

* AGT-498: reportMethod

* AGT-498: Tests and refactoring

* AGT-498: method refactoring

* AGT-498: get method refactoring

* AGT-498: reportMethod parameter description (#23)

* AGT-498: reportMethod

* AGT-498: Tests and refactoring

* AGT-498: method refactoring

* AGT-498: get method refactoring

* AGT-498: Documentation

* Agt 452 server call counters (#18)

* add counters

* add unit tests and fixes

* counters additions

* clear counters when a request is made

---------

Co-authored-by: Eyvaz Ahmadzada <eyvazahmadzada@gmail.com>

* add siloEnabled feature (#19)

* add siloEnabled feature

* add siloEnabled feature to analytics adapter

* add unit tests for siloEnabled feature

* add siloenabled to docs

---------

Co-authored-by: Eyvaz Ahmadzada <eyvazahmadzada@gmail.com>

* fix unit test issues

* AGT-455: Source parameter in requests (#28)

* AGT-508: Spd parameter (#29)

* AGT-508: Spd parameter

* AGT-508: Move appendSpd to utils

* AGT-499: Support partnerClientIdType and partnerClientId (#30)

* AGT-499: partnerClientId and partnerClientIdType in requests

* AGT-499: Clean comment

* AGT-499: Refactoring

* add groupchanged parameter (#25)

* add groupchanged parameter

* fix md file issue

* add groupChanged example in docs

* remove group from example

* add unit tests and fix groupChanged issue

---------

Co-authored-by: Eyvaz Ahmadzada <eyvazahmadzada@gmail.com>
Co-authored-by: DimaIntentIQ <139111483+DimaIntentIQ@users.noreply.github.com>

* Agt 501 support additional params (#24)

* additionalParams feature init

* additional params add features

* additionalparams fix analytics adapter

* add unit tests for additionalParams

* fix currentBrowser issue

---------

Co-authored-by: Eyvaz Ahmadzada <eyvazahmadzada@gmail.com>
Co-authored-by: DimaIntentIQ <139111483+DimaIntentIQ@users.noreply.github.com>

* fix linter error

---------

Co-authored-by: dmytro-po <dmytro.po@intentiq.com>
Co-authored-by: DimaIntentIQ <139111483+DimaIntentIQ@users.noreply.github.com>
Co-authored-by: dLepetynskyiIntentiq <danylo.le@intentiq.com>
Co-authored-by: DimaIntentIQ <dmytro.piskun@intentiq.com>
Co-authored-by: Eyvaz Ahmadzada <eyvazahmadzada@gmail.com>

* fix unit tests (#32)

Co-authored-by: Eyvaz Ahmadzada <eyvazahmadzada@gmail.com>

* Agt 547 vr bug for module (#33)

* save progress

* fix calling server

* add "dbsaved" parameter

* add tests

* AGT-552: Additional query params (#34)

* AGT-552: Additional query params

* update documentation

---------

Co-authored-by: DimaIntentIQ <dmytro.piskun@intentiq.com>

* Fix unit test for specific browser

* fix spelling

---------

Co-authored-by: Eyvaz <62054743+eyvazahmadzada@users.noreply.github.com>
Co-authored-by: dmytro-po <dmytro.po@intentiq.com>
Co-authored-by: dLepetynskyiIntentiq <danylo.le@intentiq.com>
Co-authored-by: Eyvaz Ahmadzada <eyvazahmadzada@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Comments