-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Added user sync support for undertone bid adapter #3172
Merged
Merged
Changes from 3 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
8716044
Added user sync support for undertone bid adapter (new pull request)
omerko 6aab5fe
Added user sync support for undertone bid adapter
omerko 7e65ab6
fix indentation
omerko 0811513
Merge branch 'master' of https://github.com/prebid/Prebid.js into und…
omerko 02756de
Changed utils.getWindowTop() with the newer prebid utilities
omerko File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Can you use
http://prebid.org/dev-docs/bidder-adaptor.html#referrers
. You can usereferer
property to get top level hostVery soon we will be deprecating
utils.getWindowTop()
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.
Hi
Simply getting the referrer will not help me in this case.
I'm trying to retrieve the canonical url from the <link rel="canonical".. > element <link (https://www.w3.org/TR/capability-urls/#canonical-urls)
Only in case it does not exist, I need to use the full referrer url.
Will you support such functionality to access the top level document?
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 can try to access the top level document myself.
But regarding the new API to get the referer, I need to get the hostname out of it.
since it's a string I cannot do location.host, but can I use the URL api: https://developer.mozilla.org/en-US/docs/Web/API/URL
it does not support older IE versions
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.
@omerko
To get host you can use https://github.com/prebid/Prebid.js/blob/master/src/url.js#L27
To get canonical url, your current solution is fine. I will talk to team and try to add this feature. Can you create an issue with this feature request ?
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.
Thanks, I used the host extraction the way you suggested and for canonical I replaced getWindowTop with direct access to the window.top from adapter code.
Also I created a feature request for the canonical URL extraction here: #3221