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
slot.clearTargeting(); is still being called, just at a different time. Due to the async nature of these calls how do you guarantee that targeting set by others is not lost?
Can you clarify the reason clearTargeting is required? Any reason not to only clear prebid specific keys?
@nanek
The current implementation reads the current keys, stores them, clears the slot, and reapply the keys. This works because JS is single threaded and we are guaranteed atomicity within our function.
Hi @mkendall07
This new feature seems to break the targeting setting we use on our websites : when reapplying the keys, each value is reapplied to each ad slot. With version 0.10, every ad slot now has the targetting values of the last ad slot declared, after a lot of overwrite.
This will become a major problem for us with future versions of prebid, as we can't change our targetting implantation system.
is it possible to have a config option to keep the previous clearing system? something like pbjs.useLegacyClearTargetting ? Or do you see a fix for that problem ? thanks in advance
I'm experiencing the same issue as aurelienjoneau. The targeting specific to the last tag in the array is applied to every tag. Perhaps there's an array traversing issue somewhere?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
@matthewlane & @protonate to review