Skip to content

Commit

Permalink
GumGum Bid Adapter: stringify dsa object (prebid#11386)
Browse files Browse the repository at this point in the history
* displaymanager: add field for displaymanager and displaymanagerver

* fix: displayManager to include 'gumgum'

* fix: test case

* Bug, stringifying DSA object.

---------

Co-authored-by: ahzgg <abel.herrera@gumgum.com>
Co-authored-by: ahzgg <163184035+ahzgg@users.noreply.github.com>
  • Loading branch information
3 people authored Apr 23, 2024
1 parent ce125a7 commit d3d452e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/gumgumBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ function buildRequests(validBidRequests, bidderRequest) {
}
const dsa = deepAccess(bidderRequest, 'ortb2.regs.ext.dsa');
if (dsa) {
data.dsa = dsa
data.dsa = JSON.stringify(dsa)
}
if (coppa) {
data.coppa = coppa;
Expand Down
2 changes: 1 addition & 1 deletion test/spec/modules/gumgumBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ describe('gumgumAdapter', function () {
// Call the buildRequests function to generate the bid request
const [bidRequest] = spec.buildRequests(bidRequests, fakeBidRequest);
// Assert that the DSA information in the bid request matches the provided ORTB2 data
expect(bidRequest.data.dsa).to.deep.equal(fakeBidRequest.ortb2.regs.ext.dsa);
expect(bidRequest.data.dsa).to.deep.equal(JSON.stringify(fakeBidRequest.ortb2.regs.ext.dsa));
});
it('should not set coppa parameter if coppa config is set to false', function () {
config.setConfig({
Expand Down

0 comments on commit d3d452e

Please sign in to comment.