We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 04e57dd commit 93236f8Copy full SHA for 93236f8
modules/yandexBidAdapter.js
@@ -175,9 +175,11 @@ export const spec = {
175
device: ortb2?.device,
176
};
177
178
- const documentLang = deepAccess(bidRequest, 'params.documentLang');
179
- if (documentLang && !data?.site?.content?.language) {
180
- deepSetValue(data, 'site.content.language', documentLang);
+ if (!data?.site?.content?.language) {
+ const documentLang = deepAccess(bidRequest, 'params.documentLang');
+ if (documentLang) {
181
+ deepSetValue(data, 'site.content.language', documentLang);
182
+ }
183
}
184
185
const eids = deepAccess(bidRequest, 'userIdAsEids');
0 commit comments