diff --git a/src/main/java/org/prebid/server/bidder/smarthub/SmarthubBidder.java b/src/main/java/org/prebid/server/bidder/smarthub/SmarthubBidder.java index ae00fa4675e..73df9290df2 100644 --- a/src/main/java/org/prebid/server/bidder/smarthub/SmarthubBidder.java +++ b/src/main/java/org/prebid/server/bidder/smarthub/SmarthubBidder.java @@ -11,6 +11,7 @@ import io.vertx.core.MultiMap; import io.vertx.core.http.HttpMethod; import org.apache.commons.collections4.CollectionUtils; +import org.apache.commons.lang3.StringUtils; import org.prebid.server.bidder.Bidder; import org.prebid.server.bidder.model.BidderBid; import org.prebid.server.bidder.model.BidderCall; @@ -67,7 +68,7 @@ private MultiMap resolveHeaders() { } private String buildEndpointUrl(ExtImpSmarthub extImpSmarthub) { - return endpointTemplate.replace("{{Host}}", extImpSmarthub.getPartnerName()) + return endpointTemplate.replace("{{Host}}", StringUtils.defaultString(extImpSmarthub.getPartnerName())) .replace("{{AccountID}}", extImpSmarthub.getSeat()) .replace("{{SourceId}}", extImpSmarthub.getToken()); } diff --git a/src/main/resources/static/bidder-params/smarthub.json b/src/main/resources/static/bidder-params/smarthub.json index 97fe7ecc237..1a68bf5cfc3 100644 --- a/src/main/resources/static/bidder-params/smarthub.json +++ b/src/main/resources/static/bidder-params/smarthub.json @@ -6,8 +6,7 @@ "properties": { "partnerName": { "type": "string", - "description": "Attekmi (formerly SmartHub) unique partner name", - "minLength": 1 + "description": "Attekmi (formerly SmartHub) unique partner name" }, "seat": { "type": "string", @@ -21,7 +20,6 @@ } }, "required": [ - "partnerName", "seat", "token" ]