Skip to content

Commit

Permalink
userId Module: Update GAM APIs for eids (prebid#10172)
Browse files Browse the repository at this point in the history
  • Loading branch information
dlackty authored and Santiago Carabone committed Aug 22, 2023
1 parent b9126a3 commit c237afc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/userId/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -743,14 +743,14 @@ function registerSignalSources() {
if (!isGptPubadsDefined()) {
return;
}
window.googletag.encryptedSignalProviders = window.googletag.encryptedSignalProviders || [];
window.googletag.secureSignalProviders = window.googletag.secureSignalProviders || [];
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,
collectorFunction: () => getEncryptedEidsForSource(src, encrypt, customFunc)
});
Expand Down

0 comments on commit c237afc

Please sign in to comment.