-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dc7a0a9
commit b45b76e
Showing
23 changed files
with
318 additions
and
18 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
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
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
17 changes: 17 additions & 0 deletions
17
src/main/java/org/prebid/server/proto/openrtb/ext/request/ExtRequestPrebidSdk.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,17 @@ | ||
package org.prebid.server.proto.openrtb.ext.request; | ||
|
||
import lombok.Value; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* Defines the contract for bidrequest.ext.prebid.sdk | ||
*/ | ||
@Value(staticConstructor = "of") | ||
public class ExtRequestPrebidSdk { | ||
|
||
/** | ||
* Defines the contract for bidrequest.ext.prebid.sdk.renderers | ||
*/ | ||
List<ExtRequestPrebidSdkRenderer> renderers; | ||
} |
32 changes: 32 additions & 0 deletions
32
src/main/java/org/prebid/server/proto/openrtb/ext/request/ExtRequestPrebidSdkRenderer.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,32 @@ | ||
package org.prebid.server.proto.openrtb.ext.request; | ||
|
||
import com.fasterxml.jackson.databind.node.ObjectNode; | ||
import lombok.Value; | ||
|
||
/** | ||
* Defines the contract for bidrequest.ext.prebid.sdk.renderers[i] | ||
*/ | ||
@Value(staticConstructor = "of") | ||
public class ExtRequestPrebidSdkRenderer { | ||
|
||
/** | ||
* Defines the contract for bidrequest.ext.prebid.sdk.renderers[i].name | ||
*/ | ||
String name; | ||
|
||
/** | ||
* Defines the contract for bidrequest.ext.prebid.sdk.renderers[i].version | ||
*/ | ||
String version; | ||
|
||
/** | ||
* Defines the contract for bidrequest.ext.prebid.sdk.renderers[i].url | ||
*/ | ||
String url; | ||
|
||
/** | ||
* Defines the contract for bidrequest.ext.prebid.sdk.renderers[i].data | ||
*/ | ||
ObjectNode data; | ||
|
||
} |
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
70 changes: 70 additions & 0 deletions
70
src/main/java/org/prebid/server/proto/openrtb/ext/response/ExtBidPrebidMeta.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,70 @@ | ||
package org.prebid.server.proto.openrtb.ext.response; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.fasterxml.jackson.databind.node.ObjectNode; | ||
import lombok.Builder; | ||
import lombok.Value; | ||
|
||
import java.util.List; | ||
|
||
@Builder(toBuilder = true) | ||
@Value | ||
public class ExtBidPrebidMeta { | ||
|
||
@JsonProperty("adaptercode") | ||
String adapterCode; | ||
|
||
@JsonProperty("advertiserDomains") | ||
List<String> advertiserDomains; | ||
|
||
@JsonProperty("advertiserId") | ||
Integer advertiserId; | ||
|
||
@JsonProperty("advertiserName") | ||
String advertiserName; | ||
|
||
@JsonProperty("agencyId") | ||
Integer agencyId; | ||
|
||
@JsonProperty("agencyName") | ||
String agencyName; | ||
|
||
@JsonProperty("brandId") | ||
Integer brandId; | ||
|
||
@JsonProperty("brandName") | ||
String brandName; | ||
|
||
ObjectNode dchain; | ||
|
||
@JsonProperty("demandSource") | ||
String demandSource; | ||
|
||
@JsonProperty("mediaType") | ||
String mediaType; | ||
|
||
@JsonProperty("networkId") | ||
Integer networkId; | ||
|
||
@JsonProperty("networkName") | ||
String networkName; | ||
|
||
@JsonProperty("primaryCatId") | ||
String primaryCategoryId; | ||
|
||
@JsonProperty("rendererName") | ||
String rendererName; | ||
|
||
@JsonProperty("rendererVersion") | ||
String rendererVersion; | ||
|
||
@JsonProperty("rendererUrl") | ||
String rendererUrl; | ||
|
||
@JsonProperty("rendererData") | ||
ObjectNode rendererData; | ||
|
||
@JsonProperty("secondaryCatIds") | ||
List<String> secondaryCategoryIdList; | ||
|
||
} |
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 |
---|---|---|
|
@@ -34,6 +34,7 @@ class Prebid { | |
Map passThrough | ||
Events events | ||
Boolean createTids | ||
Sdk sdk | ||
|
||
static class Channel { | ||
|
||
|
12 changes: 12 additions & 0 deletions
12
src/test/groovy/org/prebid/server/functional/model/request/auction/Renderer.groovy
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,12 @@ | ||
package org.prebid.server.functional.model.request.auction | ||
|
||
import groovy.transform.ToString | ||
|
||
@ToString(includeNames = true, ignoreNulls = true) | ||
class Renderer { | ||
|
||
String name | ||
String version | ||
String url | ||
RendererData data | ||
} |
9 changes: 9 additions & 0 deletions
9
src/test/groovy/org/prebid/server/functional/model/request/auction/RendererData.groovy
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,9 @@ | ||
package org.prebid.server.functional.model.request.auction | ||
|
||
import groovy.transform.ToString | ||
|
||
@ToString(includeNames = true, ignoreNulls = true) | ||
class RendererData { | ||
|
||
String any | ||
} |
9 changes: 9 additions & 0 deletions
9
src/test/groovy/org/prebid/server/functional/model/request/auction/Sdk.groovy
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,9 @@ | ||
package org.prebid.server.functional.model.request.auction | ||
|
||
import groovy.transform.ToString | ||
|
||
@ToString(includeNames = true, ignoreNulls = true) | ||
class Sdk { | ||
|
||
List<Renderer> renderers | ||
} |
27 changes: 27 additions & 0 deletions
27
src/test/groovy/org/prebid/server/functional/model/response/auction/Meta.groovy
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,27 @@ | ||
package org.prebid.server.functional.model.response.auction | ||
|
||
import groovy.transform.ToString | ||
import org.prebid.server.functional.model.request.auction.RendererData | ||
|
||
@ToString(includeNames = true, ignoreNulls = true) | ||
class Meta { | ||
|
||
String adapterCode | ||
List<String> advertiserDomains | ||
Integer advertiserId | ||
String advertiserName | ||
Integer agencyId | ||
String agencyName | ||
Integer brandId | ||
String brandName | ||
String demandSource | ||
String mediaType | ||
Integer networkId | ||
String networkName | ||
String primaryCategoryId | ||
String rendererName | ||
String rendererVersion | ||
String rendererUrl | ||
RendererData rendererData | ||
List<String> secondaryCategoryIdList | ||
} |
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 |
---|---|---|
|
@@ -11,5 +11,6 @@ class Prebid { | |
String targetBidderCode | ||
Cache cache | ||
Events events | ||
Meta meta | ||
Map passThrough | ||
} |
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.