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

Telaria Adapter: GDPR support #3701

Merged
merged 22 commits into from
Apr 5, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
5dcf4b5
Added telaria bid adapter
tremorvideo Aug 1, 2018
0a19ea2
more documentation
tremorvideo Aug 1, 2018
e1d19e4
Added more test cases. And improved some code in the adapter
tremorvideo Aug 1, 2018
0863824
Removed the check for optional params, they are handled in the server…
tremorvideo Aug 1, 2018
cb0973a
added some spaces to fix CircleCI tests
tremorvideo Aug 1, 2018
836779c
added some spaces to fix CircleCI tests
tremorvideo Aug 1, 2018
850c4f4
fixed code indentation in /spec/AnalyticsAdapter_spec.js which causin…
tremorvideo Aug 1, 2018
ad01373
Reverted the changes
tremorvideo Aug 1, 2018
df23a42
merged with prebid master.
tremorvideo Aug 1, 2018
de868c1
merged with prebid master.
tremorvideo Aug 1, 2018
dd996a9
creative Id is required when we build a response but our server doesn…
tremorvideo Aug 1, 2018
7ef41b9
- removed an un used method
tremorvideo Aug 3, 2018
d7b95e6
Merge https://github.com/prebid/Prebid.js
tremorvideo Aug 3, 2018
58cc7ce
Merge branch 'master' of https://github.com/prebid/Prebid.js
Dec 12, 2018
81ec17a
merging to master
Dec 12, 2018
cebc764
updated telaria bid adapter to use player size provided by the bid.me…
Dec 13, 2018
7d617a7
- removed the requirement for having player size
Dec 14, 2018
012a77b
added a param to the ad call url to let us know that the request is c…
Dec 18, 2018
178c072
to lower casing the bidder code.
Dec 19, 2018
fb10552
Merge branch 'master' of https://github.com/prebid/Prebid.js
Apr 1, 2019
7c6f20c
Merge branch 'master' of https://github.com/prebid/Prebid.js
Apr 1, 2019
32831bf
Sending the gdpr & gdpr consent string only if they're defined
Apr 2, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion modules/telariaBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,21 @@ function generateUrl(bid, bidderRequest) {
}

url += ('&transactionId=' + bid.transactionId + '&hb=1');
url += ('&referrer=' + encodeURIComponent(bidderRequest.refererInfo.referer));

if (bidderRequest) {
if (bidderRequest.gdprConsent) {
if (typeof bidderRequest.gdprConsent.gdprApplies === 'boolean') {
url += ('&gdpr=' + (bidderRequest.gdprConsent.gdprApplies ? 1 : 0));
}
if (bidderRequest.gdprConsent.consentString) {
url += ('&gdpr_consent=' + bidderRequest.gdprConsent.consentString);
}
}

if (bidderRequest.refererInfo && bidderRequest.refererInfo.referer) {
url += ('&referrer=' + encodeURIComponent(bidderRequest.refererInfo.referer));
}
}

return (url + '&fmt=json');
}
Expand Down
4 changes: 4 additions & 0 deletions test/spec/modules/telariaBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ const REQUEST = {
const BIDDER_REQUEST = {
'refererInfo': {
'referer': 'www.test.com'
},
'gdprConsent': {
'consentString': 'BOJ/P2HOJ/P2HABABMAAAAAZ+A==',
'gdprApplies': true
}
};

Expand Down