Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consumable Bid Adapter: add language to request #11722

Merged
merged 3 commits into from
Jun 6, 2024

Conversation

jpiros
Copy link
Contributor

@jpiros jpiros commented Jun 6, 2024

  • Updated bidder adapter

Description of change

This retrieves the user's browser language from the Navigator object and populates the request param lang.

@@ -61,7 +61,8 @@ export const spec = {
source: [{
'name': 'prebidjs',
'version': '$prebid.version$'
}]
}],
lang: (navigator && navigator.language) ? navigator.language.split('-')[0] : ''
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is already on your request object, no need to hit navigator

language: win.navigator.language.split('-').shift(),

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated to grab from the bidderRequest object

Copy link
Collaborator

@patmmccann patmmccann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

get it from the request

@patmmccann patmmccann merged commit 3002377 into prebid:master Jun 6, 2024
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants