You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The "userSync" module combines default setting with those passed in setConfig. If the user hasn't specified some option, it would retain its default value.
But the "bidderFactory" does not store the initial settings, instead, it asks the "config" for the current version of those settings.
let syncs = spec.getUserSyncs({
iframeEnabled: config.getConfig('userSync.iframeEnabled'),
pixelEnabled: config.getConfig('userSync.pixelEnabled'),
}, responses);
Config modules does not apply the default settings. And if the user hasn't specified some option, it would be undefined and undefined is treated as false. Upon the first call to "setConfig" the default values are discarded. In my case, pixelEnabled became undefined. So enabling iframe sync disabled pixel sync.
I'd say that the handling of the default values should be done in the config.
Steps to reproduce
Add the following funtion call at the init pbjs.setConfig({ userSync: {iframeEnabled: true}});
Run an auction with some bidders that use pixel sync (conversant, trustX)
Expected results
Sync pixels for those bidders are fired
Actual results
Sync pixels for those bidders are not fired
Platform details
pbjs v 0.33
The text was updated successfully, but these errors were encountered:
dmitriyshashkin
changed the title
bidderFactory send wrong sync params to bidders
bidderFactory sends wrong sync params to the bidders
Nov 25, 2017
Type of issue
Bug
Description
I tried to enable user sync through frames so I've added the following setConfig call:
The "userSync" module combines default setting with those passed in setConfig. If the user hasn't specified some option, it would retain its default value.
But the "bidderFactory" does not store the initial settings, instead, it asks the "config" for the current version of those settings.
Config modules does not apply the default settings. And if the user hasn't specified some option, it would be undefined and undefined is treated as false. Upon the first call to "setConfig" the default values are discarded. In my case, pixelEnabled became undefined. So enabling iframe sync disabled pixel sync.
I'd say that the handling of the default values should be done in the config.
Steps to reproduce
pbjs.setConfig({ userSync: {iframeEnabled: true}});
Expected results
Sync pixels for those bidders are fired
Actual results
Sync pixels for those bidders are not fired
Platform details
pbjs v 0.33
The text was updated successfully, but these errors were encountered: