Skip to content

Commit

Permalink
PubMatic Bid Adapter : start sending displaymanager & displaymanagerv…
Browse files Browse the repository at this point in the history
…er (#11530)

* Added support for displaymanager & version to pubmatic adapter

* Added comments
  • Loading branch information
kapil-tuptewar committed May 22, 2024
1 parent e55a64b commit 178ef64
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/pubmaticBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,9 @@ function _createImpressionObject(bid, bidderRequest) {
ext: {
pmZoneId: _parseSlotParam('pmzoneid', bid.params.pmzoneid)
},
bidfloorcur: bid.params.currency ? _parseSlotParam('currency', bid.params.currency) : DEFAULT_CURRENCY
bidfloorcur: bid.params.currency ? _parseSlotParam('currency', bid.params.currency) : DEFAULT_CURRENCY,
displaymanager: 'Prebid.js',
displaymanagerver: '$prebid.version$' // prebid version
};

_addPMPDealsInImpression(impObj, bid);
Expand Down
2 changes: 2 additions & 0 deletions test/spec/modules/pubmaticBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -1187,6 +1187,8 @@ describe('PubMatic adapter', function () {
expect(data.imp[0].bidfloorcur).to.equal(bidRequests[0].params.currency);
expect(data.source.ext.schain).to.deep.equal(bidRequests[0].schain);
expect(data.ext.epoch).to.exist;
expect(data.imp[0].displaymanager).to.equal('Prebid.js');
expect(data.imp[0].displaymanagerver).to.equal('$prebid.version$');
});

it('Set tmax from global config if not set by requestBids method', function() {
Expand Down

0 comments on commit 178ef64

Please sign in to comment.