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

gdprApplies is undefined at Object.getUserSyncs non-GDPR country #12414

Closed
Roi467 opened this issue Nov 5, 2024 · 1 comment · Fixed by #12416
Closed

gdprApplies is undefined at Object.getUserSyncs non-GDPR country #12414

Roi467 opened this issue Nov 5, 2024 · 1 comment · Fixed by #12416
Assignees
Labels

Comments

@Roi467
Copy link

Roi467 commented Nov 5, 2024

Bug

Description

When trying to run an auction from a non-GPDR country, it throws an error

Cannot read properties of undefined (reading 'gdprApplies')
at Object.getUserSyncs

1

Steps to reproduce

try to run an auction with a non-GDPR country
in my particular case, it was with holidBidder

Expected results

Actual results

Platform details

Other information

I found the issue I tried to get the pbjs.getConsentMetadata the gdpr was undefined
and with a GDPR country, I got the full structure of the gdpr (include the gdprApplies)
3
2

@dgirardi
Copy link
Collaborator

dgirardi commented Nov 5, 2024

This appears to be a bug specific to holid and iframe syncs. A workaround while waiting for the fix is to disable iframe syncs for holid, for example:

pbjs.setConfig({
    userSync: {
        filterSettings: {
            iframe: {
                bidders: ['holid'],
                filter: 'exclude'
            }
        }
    }
});

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

Successfully merging a pull request may close this issue.

3 participants