Skip to content

Commit afaae43

Browse files
author
softcoder594
committed
optable-targeting: rename gdpr query attribute
1 parent fa904ed commit afaae43

File tree

2 files changed

+2
-2
lines changed
  • extra/modules/optable-targeting/src

2 files changed

+2
-2
lines changed

extra/modules/optable-targeting/src/main/java/org/prebid/server/hooks/modules/optable/targeting/v1/core/QueryBuilder.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ private void addAttributes(StringBuilder sb, OptableAttributes optableAttributes
5757
Optional.ofNullable(optableAttributes.getGdprConsent()).ifPresent(consent ->
5858
sb.append("&gdpr_consent=").append(consent));
5959
Optional.of(optableAttributes.isGdprApplies()).ifPresent(applies ->
60-
sb.append("&gdprApplies=").append(applies ? 1 : 0));
60+
sb.append("&gdpr=").append(applies ? 1 : 0));
6161
Optional.ofNullable(optableAttributes.getGpp()).ifPresent(tcf ->
6262
sb.append("&gpp=").append(tcf));
6363
Optional.ofNullable(optableAttributes.getGppSid()).ifPresent(gppSids -> {

extra/modules/optable-targeting/src/test/java/org/prebid/server/hooks/modules/optable/targeting/v1/core/QueryBuilderTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public void shouldBuildQueryStringWithExtraAttributes() {
4242
final String query = target.build(ids, optableAttributes);
4343

4444
// then
45-
assertThat(query).contains("&gdprApplies=1", "&gdpr_consent=tcf", "&timeout=100ms");
45+
assertThat(query).contains("&gdpr=1", "&gdpr_consent=tcf", "&timeout=100ms");
4646
}
4747

4848
@Test

0 commit comments

Comments
 (0)