Skip to content

Commit

Permalink
add image userSync and change default currency (prebid#8244)
Browse files Browse the repository at this point in the history
Co-authored-by: Ignat Khaylov <[email protected]>
  • Loading branch information
ignat-one and Ignat Khaylov authored Apr 2, 2022
1 parent 70cd775 commit dfac4ee
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
16 changes: 11 additions & 5 deletions modules/betweenBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export const spec = {
mediaType: serverResponse.body[i].mediaType,
ttl: serverResponse.body[i].ttl,
creativeId: serverResponse.body[i].creativeid,
currency: serverResponse.body[i].currency || 'RUB',
currency: serverResponse.body[i].currency || 'USD',
netRevenue: serverResponse.body[i].netRevenue || true,
ad: serverResponse.body[i].ad,
meta: {
Expand Down Expand Up @@ -158,10 +158,16 @@ export const spec = {
// type: 'iframe',
// url: 'https://acdn.adnxs.com/dmp/async_usersync.html'
// });
syncs.push({
type: 'iframe',
url: 'https://ads.betweendigital.com/sspmatch-iframe'
});
syncs.push(
{
type: 'iframe',
url: 'https://ads.betweendigital.com/sspmatch-iframe'
},
{
type: 'image',
url: 'https://ads.betweendigital.com/sspmatch'
}
);
return syncs;
}
}
Expand Down
5 changes: 3 additions & 2 deletions test/spec/modules/betweenBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -283,12 +283,13 @@ describe('betweenBidAdapterTests', function () {
let bids = spec.interpretResponse(serverResponse);
expect(bids).to.have.lengthOf(1);
let bid = bids[0];
expect(bid.currency).to.equal('RUB');
expect(bid.currency).to.equal('USD');
});
it('check getUserSyncs', function() {
const syncs = spec.getUserSyncs({}, {});
expect(syncs).to.be.an('array').that.to.have.lengthOf(1);
expect(syncs).to.be.an('array').that.to.have.lengthOf(2);
expect(syncs[0]).to.deep.equal({type: 'iframe', url: 'https://ads.betweendigital.com/sspmatch-iframe'});
expect(syncs[1]).to.deep.equal({type: 'image', url: 'https://ads.betweendigital.com/sspmatch'});
});

it('check sizes', function() {
Expand Down

0 comments on commit dfac4ee

Please sign in to comment.