Skip to content

Commit e524628

Browse files
committed
Merge branch 'master' into prebid-7
2 parents c885816 + 14ae8d5 commit e524628

File tree

7 files changed

+48
-181
lines changed

7 files changed

+48
-181
lines changed

modules/dacIdSystem.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
## DAC User ID Submodule
1+
## AudienceOne User ID Submodule
22

3-
DAC ID, provided by [D.A.Consortium Inc.](https://www.dac.co.jp/), is ID for ad targeting by using 1st party cookie.
3+
AudienceOne ID, provided by [D.A.Consortium Inc.](https://www.dac.co.jp/), is ID for ad targeting by using 1st party cookie.
44
Please contact D.A.Consortium Inc. before using this ID.
55

6-
## Building Prebid with DAC ID Support
6+
## Building Prebid with AudienceOne ID Support
77

8-
First, make sure to add the DAC ID submodule to your Prebid.js package with:
8+
First, make sure to add the AudienceOne ID submodule to your Prebid.js package with:
99

1010
```
1111
gulp build --modules=dacIdSystem

modules/zeta_global_sspBidAdapter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export const spec = {
9999
user: params.user ? params.user : {},
100100
app: params.app ? params.app : {},
101101
ext: {
102-
tags: params.tags ? params.tags : {},
102+
tags: {...params.tags, shortname: params.shortname},
103103
sid: params.sid ? params.sid : undefined
104104
}
105105
};

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "prebid.js",
3-
"version": "6.26.0-pre",
3+
"version": "6.27.0-pre",
44
"description": "Header Bidding Management Library",
55
"main": "src/prebid.js",
66
"scripts": {

test/spec/modules/fintezaAnalyticsAdapter_spec.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ describe('finteza analytics adapter', function () {
5151

5252
describe('track', () => {
5353
describe('bid request', () => {
54-
it('builds and sends data', function () {
54+
it('builds and sends request data', function () {
5555
const bidderCode = 'Bidder789';
5656
const pauctionId = '5018eb39-f900-4370-b71e-3bb5b48d324f';
5757

@@ -95,7 +95,7 @@ describe('finteza analytics adapter', function () {
9595
});
9696

9797
describe('bid response', () => {
98-
it('builds and sends data', function () {
98+
it('builds and sends response data', function () {
9999
const bidderCode = 'Bidder789';
100100
const pauctionId = '5018eb39-f900-4370-b71e-3bb5b48d324f';
101101

@@ -154,7 +154,7 @@ describe('finteza analytics adapter', function () {
154154
});
155155

156156
describe('bid won', () => {
157-
it('builds and sends data', function () {
157+
it('builds and sends bid won data', function () {
158158
const bidderCode = 'Bidder789';
159159
const pauctionId = '5018eb39-f900-4370-b71e-3bb5b48d324f';
160160

@@ -194,7 +194,7 @@ describe('finteza analytics adapter', function () {
194194
});
195195

196196
describe('bid timeout', () => {
197-
it('builds and sends data', function () {
197+
it('builds and sends timeout data', function () {
198198
const bidderCode = 'biDDer789';
199199
const pauctionId = '5018eb39-f900-4370-b71e-3bb5b48d324f';
200200

test/spec/modules/medianetRtdProvider_spec.js

Lines changed: 0 additions & 146 deletions
This file was deleted.

test/spec/modules/zeta_global_sspBidAdapter_spec.js

Lines changed: 37 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,25 @@ describe('Zeta Ssp Bid Adapter', function () {
2525
}
2626
];
2727

28+
const params = {
29+
user: {
30+
uid: 222,
31+
buyeruid: 333
32+
},
33+
tags: {
34+
someTag: 444,
35+
},
36+
sid: 'publisherId',
37+
shortname: 'test_shortname',
38+
site: {
39+
page: 'testPage'
40+
},
41+
app: {
42+
bundle: 'testBundle'
43+
},
44+
test: 1
45+
};
46+
2847
const bannerRequest = [{
2948
bidId: 12345,
3049
auctionId: 67890,
@@ -41,18 +60,7 @@ describe('Zeta Ssp Bid Adapter', function () {
4160
consentString: 'consentString'
4261
},
4362
uspConsent: 'someCCPAString',
44-
params: {
45-
placement: 111,
46-
user: {
47-
uid: 222,
48-
buyeruid: 333
49-
},
50-
tags: {
51-
someTag: 444,
52-
sid: 'publisherId'
53-
},
54-
test: 1
55-
},
63+
params: params,
5664
userIdAsEids: eids
5765
}];
5866

@@ -72,18 +80,7 @@ describe('Zeta Ssp Bid Adapter', function () {
7280
refererInfo: {
7381
referer: 'http://www.zetaglobal.com/page?param=video'
7482
},
75-
params: {
76-
placement: 111,
77-
user: {
78-
uid: 222,
79-
buyeruid: 333
80-
},
81-
tags: {
82-
someTag: 444,
83-
sid: 'publisherId'
84-
},
85-
test: 1
86-
},
83+
params: params
8784
}];
8885

8986
it('Test the bid validation function', function () {
@@ -269,4 +266,20 @@ describe('Zeta Ssp Bid Adapter', function () {
269266

270267
expect(payload.imp[0].banner).to.be.undefined;
271268
});
269+
270+
it('Test required params in banner request', function () {
271+
const request = spec.buildRequests(bannerRequest, bannerRequest[0]);
272+
const payload = JSON.parse(request.data);
273+
expect(payload.ext.sid).to.eql('publisherId');
274+
expect(payload.ext.tags.someTag).to.eql(444);
275+
expect(payload.ext.tags.shortname).to.eql('test_shortname');
276+
});
277+
278+
it('Test required params in video request', function () {
279+
const request = spec.buildRequests(videoRequest, videoRequest[0]);
280+
const payload = JSON.parse(request.data);
281+
expect(payload.ext.sid).to.eql('publisherId');
282+
expect(payload.ext.tags.someTag).to.eql(444);
283+
expect(payload.ext.tags.shortname).to.eql('test_shortname');
284+
});
272285
});

0 commit comments

Comments
 (0)