Skip to content

Commit

Permalink
Merge pull request #15 from voxmedia/RPO-3405-add-browser-language
Browse files Browse the repository at this point in the history
ConcertBidAdapter: Add browserLanguage to request meta object
  • Loading branch information
Skitelman authored Aug 14, 2023
2 parents 0ee3b28 + d46d102 commit c4fdab6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions modules/concertBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export const spec = {
prebidVersion: '$prebid.version$',
pageUrl: bidderRequest.refererInfo.page,
screen: [window.screen.width, window.screen.height].join('x'),
browserLanguage: window.navigator.language,
debug: debugTurnedOn(),
uid: getUid(bidderRequest, validBidRequests),
optedOut: hasOptedOutOfPersonalization(),
Expand Down
2 changes: 1 addition & 1 deletion test/spec/modules/concertBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ describe('ConcertAdapter', function () {
expect(payload).to.have.property('meta');
expect(payload).to.have.property('slots');

const metaRequiredFields = ['prebidVersion', 'pageUrl', 'screen', 'debug', 'uid', 'optedOut', 'adapterVersion', 'uspConsent', 'gdprConsent', 'gppConsent'];
const metaRequiredFields = ['prebidVersion', 'pageUrl', 'screen', 'debug', 'uid', 'optedOut', 'adapterVersion', 'uspConsent', 'gdprConsent', 'gppConsent', 'browserLanguage'];
const slotsRequiredFields = ['name', 'bidId', 'transactionId', 'sizes', 'partnerId', 'slotType'];

metaRequiredFields.forEach(function(field) {
Expand Down

0 comments on commit c4fdab6

Please sign in to comment.