Skip to content
Open
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
@@ -1,5 +1,6 @@
package org.prebid.server.functional.model.config

import com.fasterxml.jackson.annotation.JsonProperty
import com.fasterxml.jackson.databind.PropertyNamingStrategies
import com.fasterxml.jackson.databind.annotation.JsonNaming
import groovy.transform.ToString
Expand All @@ -8,6 +9,8 @@ import groovy.transform.ToString
@JsonNaming(PropertyNamingStrategies.KebabCaseStrategy)
class PbResponseCorrection {

Boolean enabled
AppVideoHtml appVideoHtml
Boolean enabled
AppVideoHtml appVideoHtml
@JsonProperty("suppress-ibv")
SuppressIbv suppressInBannerVideo
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package org.prebid.server.functional.model.config

import com.fasterxml.jackson.databind.PropertyNamingStrategies
import com.fasterxml.jackson.databind.annotation.JsonNaming
import groovy.transform.ToString
import org.prebid.server.functional.model.bidder.BidderName

@ToString(includeNames = true, ignoreNulls = true)
@JsonNaming(PropertyNamingStrategies.LowerCaseStrategy)
class SuppressIbv {

Boolean enabled
List<BidderName> excludedBidders
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ enum BidRejectionReason {
RESPONSE_REJECTED_INVALID_CREATIVE(350),
RESPONSE_REJECTED_INVALID_CREATIVE_SIZE(351),
RESPONSE_REJECTED_INVALID_CREATIVE_NOT_SECURE(352),

RESPONSE_REJECTED_DUE_TO_IN_BANNER_VIDEO(353),

Comment on lines +26 to +28
Copy link
Collaborator

Choose a reason for hiding this comment

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

it is a part of response_rejection group, no need of extra space

RESPONSE_REJECTED_ADVERTISER_BLOCKED(356)

@JsonValue
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ package org.prebid.server.functional.model.response.auction
import com.fasterxml.jackson.databind.PropertyNamingStrategies
import com.fasterxml.jackson.databind.annotation.JsonNaming
import groovy.transform.ToString
import org.prebid.server.functional.model.bidder.BidderName

@ToString(includeNames = true, ignoreNulls = true)
@JsonNaming(PropertyNamingStrategies.LowerCaseStrategy)
class SeatNonBid {

String seat
BidderName seat
List<NonBid> nonBid
}
Original file line number Diff line number Diff line change
Expand Up @@ -1135,7 +1135,7 @@ class BidderParamsSpec extends BaseSpec {
["No match between the configured currencies and bidRequest.cur"]

def seatNonBid = response.ext.seatnonbid[0]
assert seatNonBid.seat == BidderName.GENERIC.value
assert seatNonBid.seat == BidderName.GENERIC
assert seatNonBid.nonBid[0].impId == bidRequest.imp[0].id
assert seatNonBid.nonBid[0].statusCode == REQUEST_BLOCKED_UNACCEPTABLE_CURRENCY

Expand Down Expand Up @@ -1230,7 +1230,7 @@ class BidderParamsSpec extends BaseSpec {
assert response.ext.seatnonbid.size() == 1

def seatNonBid = response.ext.seatnonbid[0]
assert seatNonBid.seat == BidderName.ALIAS.value
assert seatNonBid.seat == BidderName.ALIAS
assert seatNonBid.nonBid[0].impId == bidRequest.imp[0].id
assert seatNonBid.nonBid[0].statusCode == REQUEST_BLOCKED_UNACCEPTABLE_CURRENCY

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package org.prebid.server.functional.tests

import org.mockserver.model.HttpStatusCode
import org.prebid.server.functional.model.bidder.BidderName
import org.prebid.server.functional.model.config.AccountAuctionConfig
import org.prebid.server.functional.model.config.AccountBidValidationConfig
import org.prebid.server.functional.model.config.AccountConfig
Expand Down Expand Up @@ -57,7 +58,7 @@ class SeatNonBidSpec extends BaseSpec {
assert response.ext.seatnonbid.size() == 1

def seatNonBid = response.ext.seatnonbid[0]
assert seatNonBid.seat == GENERIC.value
assert seatNonBid.seat == BidderName.GENERIC
assert seatNonBid.nonBid[0].impId == bidRequest.imp[0].id
assert seatNonBid.nonBid[0].statusCode == ERROR_NO_BID

Expand All @@ -83,7 +84,7 @@ class SeatNonBidSpec extends BaseSpec {
assert response.ext.seatnonbid.size() == 1

def seatNonBid = response.ext.seatnonbid[0]
assert seatNonBid.seat == GENERIC.value
assert seatNonBid.seat == BidderName.GENERIC
assert seatNonBid.nonBid[0].impId == bidRequest.imp[0].id
assert seatNonBid.nonBid[0].statusCode == ERROR_INVALID_BID_RESPONSE
}
Expand All @@ -105,7 +106,7 @@ class SeatNonBidSpec extends BaseSpec {
assert response.ext.seatnonbid.size() == 1

def seatNonBid = response.ext.seatnonbid[0]
assert seatNonBid.seat == GENERIC.value
assert seatNonBid.seat == BidderName.GENERIC
assert seatNonBid.nonBid[0].impId == bidRequest.imp[0].id
assert seatNonBid.nonBid[0].statusCode == ERROR_BIDDER_UNREACHABLE
}
Expand Down Expand Up @@ -138,7 +139,7 @@ class SeatNonBidSpec extends BaseSpec {
assert response.ext.seatnonbid.size() == 1

def seatNonBid = response.ext.seatnonbid[0]
assert seatNonBid.seat == GENERIC.value
assert seatNonBid.seat == BidderName.GENERIC
assert seatNonBid.nonBid[0].impId == bidRequest.imp[0].id
assert seatNonBid.nonBid[0].statusCode == RESPONSE_REJECTED_INVALID_CREATIVE_SIZE
}
Expand Down Expand Up @@ -169,7 +170,7 @@ class SeatNonBidSpec extends BaseSpec {
assert response.ext.seatnonbid.size() == 1

def seatNonBid = response.ext.seatnonbid[0]
assert seatNonBid.seat == GENERIC.value
assert seatNonBid.seat == BidderName.GENERIC
assert seatNonBid.nonBid[0].impId == bidRequest.imp[0].id
assert seatNonBid.nonBid[0].statusCode == RESPONSE_REJECTED_INVALID_CREATIVE_NOT_SECURE

Expand Down Expand Up @@ -216,7 +217,7 @@ class SeatNonBidSpec extends BaseSpec {
assert response.ext.seatnonbid.size() == 1

def seatNonBid = response.ext.seatnonbid[0]
assert seatNonBid.seat == GENERIC.value
assert seatNonBid.seat == BidderName.GENERIC
assert seatNonBid.nonBid[0].impId == bidRequest.imp[0].id
assert seatNonBid.nonBid[0].statusCode == ERROR_NO_BID

Expand Down Expand Up @@ -277,7 +278,7 @@ class SeatNonBidSpec extends BaseSpec {
assert seatNonBids.size() == 1

def seatNonBid = seatNonBids[0]
assert seatNonBid.seat == GENERIC.value
assert seatNonBid.seat == BidderName.GENERIC
assert seatNonBid.nonBid[0].impId == bidRequest.imp[0].id
assert seatNonBid.nonBid[0].statusCode == ERROR_TIMED_OUT
}
Expand All @@ -301,7 +302,7 @@ class SeatNonBidSpec extends BaseSpec {
assert seatNonBids.size() == 1

def seatNonBid = seatNonBids[0]
assert seatNonBid.seat == GENERIC.value
assert seatNonBid.seat == BidderName.GENERIC
assert seatNonBid.nonBid[0].impId == bidRequest.imp[0].id
assert seatNonBid.nonBid[0].statusCode == REQUEST_BLOCKED_UNSUPPORTED_MEDIA_TYPE

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1521,7 +1521,7 @@ class Ortb2BlockingSpec extends ModuleBaseSpec {
assert response.ext.seatnonbid.size() == 1

def seatNonBid = response.ext.seatnonbid[0]
assert seatNonBid.seat == ErrorType.GENERIC.value
assert seatNonBid.seat == GENERIC
assert seatNonBid.nonBid[0].impId == bidRequest.imp[0].id
assert seatNonBid.nonBid[0].statusCode == RESPONSE_REJECTED_ADVERTISER_BLOCKED
}
Expand Down
Loading
Loading