Skip to content

Commit

Permalink
Bizzclick: post-review fixes #2
Browse files Browse the repository at this point in the history
  • Loading branch information
VeryExtraordinaryUsername committed Feb 26, 2024
1 parent d119ce4 commit 7c29370
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ public class BizzclickBidder implements Bidder<BidRequest> {
new TypeReference<>() {
};
private static final String DEFAULT_HOST = "us-e-node1";
private static final String URL_HOST_MACRO = "{{.Host}}";
private static final String URL_SOURCE_ID_MACRO = "{{.SourceId}}";
private static final String URL_ACCOUNT_ID_MACRO = "{{.AccountID}}";
private static final String URL_HOST_MACRO = "{{Host}}";
private static final String URL_SOURCE_ID_MACRO = "{{SourceId}}";
private static final String URL_ACCOUNT_ID_MACRO = "{{AccountID}}";
private static final String DEFAULT_CURRENCY = "USD";

private final String endpointUrl;
Expand Down Expand Up @@ -103,8 +103,8 @@ private static MultiMap headers(Device device) {
}

private String buildEndpointUrl(ExtImpBizzclick ext) {
final String host = StringUtils.isEmpty(ext.getHost()) ? DEFAULT_HOST : ext.getHost();
final String sourceId = StringUtils.isEmpty(ext.getSourceId()) ? ext.getPlacementId() : ext.getSourceId();
final String host = StringUtils.isBlank(ext.getHost()) ? DEFAULT_HOST : ext.getHost();
final String sourceId = StringUtils.isBlank(ext.getSourceId()) ? ext.getPlacementId() : ext.getSourceId();
return endpointUrl
.replace(URL_HOST_MACRO, HttpUtil.encodeUrl(host))
.replace(URL_SOURCE_ID_MACRO, HttpUtil.encodeUrl(sourceId))
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/bidder-config/bizzclick.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
adapters:
bizzclick:
endpoint: http://{{.Host}}.bizzclick.com/bid?rtb_seat_id={{.SourceId}}&secret_key={{.AccountID}}
endpoint: http://{{Host}}.bizzclick.com/bid?rtb_seat_id={{SourceId}}&secret_key={{AccountID}}
meta-info:
maintainer-email: [email protected]
app-media-types:
Expand Down

0 comments on commit 7c29370

Please sign in to comment.