Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ private BidderBid toBidderBid(BidRequest bidRequest, StroeerCoreBid stroeercoreB
.price(stroeercoreBid.getCpm())
.adm(stroeercoreBid.getAdMarkup())
.crid(stroeercoreBid.getCreativeId())
.adomain(stroeercoreBid.getAdomain())
.ext(bidExt)
.build(),
getBidType(stroeercoreBid.getImpId(), bidRequest.getImp()),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import lombok.Value;

import java.math.BigDecimal;
import java.util.List;

@Value
@Builder
Expand All @@ -29,4 +30,6 @@ public class StroeerCoreBid {
String creativeId;

ObjectNode dsa;

List<String> adomain;
}
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ public void makeBidsShouldReturnExpectedBidderBids() throws JsonProcessingExcept
.width(300)
.height(600)
.dsa(dsaResponse.deepCopy())
.adomain(null)
.build();

final StroeerCoreBid videoBid = StroeerCoreBid.builder()
Expand All @@ -304,6 +305,7 @@ public void makeBidsShouldReturnExpectedBidderBids() throws JsonProcessingExcept
.cpm(BigDecimal.valueOf(1.58))
.creativeId("vid")
.dsa(null)
.adomain(List.of("random-domain-dot-com", "test.com"))
.build();

final StroeerCoreBidResponse response = StroeerCoreBidResponse.of(List.of(bannerBid, videoBid));
Expand All @@ -321,6 +323,7 @@ public void makeBidsShouldReturnExpectedBidderBids() throws JsonProcessingExcept
.crid("foo")
.w(300)
.h(600)
.adomain(null)
.ext(mapper.createObjectNode().set("dsa", dsaResponse))
.build();

Expand All @@ -330,6 +333,7 @@ public void makeBidsShouldReturnExpectedBidderBids() throws JsonProcessingExcept
.adm("<vast><span></span></vast>")
.price(BigDecimal.valueOf(1.58))
.crid("vid")
.adomain(List.of("random-domain-dot-com", "test.com"))
.ext(null)
.build();

Expand Down
Loading