-
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
Kargo Bid Adapter: Removing Salesforce partner support #8140
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
b1cc757
Kargo Bid Adapter: Use currency from Bid Response
wwongkargo d69377a
Merge pull request #1 from KargoGlobal/use_currency_response
jsadwith 4be60a2
Kargo Bid Adapter: Fix failed test
wwongkargo a8af96a
Merge pull request #2 from KargoGlobal/fix-removed-loc
jsadwith 780e3c7
Merge branch 'prebid:master' into master
jsadwith 8265f06
Merge branch 'prebid:master' into master
jsadwith 9b0e4d3
Removing legacy partner code
jsadwith dd56c2e
Merge pull request #3 from KargoGlobal/remove-legacy-partner-code
jsadwith 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -172,28 +172,6 @@ export const spec = { | |
return spec._getCrbFromCookie(); | ||
}, | ||
|
||
_getKruxUserId() { | ||
return spec._getLocalStorageSafely('kxkar_user'); | ||
}, | ||
|
||
_getKruxSegments() { | ||
return spec._getLocalStorageSafely('kxkar_segs'); | ||
}, | ||
|
||
_getKrux() { | ||
const segmentsStr = spec._getKruxSegments(); | ||
let segments = []; | ||
|
||
if (segmentsStr) { | ||
segments = segmentsStr.split(','); | ||
} | ||
|
||
return { | ||
userID: spec._getKruxUserId(), | ||
segments: segments | ||
}; | ||
}, | ||
|
||
_getLocalStorageSafely(key) { | ||
try { | ||
return storage.getDataFromLocalStorage(key); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. fyi, bidders will be disabled from accessing local storage by default in prebid 7 |
||
|
@@ -205,7 +183,7 @@ export const spec = { | |
_getUserIds(tdid, usp, gdpr) { | ||
const crb = spec._getCrb(); | ||
const userIds = { | ||
kargoID: crb.userId, | ||
kargoID: crb.lexId, | ||
clientID: crb.clientId, | ||
crbIDs: crb.syncIds || {}, | ||
optOut: crb.optOut, | ||
|
@@ -235,7 +213,6 @@ export const spec = { | |
_getAllMetadata(tdid, usp, gdpr) { | ||
return { | ||
userIDs: spec._getUserIds(tdid, usp, gdpr), | ||
krux: spec._getKrux(), | ||
pageURL: window.location.href, | ||
rawCRB: spec._readCookie('krg_crb'), | ||
rawCRBLocalStorage: spec._getLocalStorageSafely('krg_crb') | ||
|
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.
you should not be writing cookies in the first party domain. I know it is out of scope of this PR, but this type of behavior will be imminently disallowed. Local storage is much more palatable to publishers. Writing your cookie in their domain without their awareness breaks many many sites.