Skip to content

Commit

Permalink
Smartadserver Bid Adapter: disable Sec-Browsing-Topics for calls to S…
Browse files Browse the repository at this point in the history
…martadserver (#11876)

* disable Sec-Browsing-Topics for smartadserver calls

* u.t. for disabling browsingTopics
  • Loading branch information
janzych-smart authored Jun 27, 2024
1 parent c1c1a76 commit 1771824
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/smartadserverBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,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
7 changes: 7 additions & 0 deletions test/spec/modules/smartadserverBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,13 @@ 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
});
});

describe('gdpr tests', function () {
afterEach(function () {
config.setConfig({ ortb2: undefined });
Expand Down

0 comments on commit 1771824

Please sign in to comment.