Skip to content

Commit 6ea6a3a

Browse files
GeneGeniejsnellbaker
authored andcommitted
Add Adtelligent gdpr support (prebid#3561)
* add adtelligent gdpr support * Fix test
1 parent d175960 commit 6ea6a3a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

modules/adtelligentBidAdapter.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ function bidToTag(bidRequests, bidderRequest) {
126126
domain: utils.getTopWindowLocation().hostname
127127
};
128128

129-
if (bidderRequest && bidderRequest.gdprConsent) {
129+
if (bidderRequest && bidderRequest.gdprConsent && bidderRequest.gdprConsent.gdprApplies) {
130130
tag.gdpr = 1;
131131
tag.gdpr_consent = bidderRequest.gdprConsent.consentString;
132132
}

test/spec/modules/adtelligentBidAdapter_spec.js

+1
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ const displayBidderRequestWithGdpr = {
9191
bidderCode: 'bidderCode',
9292
bids: [{bidId: '2e41f65424c87c'}],
9393
gdprConsent: {
94+
gdprApplies: true,
9495
consentString: 'test'
9596
}
9697
};

0 commit comments

Comments
 (0)