Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ class AccountAuctionConfig {
BidAdjustment bidAdjustments
BidRounding bidRounding
Integer impressionLimit
List<BidderName> secondaryBidders

@JsonProperty("price_granularity")
PriceGranularityType priceGranularitySnakeCase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,4 +170,16 @@ class BidRequest {
ext.prebid.events = new Events()
}
}

void enabledReturnAllBidStatus() {
if (!ext) {
ext = new BidRequestExt()
}
if (!ext.prebid) {
ext.prebid = new Prebid()
}
if (!ext.prebid.returnAllBidStatus) {
ext.prebid.returnAllBidStatus = true
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ class Prebid {
List<String> profileNames
@JsonProperty("kvps")
Map<String, String> keyValuePairs
List<BidderName> secondaryBidders

static class Channel {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ enum ErrorType {
OPENX("openx"),
AMX("amx"),
AMX_UPPER_CASE("AMX"),
OPENX_ALIAS("openxalias"),
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not regular alias?


@JsonValue
final String value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import org.prebid.server.functional.model.request.auction.Imp
import org.prebid.server.functional.model.response.auction.BidResponse
import org.testcontainers.containers.MockServerContainer

import static java.util.concurrent.TimeUnit.MILLISECONDS
import static java.util.concurrent.TimeUnit.SECONDS
import static org.mockserver.model.HttpRequest.request
import static org.mockserver.model.HttpResponse.response
import static org.mockserver.model.HttpStatusCode.OK_200
Expand Down Expand Up @@ -47,6 +49,13 @@ class Bidder extends NetworkScaffolding {
: HttpResponse.notFoundResponse()}
}

void setResponseWithDelay(Long dilayTimeoutMillisecond = 5000) {
mockServerClient.when(request().withPath(endpoint), Times.unlimited(), TimeToLive.unlimited(), -10)
.respond {request -> request.withPath(endpoint)
? response().withDelay(MILLISECONDS, dilayTimeoutMillisecond).withStatusCode(OK_200.code()).withBody(getBodyByRequest(request))
: HttpResponse.notFoundResponse()}
}

List<BidderRequest> getBidderRequests(String bidRequestId) {
getRecordedRequestsBody(bidRequestId).collect { decode(it, BidderRequest) }
}
Expand Down
Loading