Skip to content

Commit e4d3ff5

Browse files
Hendrik Isekerobertrmartinez
Hendrik Iseke
authored andcommitted
[Orbidder-Adapter] Add bidRequestCount and remove bid.params.keyValues (prebid#4264)
* initial orbidder version in personal github repo * use adUnits from orbidder_example.html * replace obsolete functions * forgot to commit the test * check if bidderRequest object is available * try to fix weird safari/ie issue * ebayK: add more params * update orbidderBidAdapter.md * use spec.<function> instead of this.<function> for consistency reasons * add bidfloor parameter to params object * fix gdpr object handling * default to consentRequired: false when not explicitly given * wip - use onSetTargeting callback * add tests for onSetTargeting callback * fix params and respective tests * remove not used bid.params.keyValues * add bidRequestCount to orbidder.otto.de/bid Post request * add bidRequestCount to test object defaultBidRequest
1 parent 46bfb02 commit e4d3ff5

File tree

2 files changed

+2
-13
lines changed

2 files changed

+2
-13
lines changed

modules/orbidderBidAdapter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ export const spec = {
1919
(bid.params.accountId && (typeof bid.params.accountId === 'string')) &&
2020
(bid.params.placementId && (typeof bid.params.placementId === 'string')) &&
2121
((typeof bid.params.bidfloor === 'undefined') || (typeof bid.params.bidfloor === 'number')) &&
22-
((typeof bid.params.keyValues === 'undefined') || (typeof bid.params.keyValues === 'object')) &&
2322
((typeof bid.params.profile === 'undefined') || (typeof bid.params.profile === 'object')));
2423
},
2524

@@ -38,6 +37,7 @@ export const spec = {
3837
auctionId: bidRequest.auctionId,
3938
transactionId: bidRequest.transactionId,
4039
adUnitCode: bidRequest.adUnitCode,
40+
bidRequestCount: bidRequest.bidRequestCount,
4141
sizes: bidRequest.sizes,
4242
params: bidRequest.params
4343
}

test/spec/modules/orbidderBidAdapter_spec.js

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ describe('orbidderBidAdapter', () => {
1010
bidId: 'd66fa86787e0b0ca900a96eacfd5f0bb',
1111
auctionId: 'ccc4c7cdfe11cfbd74065e6dd28413d8',
1212
transactionId: 'd58851660c0c4461e4aa06344fc9c0c6',
13+
bidRequestCount: 1,
1314
adUnitCode: 'adunit-code',
1415
sizes: [[300, 250], [300, 600]],
1516
params: {
@@ -46,12 +47,6 @@ describe('orbidderBidAdapter', () => {
4647
expect(spec.isBidRequestValid(defaultBidRequest)).to.equal(true);
4748
});
4849

49-
it('accepts optional keyValues object', () => {
50-
const bidRequest = deepClone(defaultBidRequest);
51-
bidRequest.params.keyValues = {'key': 'value'};
52-
expect(spec.isBidRequestValid(bidRequest)).to.equal(true);
53-
});
54-
5550
it('accepts optional profile object', () => {
5651
const bidRequest = deepClone(defaultBidRequest);
5752
bidRequest.params.profile = {'key': 'value'};
@@ -64,12 +59,6 @@ describe('orbidderBidAdapter', () => {
6459
expect(spec.isBidRequestValid(bidRequest)).to.equal(false);
6560
});
6661

67-
it('doesn\'t accept malformed keyValues', () => {
68-
const bidRequest = deepClone(defaultBidRequest);
69-
bidRequest.params.keyValues = 'another not usable string';
70-
expect(spec.isBidRequestValid(bidRequest)).to.equal(false);
71-
});
72-
7362
it('doesn\'t accept malformed profile', () => {
7463
const bidRequest = deepClone(defaultBidRequest);
7564
bidRequest.params.profile = 'another not usable string';

0 commit comments

Comments
 (0)