Skip to content

Commit

Permalink
Yieldmo Bid Adapter: send topics as string for request (#11121)
Browse files Browse the repository at this point in the history
* Convert topics to string

* Update unit test
  • Loading branch information
desidiver authored Feb 21, 2024
1 parent f58100a commit 2505322
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion modules/yieldmoBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export const spec = {
us_privacy: deepAccess(bidderRequest, 'uspConsent') || '',
};
if (topicsData) {
serverRequest.topics = topicsData;
serverRequest.topics = JSON.stringify(topicsData);
}
const gpc = getGPCSignal(bidderRequest);
if (gpc) {
Expand Down
5 changes: 3 additions & 2 deletions test/spec/modules/yieldmoBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -406,11 +406,12 @@ describe('YieldmoAdapter', function () {
},
],
}}}));
expect(biddata[0].data.topics).to.deep.equal({

expect(biddata[0].data.topics).to.equal(JSON.stringify({
taxonomy: 600,
classifier: '2206021246',
topics: [7, 8, 9],
});
}));
});

it('should send gpc in the banner bid request', function () {
Expand Down

0 comments on commit 2505322

Please sign in to comment.