Skip to content

Commit

Permalink
Yieldlab: Fix GDPR handling for AMP (#1821)
Browse files Browse the repository at this point in the history
  • Loading branch information
marki1an authored May 3, 2022
1 parent ddd8a77 commit 5b19ae7
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,13 @@ private String makeUrl(ExtImpYieldlab extImpYieldlab, BidRequest request) {
}

final String gdpr = getGdprParameter(request.getRegs());
if (StringUtils.isNotBlank(gdpr)) {
uriBuilder.addParameter("gdpr", gdpr);
}

final String consent = getConsentParameter(request.getUser());
if (StringUtils.isNotBlank(gdpr) && StringUtils.isNotBlank(consent)) {
uriBuilder.addParameter("gdpr", gdpr)
.addParameter("consent", consent);
if (StringUtils.isNotBlank(consent)) {
uriBuilder.addParameter("consent", consent);
}

return uriBuilder.toString();
Expand Down

0 comments on commit 5b19ae7

Please sign in to comment.