-
Notifications
You must be signed in to change notification settings - Fork 1
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
user sync utilities #1
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
}); | ||
} | ||
|
||
export function resolveParams(params, alwaysPollAMP = false, resolveConsent = resolveConsentParams) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I approved on the assumption that everything is working as intended, but I am a bit curious why the resolveConsent var is used as a third parameter. As far as I can tell, resolveParams is only used by load syncs, which doesn't allow third argument to be passed in. I assume this is a placeholder for future development or something similar, but it did seem worth commenting on.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right it's unnecessary. I think at some point this function was more complex and I needed to mock this out from unit tests.
Let me see if I can summarize what this all about:
The README is pretty good. We'll just need to upgrade the AMP docs. People are likely to miss this shift because there's no such thing as a "major release" in this area. |
Reimplementation of
load-cookie
andload-cookie-with-consent
, from a single codebase, and adding GPP support.GPP support is limited to accepting and relaying the
gpp_sid
andgpp
query string parameters; there's currently no way to poll AMP for GPP.Closes prebid/prebid-universal-creative#212
Closes prebid/prebid-universal-creative#226
Related: #2