Skip to content

Commit

Permalink
ORTB 2.6: Remove new fields from request for bidders that support ORT…
Browse files Browse the repository at this point in the history
…B 2.5 (#1963)
  • Loading branch information
CTMBNara authored Jul 22, 2022
1 parent a5731c7 commit 1c23171
Show file tree
Hide file tree
Showing 7 changed files with 384 additions and 56 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/iab/openrtb/request/Audio.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* those types. However, any given bid for the impression must conform to one of
* the offered types.
*/
@Builder
@Builder(toBuilder = true)
@Value
public class Audio {

Expand Down
2 changes: 2 additions & 0 deletions src/main/java/com/iab/openrtb/request/Channel.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.iab.openrtb.request;

import com.fasterxml.jackson.databind.node.ObjectNode;
import lombok.Builder;
import lombok.Value;

/**
Expand All @@ -13,6 +14,7 @@
* field while domain and id can be used for reporting and targeting
* purposes. See 7.6 for further examples.
*/
@Builder
@Value
public class Channel {

Expand Down
2 changes: 2 additions & 0 deletions src/main/java/com/iab/openrtb/request/Network.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.iab.openrtb.request;

import com.fasterxml.jackson.databind.node.ObjectNode;
import lombok.Builder;
import lombok.Value;

/**
Expand All @@ -13,6 +14,7 @@
* human-readable field while domain and id can be used for reporting
* and targeting purposes. See 7.6 for further examples.
*/
@Builder
@Value
public class Network {

Expand Down
14 changes: 11 additions & 3 deletions src/main/java/com/iab/openrtb/request/Producer.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.iab.openrtb.request;

import com.fasterxml.jackson.databind.node.ObjectNode;
import lombok.Builder;
import lombok.Value;

import java.util.List;
Expand All @@ -11,6 +12,7 @@
* distributed through different publishers and thus when the producer and
* publisher are not necessarily the same entity.
*/
@Builder(toBuilder = true)
@Value
public class Producer {

Expand All @@ -20,7 +22,9 @@ public class Producer {
*/
String id;

/** Content producer or originator name (e.g., “Warner Bros”). */
/**
* Content producer or originator name (e.g., “Warner Bros”).
*/
String name;

/**
Expand All @@ -36,9 +40,13 @@ public class Producer {
*/
List<String> cat;

/** Highest level domain of the content producer (e.g., “producer.com”). */
/**
* Highest level domain of the content producer (e.g., “producer.com”).
*/
String domain;

/** Placeholder for exchange-specific extensions to OpenRTB. */
/**
* Placeholder for exchange-specific extensions to OpenRTB.
*/
ObjectNode ext;
}
2 changes: 2 additions & 0 deletions src/main/java/com/iab/openrtb/request/UserAgent.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.iab.openrtb.request;

import com.fasterxml.jackson.databind.node.ObjectNode;
import lombok.Builder;
import lombok.Value;

import java.util.List;
Expand All @@ -13,6 +14,7 @@
* This is because the device.ua may contain a frozen or reduced user agent string
* due to deprecation of user agent strings by browsers.
*/
@Builder
@Value
public class UserAgent {

Expand Down
Loading

0 comments on commit 1c23171

Please sign in to comment.