KEMBAR78
Core: add PUC version in targeting keys by dgirardi · Pull Request #13885 · prebid/Prebid.js · GitHub
Skip to content

Conversation

@dgirardi
Copy link
Collaborator

Type of change

  • Feature

Description of change

This adds the hb_ver key-value to all targeting, controllable with targetingControls.version and containing the PUC version to use,
so that creatives using PUC can avoid pointing to @latest (see prebid/prebid-universal-creative#187)

Other information

Closes prebid/prebid-universal-creative#187

@github-actions
Copy link

Tread carefully! This PR adds 1 linter error (possibly disabled through directives):

  • src/targeting.ts (+1 error)

@coveralls
Copy link
Collaborator

Pull Request Test Coverage Report for Build 17651753938

Details

  • 39 of 39 (100.0%) changed or added relevant lines in 3 files are covered.
  • 60 unchanged lines in 2 files lost coverage.
  • Overall coverage increased (+33.1%) to 96.241%

Files with Coverage Reduction New Missed Lines %
src/adloader.js 12 78.57%
src/utils.js 48 88.84%
Totals Coverage Status
Change from base Build #3: 33.1%
Covered Lines: 197885
Relevant Lines: 205613

💛 - Coveralls

UUID: 'hb_uuid',
CACHE_HOST: 'hb_cache_host'
CACHE_HOST: 'hb_cache_host',
VERSION: 'hb_ver'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i do not think we'd want this to be a default targeting key if we're not recommending the puc?

Copy link
Collaborator

@patmmccann patmmccann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what should the default behavior be on setting this key? should we put out the docs release before we close the issue?

@dgirardi
Copy link
Collaborator Author

dgirardi commented Sep 11, 2025

Including it by default makes it a bit easier to transition away from @latest. I think we care about that more than we care about discouraging PUC altogether. Alternatively, we could keep it off by default and have version: true set some default version.

@patmmccann
Copy link
Collaborator

that's reasonable, advanced users on the new methods can easily also remove a key they don't want.

@patmmccann patmmccann merged commit cd1eb72 into master Sep 24, 2025
33 of 34 checks passed
@patmmccann patmmccann deleted the hbver branch September 24, 2025 15:17
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.

Migrate from latest to a versioned release scheme

4 participants