-
Notifications
You must be signed in to change notification settings - Fork 181
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adtarget and Adtelligent Bidders: Change Aid Type
- Loading branch information
1 parent
39c7a9f
commit c431768
Showing
12 changed files
with
124 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 2 additions & 5 deletions
7
src/main/java/org/prebid/server/bidder/adtarget/proto/AdtargetImpExt.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,11 @@ | ||
package org.prebid.server.bidder.adtarget.proto; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Value; | ||
import org.prebid.server.proto.openrtb.ext.request.adtarget.ExtImpAdtarget; | ||
|
||
@AllArgsConstructor(staticName = "of") | ||
@Value | ||
@Value(staticConstructor = "of") | ||
public class AdtargetImpExt { | ||
|
||
@JsonProperty("adtarget") | ||
ExtImpAdtarget extImpAdtarget; | ||
ExtImpAdtargetBidRequest extImp; | ||
} |
31 changes: 31 additions & 0 deletions
31
src/main/java/org/prebid/server/bidder/adtarget/proto/ExtImpAdtargetBidRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package org.prebid.server.bidder.adtarget.proto; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import lombok.Value; | ||
import org.prebid.server.proto.openrtb.ext.request.adtarget.ExtImpAdtarget; | ||
|
||
import java.math.BigDecimal; | ||
|
||
@Value(staticConstructor = "of") | ||
public class ExtImpAdtargetBidRequest { | ||
|
||
@JsonProperty("aid") | ||
Integer sourceId; | ||
|
||
@JsonProperty("placementId") | ||
Integer placementId; | ||
|
||
@JsonProperty("siteId") | ||
Integer siteId; | ||
|
||
@JsonProperty("bidFloor") | ||
BigDecimal bidFloor; | ||
|
||
public static ExtImpAdtargetBidRequest from(Integer sourceId, ExtImpAdtarget impExt) { | ||
return ExtImpAdtargetBidRequest.of( | ||
sourceId, | ||
impExt.getPlacementId(), | ||
impExt.getSiteId(), | ||
impExt.getBidFloor()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 2 additions & 5 deletions
7
src/main/java/org/prebid/server/bidder/adtelligent/proto/AdtelligentImpExt.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,11 @@ | ||
package org.prebid.server.bidder.adtelligent.proto; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Value; | ||
import org.prebid.server.proto.openrtb.ext.request.adtelligent.ExtImpAdtelligent; | ||
|
||
@AllArgsConstructor(staticName = "of") | ||
@Value | ||
@Value(staticConstructor = "of") | ||
public class AdtelligentImpExt { | ||
|
||
@JsonProperty("adtelligent") | ||
ExtImpAdtelligent extImpAdtelligent; | ||
ExtImpAdtelligentBidRequest extImp; | ||
} |
31 changes: 31 additions & 0 deletions
31
src/main/java/org/prebid/server/bidder/adtelligent/proto/ExtImpAdtelligentBidRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package org.prebid.server.bidder.adtelligent.proto; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import lombok.Value; | ||
import org.prebid.server.proto.openrtb.ext.request.adtelligent.ExtImpAdtelligent; | ||
|
||
import java.math.BigDecimal; | ||
|
||
@Value(staticConstructor = "of") | ||
public class ExtImpAdtelligentBidRequest { | ||
|
||
@JsonProperty("aid") | ||
Integer sourceId; | ||
|
||
@JsonProperty("placementId") | ||
Integer placementId; | ||
|
||
@JsonProperty("siteId") | ||
Integer siteId; | ||
|
||
@JsonProperty("bidFloor") | ||
BigDecimal bidFloor; | ||
|
||
public static ExtImpAdtelligentBidRequest from(Integer sourceId, ExtImpAdtelligent impExt) { | ||
return ExtImpAdtelligentBidRequest.of( | ||
sourceId, | ||
impExt.getPlacementId(), | ||
impExt.getSiteId(), | ||
impExt.getBidFloor()); | ||
} | ||
} |
21 changes: 2 additions & 19 deletions
21
src/main/java/org/prebid/server/proto/openrtb/ext/request/adtarget/ExtImpAdtarget.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,22 @@ | ||
package org.prebid.server.proto.openrtb.ext.request.adtarget; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Value; | ||
|
||
import java.math.BigDecimal; | ||
|
||
/** | ||
* Defines the contract for bidrequest.imp[i].ext.adtarget | ||
*/ | ||
@AllArgsConstructor(staticName = "of") | ||
@Value | ||
@Value(staticConstructor = "of") | ||
public class ExtImpAdtarget { | ||
|
||
/** | ||
* Defines the contract for bidrequest.imp[i].ext.adtarget.aid | ||
*/ | ||
@JsonProperty("aid") | ||
Integer sourceId; | ||
String sourceId; | ||
|
||
/** | ||
* Defines the contract for bidrequest.imp[i].ext.adtarget.placementId | ||
*/ | ||
@JsonProperty("placementId") | ||
Integer placementId; | ||
|
||
/** | ||
* Defines the contract for bidrequest.imp[i].ext.adtarget.siteId | ||
*/ | ||
@JsonProperty("siteId") | ||
Integer siteId; | ||
|
||
/** | ||
* Defines the contract for bidrequest.imp[i].ext.adtarget.bidFloor | ||
*/ | ||
@JsonProperty("bidFloor") | ||
BigDecimal bidFloor; | ||
} |
21 changes: 2 additions & 19 deletions
21
src/main/java/org/prebid/server/proto/openrtb/ext/request/adtelligent/ExtImpAdtelligent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,22 @@ | ||
package org.prebid.server.proto.openrtb.ext.request.adtelligent; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Value; | ||
|
||
import java.math.BigDecimal; | ||
|
||
/** | ||
* Defines the contract for bidrequest.imp[i].ext.adtelligent | ||
*/ | ||
@AllArgsConstructor(staticName = "of") | ||
@Value | ||
@Value(staticConstructor = "of") | ||
public class ExtImpAdtelligent { | ||
|
||
/** | ||
* Defines the contract for bidrequest.imp[i].ext.adtelligent.aid | ||
*/ | ||
@JsonProperty("aid") | ||
Integer sourceId; | ||
String sourceId; | ||
|
||
/** | ||
* Defines the contract for bidrequest.imp[i].ext.adtelligent.placementId | ||
*/ | ||
@JsonProperty("placementId") | ||
Integer placementId; | ||
|
||
/** | ||
* Defines the contract for bidrequest.imp[i].ext.adtelligent.siteId | ||
*/ | ||
@JsonProperty("siteId") | ||
Integer siteId; | ||
|
||
/** | ||
* Defines the contract for bidrequest.imp[i].ext.adtelligent.bidFloor | ||
*/ | ||
@JsonProperty("bidFloor") | ||
BigDecimal bidFloor; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.