Skip to content

Commit

Permalink
Fix field name
Browse files Browse the repository at this point in the history
  • Loading branch information
SerhiiNahornyi committed Feb 7, 2024
1 parent 6d7efd3 commit 4fc3bf1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ private HttpRequest<AdQueryRequest> createRequest(BidRequest bidRequest, Imp imp
private static AdQueryRequest createAdQueryRequest(BidRequest bidRequest, Imp imp, ExtImpAdQuery extImpAdQuery) {
final Optional<Device> optionalDevice = Optional.ofNullable(bidRequest.getDevice());
return AdQueryRequest.builder()
.v(PREBID_VERSION)
.version(PREBID_VERSION)
.placementCode(extImpAdQuery.getPlacementId())
.auctionId(StringUtils.EMPTY)
.type(extImpAdQuery.getType())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
public class AdQueryRequest {

@JsonProperty("v")
String v;
String version;

@JsonProperty("placementCode")
String placementCode;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public void makeHttpRequestsShouldCorrectPopulateAdQueryRequest() {
assertThat(result.getValue()).hasSize(1)
.extracting(HttpRequest::getPayload)
.containsExactly(AdQueryRequest.builder()
.v("server")
.version("server")
.placementCode("pl1")
.auctionId("")
.type("6d93f2a0e5f0fe2cc3a6e9e3ade964b43b07f897")
Expand Down

0 comments on commit 4fc3bf1

Please sign in to comment.