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

sanitize bidderRequest to rubicon adapter to ensure accountId is sent #1030

Merged
merged 2 commits into from
Mar 10, 2017

Conversation

snapwich
Copy link
Collaborator

@snapwich snapwich commented Mar 4, 2017

Type of change

  • Bugfix
  • Feature

Description of change

Make sure accountId is sent in bid.params since it is required for Rubicon adapter. Also, siteId and zoneId are now optional (listed as required on bid params documentation).

@@ -198,6 +198,10 @@ function RubiconAdapter() {
throw "no valid sizes";
}

if(!/^\d+$/.test(accountId)) {
throw "invalid accountId provided";
Copy link
Member

Choose a reason for hiding this comment

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

nit: we prefer single quotes for strings.

@mkendall07 mkendall07 self-assigned this Mar 10, 2017
@snapwich
Copy link
Collaborator Author

updated all double quotes to single quotes

@mkendall07
Copy link
Member

LGTM.

@mkendall07 mkendall07 merged commit 09e4675 into prebid:master Mar 10, 2017
@snapwich snapwich deleted the rubicon-sanitzation branch March 10, 2017 21:00
outoftime pushed a commit to Genius/Prebid.js that referenced this pull request Mar 20, 2017
…prebid#1030)

* sanitize bidderRequest to rubicon adapter to ensure accountId is sent

* use all single-quotes in rubicon stuff
outoftime pushed a commit to Genius/Prebid.js that referenced this pull request Mar 20, 2017
…built

* 'master' of https://github.com/prebid/Prebid.js:
  Add GourmetAds AppNexus Alias (prebid#1057)
  fix issue calling `requestBids();` (prebid#1058)
  explicit win url response format as pixel (prebid#1001)
  OpenX Adapter: Correctly gets the page domain for cross-domain iframes (prebid#1027)
  better http/s support (prebid#1010)
  Add a new generated field transactionId to each adunits. (prebid#1040)
  Update readme (prebid#1053)
  PulsePoint Lite adapter (prebid#1016)
  Add new adapter ServerBid (by Adzerk) (prebid#1024)
  Fix Mantis tests in negative timezone (prebid#1049)
  Add deal id handling (prebid#1044)
  sanitize bidderRequest to rubicon adapter to ensure accountId is sent (prebid#1030)
  Bidfluence Adapter (prebid#1023)
  Update uglify-js version (prebid#1041)
  Add dev dependencies.
  hb_adid should be uppercase in all cases (prebid#1037)
  Add TapSense Header Bidding Adapter and tests (prebid#1004)
  iOS Referrer fix (prebid#996)
  Change identification of JavaScript user matching (prebid#1022)
  Fixed mixed tabs/spaces in wideorbit adapter (prebid#1031)
Allen-37F added a commit to Allen-37F/Prebid.js that referenced this pull request Mar 21, 2017
* commit '0cea31cd294f380b3b7cf46dd7a4000316b71ac1':
  Fix Mantis tests in negative timezone (prebid#1049)
  Add deal id handling (prebid#1044)
  sanitize bidderRequest to rubicon adapter to ensure accountId is sent (prebid#1030)
  Bidfluence Adapter (prebid#1023)
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.

2 participants