Skip to content

Reset GPT targeting for custom div ids#5132

Merged
jaiminpanchal27 merged 1 commit intoprebid:masterfrom
rtk-io:reset_gpt_targeting_custom_divs
Apr 22, 2020
Merged

Reset GPT targeting for custom div ids#5132
jaiminpanchal27 merged 1 commit intoprebid:masterfrom
rtk-io:reset_gpt_targeting_custom_divs

Conversation

@FilipStamenkovic
Copy link
Contributor

Type of change

  • Bugfix

Description of change

When resetting targeting provide customSlotMatching function (that is also used for setting gpt targeting).
Right now, code is checking whether it should reset targeting: if adUnit code is the same as gpt slot adUnit path or if adUnit code is the same as div id. If all these checks fail, use customSlotMatching function as fallback to determine if targeting should be reset.

Other information

This PR is addressing #5131 issue.

@harpere harpere added the needs 2nd review Core module updates require two approvals from the core team label Apr 17, 2020
@harpere harpere requested a review from jaiminpanchal27 April 17, 2020 06:16
@jaiminpanchal27 jaiminpanchal27 merged commit 916b1a6 into prebid:master Apr 22, 2020
iggyfisk pushed a commit to happypancake/Prebid.js that referenced this pull request Jun 22, 2020
@FilipStamenkovic FilipStamenkovic deleted the reset_gpt_targeting_custom_divs branch November 18, 2021 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs 2nd review Core module updates require two approvals from the core team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments