-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: persistent page-level targeting values (#129)
## Description This PR fixes an issue where old page-level targeting values are not getting removed from `googletag.pubads()` when the ad config that gets passed into `AdvertisingProvider` updates. What this mean is that when targeting values are removed from your ad config, they still persist in `googletag.pubads()`. The fix is to call `pubads.clearTargeting()` to clear all previous targeting values before calling `pubads.setTargeting(key, value)` to pass in the updated targeting values. --------- Co-authored-by: Stephen Gill <stephen.gill@adevinta.com>
- Loading branch information
1 parent
495aabf
commit 791b9a6
Showing
3 changed files
with
71 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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