forked from prebid/openrtb
-
Notifications
You must be signed in to change notification settings - Fork 0
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
c35cfb2
commit 3dee7e9
Showing
9 changed files
with
129 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
package openrtb2 | ||
|
||
import ( | ||
"encoding/json" | ||
) | ||
|
||
// Object: DurFloors | ||
// | ||
// This object allows sellers to specify price floors for video and audio creatives, whose price varies based on time. | ||
// For example: 1-15 seconds at a floor of $5; 16-30 seconds at a floor of $10, > 31 seconds at a floor of $20. | ||
// There are no explicit constraints on the defined ranges, nor guarantees that they don't overlap. | ||
// In cases where multiple ranges may apply, it is up to the buyer and seller to coordinate on which floor is applicable. | ||
type DurFloors struct { | ||
|
||
// Attribute: | ||
// mindur | ||
// Type: | ||
// integer | ||
// Description: | ||
// 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. | ||
MinDur int64 `json:"mindur,omitempty"` | ||
|
||
// Attribute: | ||
// maxdur | ||
// Type: | ||
// integer | ||
// Description: | ||
// 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. | ||
MaxDur int64 `json:"maxdur,omitempty"` | ||
|
||
// Attribute: | ||
// bidfloor | ||
// Type: | ||
// float; default 0 | ||
// Description: | ||
// 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. | ||
BidFloor float64 `json:"bidfloor,omitempty"` | ||
|
||
// Attribute: | ||
// ext | ||
// Type: | ||
// object | ||
// Definition: | ||
// Placeholder for vendor specific extensions to this object. | ||
Ext json.RawMessage `json:"ext,omitempty"` | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ import "encoding/json" | |
|
||
// Object: Refresh | ||
type Refresh struct { | ||
|
||
// Attribute: | ||
// refsettings | ||
// Type: | ||
|
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