Skip to content

Commit 4809a4e

Browse files
authored
send all custom params to the bidder (#7685)
1 parent 8163a23 commit 4809a4e

File tree

2 files changed

+15
-12
lines changed

2 files changed

+15
-12
lines changed

modules/oguryBidAdapter.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ function buildRequests(validBidRequests, bidderRequest) {
8383
bidfloor: getFloor(bidRequest),
8484
banner: {
8585
format: sizes
86-
}
86+
},
87+
ext: bidRequest.params
8788
});
8889
}
8990
});

test/spec/modules/oguryBidAdapter_spec.js

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ describe('OguryBidAdapter', function () {
119119
};
120120
});
121121

122-
it('should return sync array with two elements of type image', () => {
122+
it('should return syncs array with two elements of type image', () => {
123123
const userSyncs = spec.getUserSyncs(syncOptions, [], gdprConsent);
124124

125125
expect(userSyncs).to.have.lengthOf(2);
@@ -129,7 +129,7 @@ describe('OguryBidAdapter', function () {
129129
expect(userSyncs[1].url).to.contain('https://ms-cookie-sync.presage.io/ttd/init-sync');
130130
});
131131

132-
it('should set the same source as query param', () => {
132+
it('should set the source as query param', () => {
133133
const userSyncs = spec.getUserSyncs(syncOptions, [], gdprConsent);
134134
expect(userSyncs[0].url).to.contain('source=prebid');
135135
expect(userSyncs[1].url).to.contain('source=prebid');
@@ -146,7 +146,7 @@ describe('OguryBidAdapter', function () {
146146
expect(spec.getUserSyncs(syncOptions, [], gdprConsent)).to.have.lengthOf(0);
147147
});
148148

149-
it('should return sync array with two elements of type image when consentString is undefined', () => {
149+
it('should return syncs array with two elements of type image when consentString is undefined', () => {
150150
gdprConsent = {
151151
gdprApplies: true,
152152
consentString: undefined
@@ -160,7 +160,7 @@ describe('OguryBidAdapter', function () {
160160
expect(userSyncs[1].url).to.equal('https://ms-cookie-sync.presage.io/ttd/init-sync?iab_string=&source=prebid')
161161
});
162162

163-
it('should return sync array with two elements of type image when consentString is null', () => {
163+
it('should return syncs array with two elements of type image when consentString is null', () => {
164164
gdprConsent = {
165165
gdprApplies: true,
166166
consentString: null
@@ -174,7 +174,7 @@ describe('OguryBidAdapter', function () {
174174
expect(userSyncs[1].url).to.equal('https://ms-cookie-sync.presage.io/ttd/init-sync?iab_string=&source=prebid')
175175
});
176176

177-
it('should return sync array with two elements of type image when gdprConsent is undefined', () => {
177+
it('should return syncs array with two elements of type image when gdprConsent is undefined', () => {
178178
gdprConsent = undefined;
179179

180180
const userSyncs = spec.getUserSyncs(syncOptions, [], gdprConsent);
@@ -185,7 +185,7 @@ describe('OguryBidAdapter', function () {
185185
expect(userSyncs[1].url).to.equal('https://ms-cookie-sync.presage.io/ttd/init-sync?iab_string=&source=prebid')
186186
});
187187

188-
it('should return sync array with two elements of type image when gdprConsent is null', () => {
188+
it('should return syncs array with two elements of type image when gdprConsent is null', () => {
189189
gdprConsent = null;
190190

191191
const userSyncs = spec.getUserSyncs(syncOptions, [], gdprConsent);
@@ -196,7 +196,7 @@ describe('OguryBidAdapter', function () {
196196
expect(userSyncs[1].url).to.equal('https://ms-cookie-sync.presage.io/ttd/init-sync?iab_string=&source=prebid')
197197
});
198198

199-
it('should return sync array with two elements of type image when gdprConsent is null and gdprApplies is false', () => {
199+
it('should return syncs array with two elements of type image when gdprConsent is null and gdprApplies is false', () => {
200200
gdprConsent = {
201201
gdprApplies: false,
202202
consentString: null
@@ -210,7 +210,7 @@ describe('OguryBidAdapter', function () {
210210
expect(userSyncs[1].url).to.equal('https://ms-cookie-sync.presage.io/ttd/init-sync?iab_string=&source=prebid')
211211
});
212212

213-
it('should return sync array with two elements of type image when gdprConsent is empty string and gdprApplies is false', () => {
213+
it('should return syncs array with two elements of type image when gdprConsent is empty string and gdprApplies is false', () => {
214214
gdprConsent = {
215215
gdprApplies: false,
216216
consentString: ''
@@ -240,7 +240,8 @@ describe('OguryBidAdapter', function () {
240240
w: 300,
241241
h: 250
242242
}]
243-
}
243+
},
244+
ext: bidRequests[0].params
244245
}, {
245246
id: bidRequests[1].bidId,
246247
tagid: bidRequests[1].params.adUnitId,
@@ -250,7 +251,8 @@ describe('OguryBidAdapter', function () {
250251
w: 600,
251252
h: 500
252253
}]
253-
}
254+
},
255+
ext: bidRequests[1].params
254256
}],
255257
regs: {
256258
ext: {
@@ -549,7 +551,7 @@ describe('OguryBidAdapter', function () {
549551
xhr.restore()
550552
})
551553

552-
it('should send notification on bid timeout', function() {
554+
it('should send on bid timeout notification', function() {
553555
const bid = {
554556
ad: '<img style="width: 300px; height: 250px;" src="https://assets.afcdn.com/recipe/20190529/93153_w1024h768c1cx2220cy1728cxt0cyt0cxb4441cyb3456.jpg" alt="cookies" />',
555557
cpm: 3

0 commit comments

Comments
 (0)