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

Fix for #4047 #4063

Merged
merged 8 commits into from
Aug 9, 2019
Merged

Fix for #4047 #4063

merged 8 commits into from
Aug 9, 2019

Conversation

dpapworth-qc
Copy link
Contributor

@dpapworth-qc dpapworth-qc commented Aug 6, 2019

Type of change

  • Bugfix
  • Feature
  • New bidder adapter
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Does this change affect user-facing APIs or examples documented on http://prebid.org?
  • Other

Description of change

Resolves #4047.
Change isBidRequestValid to reject bid requests missing required parameters, rather than unsupported media types.
Filter unsupported media types when building requests.
Add test for multi-format ad units to verify expected behaviour.

Other information

@dpapworth-qc dpapworth-qc changed the title Fix for Issue 4047 Fix for #4047 Aug 6, 2019
@dpapworth-qc
Copy link
Contributor Author

Build failure appears to be due to an error when running RealVu Analytics Adapter tests.

@jsnellbaker jsnellbaker self-requested a review August 8, 2019 14:27
@jsnellbaker jsnellbaker self-assigned this Aug 8, 2019
Copy link
Collaborator

@jsnellbaker jsnellbaker left a comment

Choose a reason for hiding this comment

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

@dpapworth-qc
I took a look through the changes, and they seem to be good.

There was one thing I noted as a potential thought, but not strictly needed. Let me know what you think about it.

Thanks!

} else if (bid.mediaTypes.banner) {
imp = makeBannerImp(bid);
} else {
// Unsupported mediaType
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do you want to throw a warning/info message message here to note that an unsupported bid type was ignored by the adapter (if only for future diagnostic information)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍 done

@jsnellbaker
Copy link
Collaborator

@dpapworth-qc As an update, I reran the circleci tests. They should be good.

The current failure (where the job seemed to stall) was fixed in a recent update to master. If you resync your branch and get the update; it should resolve the issue.

@dpapworth-qc
Copy link
Contributor Author

@jsnellbaker i've added a log message for unsupported media types, and i've merged the current master branch.

Copy link
Collaborator

@jsnellbaker jsnellbaker left a comment

Choose a reason for hiding this comment

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

Thanks for making the updates.

@jsnellbaker jsnellbaker merged commit ecd3815 into prebid:master Aug 9, 2019
sa1omon pushed a commit to gamoshi/Prebid.js that referenced this pull request Nov 28, 2019
* Changed isBidRequestValid to reject bid requests missing required parameters.

* Filter outstream video bid requests.

* Improved detection of different media types. Ignore all media types except instream video and banner.

* Added test to confirm behaviour with multi-format request.

* Removed unnecessary change to bid sizes.

* Removed unused imports and tests.

* Added log message for unsupported media types.
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.

WARNING: Invalid bid sent to bidder quantcast:
2 participants