Skip to content
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

userId Module: update GAM APIs for Eids #10172

Merged
merged 1 commit into from
Jul 10, 2023

Conversation

dlackty
Copy link
Contributor

@dlackty dlackty commented Jul 1, 2023

Type of change

  • Bugfix

  • Feature

  • New bidder adapter

  • Code style update (formatting, local variables)

  • Refactoring (no functional changes, no api changes)

  • Build related changes

  • CI related changes

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

  • Other

Description of change

Google renamed its product name from encrypted signals to secure signals, and thus API function names were changed too. Though the legacy functions are still around, it outputs deprecation messages to console. So let's migrate to new function names.

Other information

@ChrisHuie ChrisHuie changed the title userId Module: Update GAM APIs for eids userId Module: update GAM APIs for Eids Jul 6, 2023
@ChrisHuie ChrisHuie requested a review from dgirardi July 6, 2023 12:38
const encryptedSignalSources = config.getConfig('userSync.encryptedSignalSources');
if (encryptedSignalSources) {
const registerDelay = encryptedSignalSources.registerDelay || 0;
setTimeout(() => {
encryptedSignalSources['sources'] && encryptedSignalSources['sources'].forEach(({ source, encrypt, customFunc }) => {
source.forEach((src) => {
window.googletag.encryptedSignalProviders.push({
window.googletag.secureSignalProviders.push({
id: src,
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't know how to test this - but id does not appear in the docs you linked.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry that I linked to the wrong section in the doc. Please check this link instead:
https://developers.google.com/publisher-tag/reference#googletag.securesignals.biddersignalprovider

@patmmccann patmmccann merged commit e43ed0e into prebid:master Jul 10, 2023
2 checks passed
github-ishara-chan-tung pushed a commit to ebuzzing/Prebid.js that referenced this pull request Jul 12, 2023
santii7395 pushed a commit to themaven-net/Prebid.js that referenced this pull request Aug 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Using deprecated googletag.encryptedSignalProviders. Please use googletag.secureSignalProviders instead.
4 participants