mirror of
https://github.com/prebid/openrtb.git
synced 2026-06-14 14:06:38 +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.
|
// 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.
|
// 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.
|
// 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.
|
// This table is derived from VAST 2.0+ and DAAST 1.0+ specifications.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package adcom
|
package adcom
|
||||||
|
|
||||||
// ConnectionType represents options for the type of device connectivity.
|
// ConnectionType represents options for the type of device connectivity.
|
||||||
type ConnectionType int
|
type ConnectionType int8
|
||||||
|
|
||||||
// Options for the type of device connectivity.
|
// Options for the type of device connectivity.
|
||||||
const (
|
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.
|
// 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).
|
// 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.
|
// 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).
|
// This table has values derived from the TAG Inventory Quality Guidelines (IQG).
|
||||||
const (
|
const (
|
||||||
ContentVideo ContentContext = 1 // 1 Video (i.e., video file or stream such as Internet TV broadcasts)
|
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)
|
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)
|
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)
|
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)
|
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)
|
ContentOther ContentContext = 6 // 6 Other (i.e., none of the other categories applies)
|
||||||
ContentUnknown ContentContext = 7 // 7 Unknown
|
ContentUnknown ContentContext = 7 // 7 Unknown
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package adcom
|
package adcom
|
||||||
|
|
||||||
// CreativeSubtypeAV represents subtypes of audio and video ad creatives.
|
// CreativeSubtypeAV represents subtypes of audio and video ad creatives.
|
||||||
type CreativeSubtypeAV int
|
type CreativeSubtypeAV int8
|
||||||
|
|
||||||
// Subtypes of audio and video ad creatives.
|
// Subtypes of audio and video ad creatives.
|
||||||
const (
|
const (
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package adcom
|
package adcom
|
||||||
|
|
||||||
// CreativeSubtypeDisplay represents subtypes of display ad creatives.
|
// CreativeSubtypeDisplay represents subtypes of display ad creatives.
|
||||||
type CreativeSubtypeDisplay int
|
type CreativeSubtypeDisplay int8
|
||||||
|
|
||||||
// Subtypes of display ad creatives.
|
// Subtypes of display ad creatives.
|
||||||
const (
|
const (
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package adcom
|
package adcom
|
||||||
|
|
||||||
// DeliveryMethod represents options for the delivery of video or audio content.
|
// 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.
|
// Options for the delivery of video or audio content.
|
||||||
const (
|
const (
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ package adcom
|
|||||||
|
|
||||||
// DeviceType represents types of devices.
|
// DeviceType represents types of devices.
|
||||||
// This table has values derived from the TAG Inventory Quality Guidelines (IQG).
|
// This table has values derived from the TAG Inventory Quality Guidelines (IQG).
|
||||||
type DeviceType int
|
type DeviceType int8
|
||||||
|
|
||||||
// Types of devices.
|
// Types of devices.
|
||||||
const (
|
const (
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package adcom
|
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.
|
// 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.
|
// Directions in which an expandable ad may expand.
|
||||||
const (
|
const (
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
package adcom
|
package adcom
|
||||||
|
|
||||||
// FeedType represents types of feeds, typically for audio.
|
// FeedType represents types of feeds, typically for audio.
|
||||||
type FeedType int
|
type FeedType int8
|
||||||
|
|
||||||
// Types of feeds, typically for audio.
|
// Types of feeds, typically for audio.
|
||||||
const (
|
const (
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package adcom
|
package adcom
|
||||||
|
|
||||||
// IPLocationService represents services and/or vendors used for resolving IP addresses to geolocations.
|
// 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.
|
// Services and/or vendors used for resolving IP addresses to geolocations.
|
||||||
const (
|
const (
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package adcom
|
package adcom
|
||||||
|
|
||||||
// LinearityMode represents options for media linearity, typically for video.
|
// LinearityMode represents options for media linearity, typically for video.
|
||||||
type LinearityMode int
|
type LinearityMode int8
|
||||||
|
|
||||||
// Options for media linearity, typically for video.
|
// Options for media linearity, typically for video.
|
||||||
const (
|
const (
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package adcom
|
package adcom
|
||||||
|
|
||||||
// LocationType represents options to indicate how the geographic information was determined.
|
// 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.
|
// Options to indicate how the geographic information was determined.
|
||||||
const (
|
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.
|
// 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.
|
// 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.
|
// Media ratings used in describing content based on the TAG Inventory Quality Guidelines (IQG) v2.1 categorization.
|
||||||
const (
|
const (
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ package adcom
|
|||||||
|
|
||||||
// PlacementPosition represents placement positions as a relative measure of visibility or prominence.
|
// PlacementPosition represents placement positions as a relative measure of visibility or prominence.
|
||||||
// This table has values derived from the TAG Inventory Quality Guidelines (IQG).
|
// This table has values derived from the TAG Inventory Quality Guidelines (IQG).
|
||||||
type PlacementPosition int
|
type PlacementPosition int8
|
||||||
|
|
||||||
// Placement positions.
|
// Placement positions.
|
||||||
const (
|
const (
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package adcom
|
package adcom
|
||||||
|
|
||||||
// PlaybackCessationMode represents modes for when media playback terminates.
|
// PlaybackCessationMode represents modes for when media playback terminates.
|
||||||
type PlaybackCessationMode int
|
type PlaybackCessationMode int8
|
||||||
|
|
||||||
// Modes for when media playback terminates.
|
// Modes for when media playback terminates.
|
||||||
const (
|
const (
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package adcom
|
package adcom
|
||||||
|
|
||||||
// PlaybackMethod represents media playback methods.
|
// PlaybackMethod represents media playback methods.
|
||||||
type PlaybackMethod int
|
type PlaybackMethod int8
|
||||||
|
|
||||||
// Media playback methods.
|
// Media playback methods.
|
||||||
const (
|
const (
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package adcom
|
package adcom
|
||||||
|
|
||||||
// ProductionQuality represents content quality.
|
// ProductionQuality represents content quality.
|
||||||
type ProductionQuality int
|
type ProductionQuality int8
|
||||||
|
|
||||||
// Options for content quality.
|
// 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.
|
// 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
|
package adcom
|
||||||
|
|
||||||
// SizeUnit represents units of height and width used by creatives, assets, and placement specifications where noted.
|
// 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.
|
// Units of height and width used by creatives, assets, and placement specifications where noted.
|
||||||
const (
|
const (
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package adcom
|
package adcom
|
||||||
|
|
||||||
// VideoPlacementSubtype represents types of video placements derived largely from the IAB Digital Video Guidelines.
|
// 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.
|
// Types of video placements derived largely from the IAB Digital Video Guidelines.
|
||||||
const (
|
const (
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package adcom
|
package adcom
|
||||||
|
|
||||||
// VolumeNormalizationMode represents types of volume normalization modes, typically for audio.
|
// VolumeNormalizationMode represents types of volume normalization modes, typically for audio.
|
||||||
type VolumeNormalizationMode int
|
type VolumeNormalizationMode int8
|
||||||
|
|
||||||
// Types of volume normalization modes, typically for audio.
|
// Types of volume normalization modes, typically for audio.
|
||||||
const (
|
const (
|
||||||
|
|||||||
Reference in New Issue
Block a user