Skip to content

Commit

Permalink
StroeerCore Bid Adapter: Add campaignType property to the bid's meta …
Browse files Browse the repository at this point in the history
…object (prebid#12488)
  • Loading branch information
philipwatson authored Nov 22, 2024
1 parent 48997e5 commit 8a95ab2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/stroeerCoreBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ export const spec = {
creativeId: '',
meta: {
advertiserDomains: bidResponse.adomain,
dsa: bidResponse.dsa
dsa: bidResponse.dsa,
campaignType: bidResponse.campaignType,
},
mediaType,
};
Expand Down
10 changes: 10 additions & 0 deletions test/spec/modules/stroeerCoreBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -1022,6 +1022,16 @@ describe('stroeerCore bid adapter', function () {
assert.deepPropertyVal(result[0].meta, 'dsa', dsaResponse);
assert.propertyVal(result[1].meta, 'dsa', undefined);
});

it('should add campaignType to meta object', () => {
const response = buildBidderResponse();
response.bids[1] = Object.assign(response.bids[1], {campaignType: 'RTB'});

const result = spec.interpretResponse({body: response});

assert.propertyVal(result[0].meta, 'campaignType', undefined);
assert.propertyVal(result[1].meta, 'campaignType', 'RTB');
});
});

describe('get user syncs entry point', () => {
Expand Down

0 comments on commit 8a95ab2

Please sign in to comment.