-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Rubicon adapter: add a floor variable #964
Conversation
This is fine. I'll update the Prebid.org docs in the coming weeks. |
Is this going to be merged soon? I kinda need it and I'd rather not use a "custom" adapter. |
@benjaminclot |
@benjaminclot the unit test responses are mocked so anyone should be able to add the appropriate tests. I'm willing to add those though, if you'd like. I think that's possible if the "allow maintainers to edit" checkbox is clicked? |
@mkendall07 conflicts are resolved. |
For whatever reason it won't let me push my change due to lack of permissions. I thought being a Prebid.js member would be enough, or maybe i'm doing it wrong... But either way, here's the patch if you would like to apply it: From ea495bb8f305269d7a3266adba81fb62c125bfc6 Mon Sep 17 00:00:00 2001
From: Rich Snapp <rsnapp@rubiconproject.com>
Date: Tue, 7 Feb 2017 10:46:00 -0700
Subject: [PATCH] added unit test to rubicon_spec for rp_floor override
---
test/spec/adapters/rubicon_spec.js | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/test/spec/adapters/rubicon_spec.js b/test/spec/adapters/rubicon_spec.js
index a875def..853e99e 100644
--- a/test/spec/adapters/rubicon_spec.js
+++ b/test/spec/adapters/rubicon_spec.js
@@ -263,6 +263,19 @@ describe('the rubicon adapter', () => {
});
+ it('should allow a floor override', () => {
+ bidderRequest.bids[0].params.floor = 2;
+
+ rubiconAdapter.callBids(bidderRequest);
+
+ let request = xhr.requests[0];
+
+ let [path, query] = request.url.split('?');
+ query = parseQuery(query);
+
+ expect(query['rp_floor']).to.equal('2');
+ });
+
it('should not send a request and register an error bid if no valid sizes', () => {
var sizesBidderRequest = clone(bidderRequest);
--
2.10.1 (Apple Git-78) |
@snapwich The test has been added (and lightly edited) |
LGTM. Thanks! |
* Add a floor variable * Added floor parameter test
…ebid-official-0.19.0 to release/1.14.0 * commit 'b13f7ba7ee8b3c168dc0af7c8bfc94747d017e70': (34 commits) Add changelog entry. Prebid 0.19.0 Release check truthiness of adUnitCode (prebid#990) fixed exception when refreshing individual Ad Units and bidder responds slowly (prebid#989) Stub pixel drop to prevent network request in test (prebid#988) Updating Komoona adapter to support future Prebid requirements (prebid#974) Use stable version of Chrome (prebid#984) Revert to running browser tests in Travis (prebid#983) Fix issue with appnexusAst sending `user` object in the wrong place. (prebid#980) Integrate Browserstack tests into Travis CI build (prebid#839) Add StickyAdsTV Bidder adapter (prebid#916) Stronger xdomain checks (prebid#971) added matomy as an alias for appnexus (prebid#850) Added 152Media Appnexus Alias (prebid#952) OpenX Adapter: Handles fallback ads correctly as a no fill (prebid#39) (prebid#963) Use package dependencies for ES6 Array shims (prebid#962) Make x-domain safe frame example work out of the box (prebid#955) added usersync for adkernel adapter (prebid#951) Rubicon adapter: add a floor variable (prebid#964) Added Lifestreet adapter. (prebid#965) ...
…14.0 to master * commit 'c008f3f531ae3409f4a16bf03470d84e82aead0e': (35 commits) Add adapters in aolPartnersIds.json. Add changelog entry. Prebid 0.19.0 Release check truthiness of adUnitCode (prebid#990) fixed exception when refreshing individual Ad Units and bidder responds slowly (prebid#989) Stub pixel drop to prevent network request in test (prebid#988) Updating Komoona adapter to support future Prebid requirements (prebid#974) Use stable version of Chrome (prebid#984) Revert to running browser tests in Travis (prebid#983) Fix issue with appnexusAst sending `user` object in the wrong place. (prebid#980) Integrate Browserstack tests into Travis CI build (prebid#839) Add StickyAdsTV Bidder adapter (prebid#916) Stronger xdomain checks (prebid#971) added matomy as an alias for appnexus (prebid#850) Added 152Media Appnexus Alias (prebid#952) OpenX Adapter: Handles fallback ads correctly as a no fill (prebid#39) (prebid#963) Use package dependencies for ES6 Array shims (prebid#962) Make x-domain safe frame example work out of the box (prebid#955) added usersync for adkernel adapter (prebid#951) Rubicon adapter: add a floor variable (prebid#964) ...
Type of change
Description of change
Added a new "floor" variable to the Rubicon adapter, in order to be able to use rp_floor dynamically and not have a static 0.01 value.