Skip to content

Commit

Permalink
Add new ORTB 2.6 fields
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoxaAntoxic committed Dec 22, 2023
1 parent 6a8129a commit a98282b
Show file tree
Hide file tree
Showing 5 changed files with 81 additions and 3 deletions.
6 changes: 6 additions & 0 deletions src/main/java/com/iab/openrtb/request/Audio.java
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,12 @@ public class Audio {
*/
Integer nvol;

/**
* An array of objects (Section 3.2.35)
* indicating the floor prices for audio creatives of various durations that the buyer may bid with.
*/
List<DurFloor> durfloors;

/**
* Placeholder for exchange-specific extensions to OpenRTB.
*/
Expand Down
13 changes: 10 additions & 3 deletions src/main/java/com/iab/openrtb/request/BidRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,16 @@ public class BidRequest {
List<String> wlangb;

/**
* Blocked advertiser categories using the specified category taxonomy. <p/>
* The taxonomy to be used is defined by the cattax field. If no cattax
* field is supplied IAB Content Category Taxonomy 1.0 is assumed.
* Allowed advertiser categories using the specified category taxonomy.
* The taxonomy to be used is defined by the cattax field.
* If no cattax field is supplied IAB Content Taxonomy 1.0 is assumed. Only one of acat or bcat should be present.
*/
List<String> acat;

/**
* Blocked advertiser categories using the specified category taxonomy.
* The taxonomy to be used is defined by the cattax field.
* If no cattax field is supplied IAB Content Taxonomy 1.0 is assumed. Only one of acat or bcat should be present.
*/
List<String> bcat;

Expand Down
18 changes: 18 additions & 0 deletions src/main/java/com/iab/openrtb/request/Deal.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,24 @@ public class Deal {
*/
List<String> wadomain;

/**
* Indicates that the deal is of type `guaranteed` and the bidder must bid on the deal,
* where 0 = not a guaranteed deal, 1 = guaranteed deal.
*/
Integer guar;

/**
* Minimum CPM per second. This is a price floor for video or audio impression opportunities,
* relative to the duration of bids an advertiser may submit.
*/
BigDecimal mincpmpersec;

/**
* Container for floor price by duration information,
* to be used if a given deal is eligible for video or audio demand.
*/
List<DurFloor> durfloors;

/**
* Placeholder for exchange-specific extensions to OpenRTB.
*/
Expand Down
41 changes: 41 additions & 0 deletions src/main/java/com/iab/openrtb/request/DurFloor.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
package com.iab.openrtb.request;

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

import java.math.BigDecimal;

/**
* This object allows sellers to specify price floors for video and audio creatives, whose price varies based on time.
*/
@Value
@Builder
public class DurFloor {

/**
* An integer indicating the low end of a duration range.
* If this value is missing, the low end is unbounded. Either mindur or maxdur is required, but not both.
*/
Integer mindur;

/**
* An integer indicating the high end of a duration range.
* If this value is missing, the high end is unbounded. Either mindur or maxdur is required, but not both.
*/
Integer maxdur;

/**
* Minimum bid for a given impression opportunity,
* if bidding with a creative in this duration range, expressed in CPM.
* For any creatives whose durations are outside of the defined min/max,
* the `bidfloor` at the `Imp` level will serve as the default floor.
*/
BigDecimal bidfloor;

/**
* Placeholder for vendor specific extensions to this object
*/
ObjectNode ext;

}
6 changes: 6 additions & 0 deletions src/main/java/com/iab/openrtb/request/Video.java
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,12 @@ public class Video {
*/
List<Integer> companiontype;

/**
* An array of objects (Section 3.2.35)
* indicating the floor prices for video creatives of various durations that the buyer may bid with.
*/
List<DurFloor> durfloors;

/**
* Placeholder for exchange-specific extensions to OpenRTB.
*/
Expand Down

0 comments on commit a98282b

Please sign in to comment.