Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gamoshi: Add missing user object #4519

Merged
merged 445 commits into from
Dec 11, 2019

Conversation

sa1omon
Copy link
Contributor

@sa1omon sa1omon commented Nov 30, 2019

Type of change

  • Bugfix

Description of change

Add missing user object when building prebid request

jsalis and others added 30 commits November 28, 2019 17:31
* long form price bucket bugfix

* updated logic to use medium as default granularity

* remove unused import

* use contants

* move functions to auction module
* Optimera added optional device param (prebid#4105).

* Updating to use deepAccess util method (prebid#4105).

* Condensing dealId check (prebid#4105).
* moving dctr related code in a function

* moving parsedRequest variable out of the loop

and moving GDPR related block at bottom

* added a todo comment

* exporting hasOwn function

* added functionality to pass schain object

- adapter manager will validate schain object
- if it is valid then only it can be passed on to all bidders
- bidders do not need to validate again

* changed logMessage to logError

- also fixed isInteger check

* Moved schain related code from adapaterManager.js to schain.js

* indentation chnages

* logical bug fix

* added test cases for schain

* PubMatic: pass schain object in request

* indentation

* unit test for PubMatic schain support

* using isInteger from utils

* moved schain as a module

* indentation

* removed commented code

* added try-catch as the statement code was breaking CI for IE-11

* Revert "added try-catch as the statement code was breaking CI for IE-11"

This reverts commit 88f495f.

* added a try-catch for a staement as it was breaking CI sometimes

* added schain.md for schain module

* added a few links

* fixed typos

* simplified the approach in adpater code

* trying to restart CI

* Revert "trying to restart CI"

This reverts commit 25f877c.

* adding support in prebidServerBidAdpater as well

* bug fix

* minor changes

- moved consts out of function
- added a error log on finding an invalid schain object

* modified a comment

* added name to a test case

* Revert "added a try-catch for a staement as it was breaking CI sometimes"

This reverts commit e9606bf.

* moving schain validation logic inside PM adapter

* Revert "moving schain validation logic inside PM adapter"

This reverts commit 31d00d5.

* added validation mode: strict, relaxed, off

* updated documentation

* moved a comment

* changed value in example
* Add HTML5 video support param to bid requests

* Use const instead of var for consistency

* Update supported sizes

- Default size returned changed from 0x0 to 1x1 to support PrebidServer
- Now will always respect the bid sizes supported when configured

Co-authored-by: Josh Becker <jbecker@sharethrough.com>

* Update maintainer contact email

* Support Prebid.js User ID module

- Add support for Unified ID solution of User ID module by
  checking for `bidRequest.userId.tdid` param in `buildRequests`
  method of Sharethrough's adapter
- Update specs, maintain 80%+ code coverage

* Update logic for changing userAgent string in tests

* Add 3 pbjs callbacks to the adapter

* Add comments on empty implementations

* Update Sharethrough endpoint

* Add logic to detect safeframe

* Remove console.log statements
Fix issue with clientjs detection
Small refactors (linting)

Co-authored-by: Josh Becker <jbecker@sharethrough.com>

* Continue work on safeframe detection spec

Co-authored-by: Josh Becker <jbecker@sharethrough.com>

* [WIP]

* update version of sharethrough adapter from 3.0.1 to 3.1.0
* create sharethroughInternal const in adapter so that we can properly stub methods for testing, and utilize utility functions
* rename safeframe detection and iframe JS tag insertion code

* Finish iframe handler specs
Refactor spec file

* Change method of detecting whether locked in a frame or not

* Add logic to detect safeframe

* Remove console.log statements
Fix issue with clientjs detection
Small refactors (linting)

Co-authored-by: Josh Becker <jbecker@sharethrough.com>

* Continue work on safeframe detection spec

Co-authored-by: Josh Becker <jbecker@sharethrough.com>

* [WIP]

* update version of sharethrough adapter from 3.0.1 to 3.1.0
* create sharethroughInternal const in adapter so that we can properly stub methods for testing, and utilize utility functions
* rename safeframe detection and iframe JS tag insertion code

* Finish iframe handler specs
Refactor spec file

* Change method of detecting whether locked in a frame or not
* added missing comma

* fixing syntax error
…cess (prebid#4124)

* add check in getModules helper function

* update logic based on feedback

* update node version of project
…ds (prebid#4103)

* Bid floor, https, native ad update

* Update the ad server protocol module

* Adding referrer
* update: change urls to adapt https

* fix test code
* - Implemented the 'onTimeout' callback to fire a pixel when there's a timeout.
- Added the ability to serialize an schain object according to the description provided here: https://github.com/InteractiveAdvertisingBureau/openrtb/blob/master/supplychainobject.md

* some mods to the schain tag generation

* - added tests for schain param checking.

* - fixed a malformed url for timeouts

* - Removed a trailing ',' while generating a schain param.
…rebid#4137)"

This reverts commit e61b246.

This commit doesn't use the schain module added in prebid#4084
* Nobid Prebid Adapter commit

* Fixed global replace and unit tests

* Fixed find function

* Added nobidBidAdapter.md

* Removed description and added "Bid Params" section.

* Added test siteId 2 for testing.

* Refactored the Adapter to remove most references to the nobid object. We still need the nobid object because we have a passback tag in DFP that makes reference to it.

* Fix concurrent responses on the page

* Cosmetic change to log an error in case of missing ad markup

* Keep nobid.bidResponses cross adapters.

* Added GDPR support in user sync and added test coverage.
gulp test-coverage
gulp view-coverage

* Padding issues

* Fix padding issues

* Fix padding
* Rubicon: tuning logged messages

* Update rubiconBidAdapter.js

* fixed indentation
* Rubicon Video COPPA fix

* Unit test for Rubicon Video COPPA fix
* corrected user sync type

* removed support for iframe usersync

* added unit tests for getUserSyncs
* add datablocks Analytics and Bidder Adapters

* remove preload param

* remove preloadid

* better coverage of tests

* better coverage

* IE doesn't support array.find

* lint test

* update example host

* native asset id should be integer
* Shorten SomoAudience to just Somo

* Make package-lock return
* Copy params from bid.params.video.

* Added test for missing video parameters.

* Include mimes from adunit.
* outstream changes

* removing global filtet

* reverting page

* message

* adapter change

* remove space

* testcases

* testpage

* spaces for test page

* renderer exist case

* reverting package-lock.json

* adding schain object

* adding tagid

* syntaxx error fix

* video.html

* space trailing

* space

* tagid

* inventoryId and placement

* rewarded video

* added unit test case
stevealliance and others added 21 commits November 28, 2019 17:31
* 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 logic upto5

* adding support for removing and shuffle sizes

* adding array split test

* re-assign none standard size to the request

* resolve duplicate format inside format array

* update .md and adaptor file for KVP support

* remove array helper includes

* inforce two digit after decimal

* RUn error check nothing on my side but error form another adapter
* Adding outstream video support.

* Fixing unit test.

* Adding video instream support.

* Handling video startDelay parameter.

* Improving unit tests.

* Fixing indent.

* Handling the request when videoMediaType context is not supported.

* Changing maintainer mail address.

* Remove video outstream specific code.

* Unit test updated.
* add smms adapter

* re-run ci, why adigo adapter failed??

* review comments fix, remove deprecated functions, fix unit test
* Create newborntownWeb adapter

* only https protocol
* Add a new ucfunnel Adapter and test page

* Add a new ucfunnel Adapter and test page

* 1. Use prebid lib in the repo to keep updated
2. Replace var with let
3. Put JSON.parse(JSON.stringify()) into try catch block

* utils.getTopWindowLocation is a function

* Change to modules from adapters

* Migrate to module design

* [Dev Fix] Remove width and height which can be got from ad unit id

* Update ucfunnelBidAdapter to fit into new spec

* Correct the endpoint. Fix the error of query string

* Add test case for ucfunnelBidAdapter

* Fix lint error

* Update version number

* Combine all checks on bid request

* Add GDPR support for ucfunnel adapter

* Add in-stream video and native support for ucfunnel adapter

* Remove demo page. Add more test cases.

* Change request method from POST to GET

* Remove unnecessary comment

* Support vastXml and vastUrl for video request

* update TTL to 30 mins

* Avoid using arrow function which is not discuraged in mocha

* ucfunnel tdid support

* ucfunnel fix error message in debug mode
… stored ID after each bid request (prebid#4325)

* add a feature to always refresh stored id on each bid request for submodules that require that

* update test comments
* Added 'adhese' attribute to bid that contains meta data - Jira AD-2642

* added DALE to adhese determination

* extra config option: no format, but use size array as format string

* Read sizes from mediaTypes.banner.sizes + Apply Eslint suggestions

* Use map and join, add originData to response

* properly use originData obj

* Remove duplicated ids

* Update tests
* outstream changes

* removing global filtet

* reverting page

* message

* adapter change

* remove space

* testcases

* testpage

* spaces for test page

* renderer exist case

* reverting package-lock.json

* adding schain object

* adding tagid

* syntaxx error fix

* video.html

* space trailing

* space

* tagid

* inventoryId and placement

* rewarded video

* added unit test case

* adding site id

* adding placement and siteis

* site id param test case

* removing deprecated functions

* correcting test cases

* indentation

* test cases fix
Copy link
Collaborator

@GLStephen GLStephen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@GLStephen GLStephen added the LGTM label Dec 10, 2019
@idettman idettman merged commit ac50184 into prebid:master Dec 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment