-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Reset hb_* keys only for registered adunits #902
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR, a few changes requested below
slot.setTargeting(key,null); | ||
// Reset Only Registerd dfp-adunits | ||
$$PREBID_GLOBAL$$.adUnits.find(function (unit) { | ||
if(unit.code === slot.getSlotElementId()){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unit.code
should also check against slot.getAdUnitPath()
. See https://github.com/prebid/Prebid.js/blob/master/src/prebid.js#L124 for a similar example
@@ -113,7 +113,12 @@ function resetPresetTargeting() { | |||
if (isGptPubadsDefined()) { | |||
window.googletag.pubads().getSlots().forEach(slot => { | |||
pbTargetingKeys.forEach(function(key){ | |||
slot.setTargeting(key,null); | |||
// Reset Only Registerd dfp-adunits |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use spaces rather than tabs in this section to match the rest of the file
@darbh Any updates available? I'd like to get this into the next release |
This has been updated and rebased in #934 |
@matt Sorry, i am on vacation, just checked your mail. Thank you for
merging changes.
…On Friday, January 13, 2017, Matt Lane ***@***.***> wrote:
@darbh <https://github.com/darbh> Any updates available? I'd like to get
this into the next release
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#902 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ARNuMgoxJXaYNdv0FhxPy6eFxpdLGiROks5rRxzvgaJpZM4LZX2p>
.
|
Type of change
Description of change
Other information