Skip to content

Conversation

@pgomulka-id5
Copy link
Contributor

Type of change

  • [x ] Feature

  • Does this change affect user-facing APIs or examples documented on http://prebid.org?

  • Other

Description of change

Added an option to set exposeTargeting param for ID5 module which, if provided, will cause the module to set appropriate external targeting tags for A/B testing purposes.

Other information

@pgomulka-id5
Copy link
Contributor Author

a public documentation PR prebid/prebid.github.io#6388

Type change in js-doc

See merge request id5-sync/Prebid.js!50
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 366b6a9a00

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

window.googletag.cmd.push(() => {
for (const tag in tags) {
window.googletag.pubads().setTargeting(config.params.gamTargetingPrefix + '_' + tag, tags[tag]);
window.googletag.setConfig({targeting: {[config.params.gamTargetingPrefix + '_' + tag]: tags[tag]}});

Choose a reason for hiding this comment

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

P1 Badge Keep GAM targeting on the pubads service

This replaces the standard GPT targeting call (googletag.pubads().setTargeting) with googletag.setConfig({targeting: ...}). In GPT, page-level targeting is set on the pubads service; setConfig is used for other GPT configuration (see existing uses like PPS in modules/gptPreAuction.ts) and doesn’t apply key/value targeting, so these tags won’t reach GAM when gamTargetingPrefix is enabled. This is a regression from the previous behavior and will break publishers relying on the GAM targeting tags.

Useful? React with 👍 / 👎.

Copy link
Contributor

Choose a reason for hiding this comment

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

Isn't pubads().setTargeting deprecated https://developers.google.com/publisher-tag/reference#googletag.PubAdsService.setTargeting ?
Also GPT Key-Value targeting page was updated to use setConfig https://developers.google.com/publisher-tag/guides/key-value-targeting

Copy link
Collaborator

Choose a reason for hiding this comment

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

Choose a reason for hiding this comment

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

Codex couldn't complete this request. Try again later.

@patmmccann patmmccann self-assigned this Jan 30, 2026
@coveralls
Copy link
Collaborator

Pull Request Test Coverage Report for Build 21179635754

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 136 of 137 (99.27%) changed or added relevant lines in 2 files are covered.
  • 3 unchanged lines in 2 files lost coverage.
  • Overall coverage increased (+0.001%) to 96.216%

Changes Missing Coverage Covered Lines Changed/Added Lines %
test/spec/modules/id5IdSystem_spec.js 123 124 99.19%
Files with Coverage Reduction New Missed Lines %
modules/kinessoIdSystem.js 1 83.15%
libraries/medianetUtils/logger.js 2 83.78%
Totals Coverage Status
Change from base Build 21178147618: 0.001%
Covered Lines: 208459
Relevant Lines: 216658

💛 - Coveralls

@patmmccann patmmccann merged commit 969ac6a into prebid:master Feb 5, 2026
102 checks passed
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.

4 participants