Skip to content

Commit

Permalink
Merge pull request #28 from smartadserver/dsa-2
Browse files Browse the repository at this point in the history
restore topics
  • Loading branch information
eszponder authored Aug 19, 2024
2 parents 3120efd + 9483a81 commit 5e04eae
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/smartadserverBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,9 @@ export const spec = {
method: 'POST',
url: (domain !== undefined ? domain : 'https://prg.smartadserver.com') + '/prebid/v1',
data: JSON.stringify(payload),
options: {
browsingTopics: false
}
};
},

Expand Down Expand Up @@ -206,7 +209,7 @@ export const spec = {
sdc: sellerDefinedContext
};

const gpid = deepAccess(bid, 'ortb2Imp.ext.gpid', deepAccess(bid, 'ortb2Imp.ext.data.pbadslot', ''));
const gpid = deepAccess(bid, 'ortb2Imp.ext.gpid') || deepAccess(bid, 'ortb2Imp.ext.data.pbadslot');
if (gpid) {
payload.gpid = gpid;
}
Expand Down
6 changes: 6 additions & 0 deletions test/spec/modules/smartadserverBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,12 @@ describe('Smart bid adapter tests', function () {
expect(syncs).to.have.lengthOf(0);
});

it('should set browsingTopics=false in request.options', () => {
const requests = spec.buildRequests(DEFAULT_PARAMS_WO_OPTIONAL);
expect(requests[0]).to.have.property('options').and.to.deep.equal({
browsingTopics: false
});

it('Verify metadata', function () {
const adomain = ['advertiser-domain.com'];
const dsa = {
Expand Down

0 comments on commit 5e04eae

Please # to comment.