Skip to content

Targeting: Add configurable targeting prefix #4355

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sigma-software-prebid
Copy link
Contributor

@sigma-software-prebid sigma-software-prebid commented May 29, 2025

🔧 Type of changes

  • new bid adapter
  • update bid adapter
  • new feature
  • new analytics adapter
  • new module
  • bugfix
  • documentation
  • configuration
  • technical debt (test coverage, refactoring, etc.)

✨ What's the context?

#3094

🧠 Rationale behind the change

According to 3094 some publishers would like to have a different set of ad targeting prefixes rather than hb_.

In scope of the current change we add a possibility to configure prefix in:

  • request with ext.prebid.targeting.prefix
  • account-level configuration: account.targeting_prefix

If both ext.prebid.targeting.prefix and account.targeting_prefix configuration value are present, prefer the one from the request. The length of prefix is controlled by settings.targeting.truncate-attr-chars.

🧪 Test plan

New functionality is covered by TestFindTargetingByKey, TestGetTargetDataPrefix and TestTargetingCacheRequestPrefix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant