Skip to content

Commit

Permalink
Merge branch 'master' into prebid-7
Browse files Browse the repository at this point in the history
  • Loading branch information
dgirardi committed May 25, 2022
2 parents c885816 + 14ae8d5 commit e524628
Show file tree
Hide file tree
Showing 7 changed files with 48 additions and 181 deletions.
8 changes: 4 additions & 4 deletions modules/dacIdSystem.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
## DAC User ID Submodule
## AudienceOne User ID Submodule

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

## Building Prebid with DAC ID Support
## Building Prebid with AudienceOne ID Support

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

```
gulp build --modules=dacIdSystem
Expand Down
2 changes: 1 addition & 1 deletion modules/zeta_global_sspBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export const spec = {
user: params.user ? params.user : {},
app: params.app ? params.app : {},
ext: {
tags: params.tags ? params.tags : {},
tags: {...params.tags, shortname: params.shortname},
sid: params.sid ? params.sid : undefined
}
};
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "prebid.js",
"version": "6.26.0-pre",
"version": "6.27.0-pre",
"description": "Header Bidding Management Library",
"main": "src/prebid.js",
"scripts": {
Expand Down
8 changes: 4 additions & 4 deletions test/spec/modules/fintezaAnalyticsAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ describe('finteza analytics adapter', function () {

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

Expand Down Expand Up @@ -95,7 +95,7 @@ describe('finteza analytics adapter', function () {
});

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

Expand Down Expand Up @@ -154,7 +154,7 @@ describe('finteza analytics adapter', function () {
});

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

Expand Down Expand Up @@ -194,7 +194,7 @@ describe('finteza analytics adapter', function () {
});

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

Expand Down
146 changes: 0 additions & 146 deletions test/spec/modules/medianetRtdProvider_spec.js

This file was deleted.

61 changes: 37 additions & 24 deletions test/spec/modules/zeta_global_sspBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,25 @@ describe('Zeta Ssp Bid Adapter', function () {
}
];

const params = {
user: {
uid: 222,
buyeruid: 333
},
tags: {
someTag: 444,
},
sid: 'publisherId',
shortname: 'test_shortname',
site: {
page: 'testPage'
},
app: {
bundle: 'testBundle'
},
test: 1
};

const bannerRequest = [{
bidId: 12345,
auctionId: 67890,
Expand All @@ -41,18 +60,7 @@ describe('Zeta Ssp Bid Adapter', function () {
consentString: 'consentString'
},
uspConsent: 'someCCPAString',
params: {
placement: 111,
user: {
uid: 222,
buyeruid: 333
},
tags: {
someTag: 444,
sid: 'publisherId'
},
test: 1
},
params: params,
userIdAsEids: eids
}];

Expand All @@ -72,18 +80,7 @@ describe('Zeta Ssp Bid Adapter', function () {
refererInfo: {
referer: 'http://www.zetaglobal.com/page?param=video'
},
params: {
placement: 111,
user: {
uid: 222,
buyeruid: 333
},
tags: {
someTag: 444,
sid: 'publisherId'
},
test: 1
},
params: params
}];

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

expect(payload.imp[0].banner).to.be.undefined;
});

it('Test required params in banner request', function () {
const request = spec.buildRequests(bannerRequest, bannerRequest[0]);
const payload = JSON.parse(request.data);
expect(payload.ext.sid).to.eql('publisherId');
expect(payload.ext.tags.someTag).to.eql(444);
expect(payload.ext.tags.shortname).to.eql('test_shortname');
});

it('Test required params in video request', function () {
const request = spec.buildRequests(videoRequest, videoRequest[0]);
const payload = JSON.parse(request.data);
expect(payload.ext.sid).to.eql('publisherId');
expect(payload.ext.tags.someTag).to.eql(444);
expect(payload.ext.tags.shortname).to.eql('test_shortname');
});
});

0 comments on commit e524628

Please sign in to comment.