Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[sc-12991] Upgrade to openRTB 2.6: Fork new repo #1

Merged
Merged
Show file tree
Hide file tree
Changes from 13 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
499 changes: 499 additions & 0 deletions .gitignore

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions adcom1/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ type App struct {
// string
// Definition:
// Bundle or package name of the app (e.g., “com.foo.mygame”) and should NOT be app store IDs (e.g., not iTunes store IDs).
// A platform-specific application identifier intended to be
// unique to the app and independent of the exchange. On
// Android, this should be a bundle or package name (e.g.,
// com.foo.mygame). On iOS, it is typically a numeric ID.
Bundle string `json:"bundle,omitempty"`

// Attribute:
Expand Down
6 changes: 6 additions & 0 deletions adcom1/linearity_mode.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
package adcom1

// LinearityMode represents options for media linearity, typically for video.
// Options for video linearity.
// “In-stream” or “linear” video refers to preroll, post-roll, or mid-roll video ads where the user is forced to watch ad in order to see the video content.
// “Overlay” or “non-linear” refer to ads that are shown on top of the video content.
//
// This OpenRTB list has values derived from the Inventory Quality Guidelines (IQG).
// Practitioners should keep in sync with updates to the IQG values.
type LinearityMode int8

// Options for media linearity, typically for video.
Expand Down
13 changes: 13 additions & 0 deletions adcom1/production_quality.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,16 @@ const (
ProductionProsumer ProductionQuality = 2 // Prosumer
ProductionUser ProductionQuality = 3 // User Generated (UGC)
)

// Ptr returns pointer to own value.
func (q ProductionQuality) Ptr() *ProductionQuality {
return &q
}

// Val safely dereferences pointer, returning default value (ProductionQualityUnknown) for nil.
func (q *ProductionQuality) Val() ProductionQuality {
if q == nil {
return ProductionUnknown
}
return *q
}
2 changes: 2 additions & 0 deletions adcom1/start_delay.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ type StartDelay int64
// Options for the video or audio start delay.
// If the start delay value is greater than 0, then the position is mid-roll and the value indicates the start delay.
const (
// > 0 Mid-Roll (value indicates start delay in second)

StartPreRoll StartDelay = 0 // Pre-Roll
StartMidRoll StartDelay = -1 // Generic Mid-Roll
StartPostRoll StartDelay = -2 // Generic Post-Roll
Expand Down
3 changes: 2 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
module github.com/prebid/openrtb/v20
module github.com/onfocusio/openrtb-adagio

go 1.16

require (
github.com/onsi/ginkgo v1.16.1
github.com/onsi/gomega v1.11.0
github.com/prebid/openrtb/v20 v20.1.0
)
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1y
github.com/onsi/gomega v1.11.0 h1:+CqWgvj0OZycCaqclBD1pxKHAU+tOkHmQIWvDHq2aug=
github.com/onsi/gomega v1.11.0/go.mod h1:azGKhqFUon9Vuj0YmTfLSmx0FUwqXYSTl5re8lQLTUg=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/prebid/openrtb/v20 v20.1.0 h1:Rb+Z3H3UxiqqnjgJK3R9Wt73ibrh7HPzG7ikBckQNqc=
github.com/prebid/openrtb/v20 v20.1.0/go.mod h1:hLBrA/APkSrxs5MaW639l+y/EAHivDfRagO2TX/wbSc=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA=
github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
Expand Down
Loading