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

Adapter bug fix #1096

Merged
merged 39 commits into from
Apr 11, 2017
Merged

Adapter bug fix #1096

merged 39 commits into from
Apr 11, 2017

Conversation

bjorn-wo
Copy link
Contributor

Type of change

  • Bugfix

Description of change

We had a an issue server side that output the wrong identifier string to our adapter which caused the adapter to fail with an exception.

In order to avoid this in the future, we made the adapter more robust for this kind of errors.

bjorn-wo and others added 30 commits February 4, 2016 11:23
Also making sure we encode/decode site and page parameters.
# Conflicts:
#	package.json
#	src/adaptermanager.js
Fix unit tests after refactoring
Merge remote-tracking branch 'upstream/master'

# Conflicts:
#	package.json
# Conflicts:
#	.gitignore
#	package.json
#	src/adapters/wideorbit.js
#	test/spec/adapters/wideorbit_spec.js
};

$$PREBID_GLOBAL$$.handleWideOrbitCallback(response);

Copy link
Member

Choose a reason for hiding this comment

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

shouldn't you assert that addBidResponse wasn't invoked here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It will actually call addBidResponse. It will however not throw an exception as it did before. I agree the test isn't very good, but it did catch my particular issue.

@mkendall07
Copy link
Member

LGTM

Copy link
Collaborator

@protonate protonate left a comment

Choose a reason for hiding this comment

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

Reviewed & Approved

@mkendall07 mkendall07 merged commit 478b384 into prebid:master Apr 11, 2017
outoftime added a commit to Genius/Prebid.js that referenced this pull request Apr 19, 2017
…built

* 'master' of https://github.com/prebid/Prebid.js: (38 commits)
  Add optional domain parameter to AdButler adapter (prebid#1078)
  Send transactionID to Criteo Services (prebid#1113)
  Fix `buildMasterVideoTagFromAdserverTag()` not selecting winning bid (prebid#1106)
  Remove placement size selection and filtering (prebid#1107)
  revert `srcdoc` change (prebid#1130)
  Add new Adapter- Beachfront Media (prebid#1062)
  Fixes SpringServe adapter (prebid#1101)
  Update Widespace request param (prebid#1098)
  - New Adapter: Innity (prebid#1074)
  Update Roxot prebid analytic adapter (prebid#1034)
  Yarn Package Manager (prebid#1109)
  allow writing into current document if prebid is loaded inside an iframe (prebid#1066)
  Adapter bug fix (prebid#1096)
  fix typo
  added pr review process and governance model (prebid#1103)
  added support for sampling in ga and base adapter, fixed up some tests (prebid#1011)
  Add Inneractive adapter (prebid#1048)
  Add alias freewheel-ssp to stickyadstv bidder adapter  (prebid#1043)
  Add Facebook Audience Network adapter (prebid#1068)
  Add Atomx support (prebid#1056)
  ...
dluxemburg pushed a commit to Genius/Prebid.js that referenced this pull request Jul 17, 2018
* Added WideOrbit adapter

* Fix User Matching code

* Renamed adapter + some minor JS issues

* Added flag for notifying front action is header bidding. Use returned bid.

* Duplicated properties fixed.

* Correcting adaptermanager after wrong merge. Now all tests passes correctly.

* Seting fl and jscb directly in the pageImpression-part of the url, since they are hardcoded.

* Fixed above the fold parameter

* No need to modify original value.

* Normalizing file regarding single or double quotes. Also, properly indenting.

* Removed uneeded properties: referrer (twice) and tagId.

* Slightly better readiblity for variable declarations (and definition in some cases).

* Refactoring regarding function naming and the way we set rank parameter.
Also making sure we encode/decode site and page parameters.

* Ignoring TypeScript's typing definitions.

* Added initial WideOrbit Adapter tests covering url-creation part.

* Completed wide orbit adapter tests with the one regarding callback response.

* Slightly better test names.

* Fix support for already prepared tracking pixels

* Modified indenting according to coding standard

* Code review fixes

* Marked required parameters

* Remove unused library from package.json
Fix unit tests after refactoring

* Added support for referrer

* Added support for referrer

* Updated line endings to UNIX style

* Fixed formatting issue

* Fix user matching identification for JavaScript type

* Duplicated WideOrbit spec after merge

* Made adapter more robust for server misconfiguration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants