mirror of
https://github.com/prebid/openrtb.git
synced 2026-06-14 05:56:34 +03:00
adcom1: enums: choose smaller (appropriate) types for closed enums (without 500+ vendor-specific notes)
This commit is contained in:
@@ -2,7 +2,7 @@ package adcom
|
||||
|
||||
// CompanionType represents options to indicate markup types allowed for companion ads that apply to video and audio ads.
|
||||
// This table is derived from VAST 2.0+ and DAAST 1.0+ specifications.
|
||||
type CompanionType int
|
||||
type CompanionType int8
|
||||
|
||||
// options to indicate markup types allowed for companion ads that apply to video and audio ads.
|
||||
// This table is derived from VAST 2.0+ and DAAST 1.0+ specifications.
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package adcom
|
||||
|
||||
// ConnectionType represents options for the type of device connectivity.
|
||||
type ConnectionType int
|
||||
type ConnectionType int8
|
||||
|
||||
// Options for the type of device connectivity.
|
||||
const (
|
||||
|
||||
@@ -2,16 +2,16 @@ package adcom
|
||||
|
||||
// ContentContext represents options for indicating the type of content being used or consumed by the user in which ads may appear.
|
||||
// This table has values derived from the TAG Inventory Quality Guidelines (IQG).
|
||||
type ContentContext int
|
||||
type ContentContext int8
|
||||
|
||||
// Options for indicating the type of content being used or consumed by the user in which ads may appear.
|
||||
// This table has values derived from the TAG Inventory Quality Guidelines (IQG).
|
||||
const (
|
||||
ContentVideo ContentContext = 1 // 1 Video (i.e., video file or stream such as Internet TV broadcasts)
|
||||
ContentGame ContentContext = 2 // 2 Game (i.e., an interactive software game)
|
||||
ContentMusic ContentContext = 3 // 3 Music (i.e., audio file or stream such as Internet radio broadcasts)
|
||||
ContentApp ContentContext = 4 // 4 Application (i.e., an interactive software application)
|
||||
ContentText ContentContext = 5 // 5 Text (i.e., primarily textual document such as a web page, eBook, or news article)
|
||||
ContentOther ContentContext = 6 // 6 Other (i.e., none of the other categories applies)
|
||||
ContentUnknown ContentContext = 7 // 7 Unknown
|
||||
ContentVideo ContentContext = 1 // 1 Video (i.e., video file or stream such as Internet TV broadcasts)
|
||||
ContentGame ContentContext = 2 // 2 Game (i.e., an interactive software game)
|
||||
ContentMusic ContentContext = 3 // 3 Music (i.e., audio file or stream such as Internet radio broadcasts)
|
||||
ContentApp ContentContext = 4 // 4 Application (i.e., an interactive software application)
|
||||
ContentText ContentContext = 5 // 5 Text (i.e., primarily textual document such as a web page, eBook, or news article)
|
||||
ContentOther ContentContext = 6 // 6 Other (i.e., none of the other categories applies)
|
||||
ContentUnknown ContentContext = 7 // 7 Unknown
|
||||
)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package adcom
|
||||
|
||||
// CreativeSubtypeAV represents subtypes of audio and video ad creatives.
|
||||
type CreativeSubtypeAV int
|
||||
type CreativeSubtypeAV int8
|
||||
|
||||
// Subtypes of audio and video ad creatives.
|
||||
const (
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package adcom
|
||||
|
||||
// CreativeSubtypeDisplay represents subtypes of display ad creatives.
|
||||
type CreativeSubtypeDisplay int
|
||||
type CreativeSubtypeDisplay int8
|
||||
|
||||
// Subtypes of display ad creatives.
|
||||
const (
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package adcom
|
||||
|
||||
// DeliveryMethod represents options for the delivery of video or audio content.
|
||||
type DeliveryMethod int
|
||||
type DeliveryMethod int8
|
||||
|
||||
// Options for the delivery of video or audio content.
|
||||
const (
|
||||
|
||||
@@ -2,7 +2,7 @@ package adcom
|
||||
|
||||
// DeviceType represents types of devices.
|
||||
// This table has values derived from the TAG Inventory Quality Guidelines (IQG).
|
||||
type DeviceType int
|
||||
type DeviceType int8
|
||||
|
||||
// Types of devices.
|
||||
const (
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package adcom
|
||||
|
||||
// ExpandableDirection represents directions in which an expandable ad may expand, given the positioning of the ad unit on the page and constraints imposed by the content.
|
||||
type ExpandableDirection int
|
||||
type ExpandableDirection int8
|
||||
|
||||
// Directions in which an expandable ad may expand.
|
||||
const (
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
package adcom
|
||||
|
||||
// FeedType represents types of feeds, typically for audio.
|
||||
type FeedType int
|
||||
type FeedType int8
|
||||
|
||||
// Types of feeds, typically for audio.
|
||||
const (
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package adcom
|
||||
|
||||
// IPLocationService represents services and/or vendors used for resolving IP addresses to geolocations.
|
||||
type IPLocationService int
|
||||
type IPLocationService int8
|
||||
|
||||
// Services and/or vendors used for resolving IP addresses to geolocations.
|
||||
const (
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package adcom
|
||||
|
||||
// LinearityMode represents options for media linearity, typically for video.
|
||||
type LinearityMode int
|
||||
type LinearityMode int8
|
||||
|
||||
// Options for media linearity, typically for video.
|
||||
const (
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package adcom
|
||||
|
||||
// LocationType represents options to indicate how the geographic information was determined.
|
||||
type LocationType int
|
||||
type LocationType int8
|
||||
|
||||
// Options to indicate how the geographic information was determined.
|
||||
const (
|
||||
|
||||
@@ -2,7 +2,7 @@ package adcom
|
||||
|
||||
// MediaRating represents media ratings used in describing content based on the TAG Inventory Quality Guidelines (IQG) v2.1 categorization.
|
||||
// Refer to www.iab.com/guidelines/digital-video-suite for more information.
|
||||
type MediaRating int
|
||||
type MediaRating int8
|
||||
|
||||
// Media ratings used in describing content based on the TAG Inventory Quality Guidelines (IQG) v2.1 categorization.
|
||||
const (
|
||||
|
||||
@@ -2,7 +2,7 @@ package adcom
|
||||
|
||||
// PlacementPosition represents placement positions as a relative measure of visibility or prominence.
|
||||
// This table has values derived from the TAG Inventory Quality Guidelines (IQG).
|
||||
type PlacementPosition int
|
||||
type PlacementPosition int8
|
||||
|
||||
// Placement positions.
|
||||
const (
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package adcom
|
||||
|
||||
// PlaybackCessationMode represents modes for when media playback terminates.
|
||||
type PlaybackCessationMode int
|
||||
type PlaybackCessationMode int8
|
||||
|
||||
// Modes for when media playback terminates.
|
||||
const (
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package adcom
|
||||
|
||||
// PlaybackMethod represents media playback methods.
|
||||
type PlaybackMethod int
|
||||
type PlaybackMethod int8
|
||||
|
||||
// Media playback methods.
|
||||
const (
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package adcom
|
||||
|
||||
// ProductionQuality represents content quality.
|
||||
type ProductionQuality int
|
||||
type ProductionQuality int8
|
||||
|
||||
// Options for content quality.
|
||||
// These values are defined by the IAB; refer to www.iab.com/wp-content/uploads/2015/03/long-form-video-final.pdf for more information.
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
package adcom
|
||||
|
||||
// SizeUnit represents units of height and width used by creatives, assets, and placement specifications where noted.
|
||||
type SizeUnit int
|
||||
type SizeUnit int8
|
||||
|
||||
// Units of height and width used by creatives, assets, and placement specifications where noted.
|
||||
const (
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package adcom
|
||||
|
||||
// VideoPlacementSubtype represents types of video placements derived largely from the IAB Digital Video Guidelines.
|
||||
type VideoPlacementSubtype int
|
||||
type VideoPlacementSubtype int8
|
||||
|
||||
// Types of video placements derived largely from the IAB Digital Video Guidelines.
|
||||
const (
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package adcom
|
||||
|
||||
// VolumeNormalizationMode represents types of volume normalization modes, typically for audio.
|
||||
type VolumeNormalizationMode int
|
||||
type VolumeNormalizationMode int8
|
||||
|
||||
// Types of volume normalization modes, typically for audio.
|
||||
const (
|
||||
|
||||
Reference in New Issue
Block a user