Documentation
¶
Overview ¶
Package openrtb implements a parser (with optional validation) and a generator for OpenRTB 2.x requests and responses.
Index ¶
- Constants
- Variables
- type App
- type Audio
- type Banner
- type Bid
- type BidRequest
- type BidResponse
- type BoolOrNumber
- type BrandVersion
- type CategoryTaxonomy
- type ChannelEntity
- type Content
- type ContentCategory
- type Data
- type Deal
- type Device
- type EID
- type Extension
- type FeedType
- type Format
- type Geo
- type IPLocation
- type Impression
- type Inventory
- type MarkupType
- type MeasurementSourceType
- type Metric
- type Native
- type NumberOrString
- type Pmp
- type PodSequence
- type Producer
- type Publisher
- type Quantity
- type RegExtension
- type Regulations
- type SdkData
- type SeatBid
- type Segment
- type Site
- type SlotPositionInPod
- type Source
- type StringOrNumber
- type ThirdParty
- type UID
- type User
- type UserAgent
- type UserExtension
- type Video
- type VideoPlcmt
- type VolumeNorm
Constants ¶
const ( BannerTypeXHTMLText = 1 BannerTypeXHTML = 2 BannerTypeJS = 3 BannerTypeFrame = 4 )
5.2 Banner Ad Types
const ( CreativeAttributeAudioAdAutoPlay = 1 CreativeAttributeAudioAdUserInitiated = 2 CreativeAttributeExpandableAuto = 3 CreativeAttributeExpandableUserInitiatedClick = 4 CreativeAttributeExpandableUserInitiatedRollover = 5 CreativeAttributeInBannerVideoAdAutoPlay = 6 CreativeAttributeInBannerVideoAdUserInitiated = 7 CreativeAttributePop = 8 CreativeAttributeProvocativeOrSuggestiveImagery = 9 CreativeAttributeExtremeAnimation = 10 CreativeAttributeSurveys = 11 CreativeAttributeTextOnly = 12 CreativeAttributeUserInitiated = 13 CreativeAttributeWindowsDialogOrAlert = 14 CreativeAttributeHasAudioWithPlayer = 15 CreativeAttributeAdProvidesSkipButton = 16 CreativeAttributeAdobeFlash = 17 )
5.3 Creative Attributes
const ( AdPosUnknown = 0 AdPosAboveFold = 1 AdPosBelowFold = 3 AdPosHeader = 4 AdPosSidebar = 6 AdPosFullscreen = 7 )
5.4 Ad Position
const ( ExpDirUnknown = 0 ExpDirLeft = 1 ExpDirRight = 2 ExpDirUp = 3 ExpDirDown = 4 ExpDirFullScreen = 5 )
5.5 Expandable Direction
const ( APIFrameworkUnknown = 0 APIFrameworkVPAID1 = 1 APIFrameworkVPAID2 = 2 APIFrameworkMRAID1 = 3 APIFrameworkORMMA = 4 APIFrameworkMRAID2 = 5 APIFrameworkMRAID3 = 6 APIFrameworkOMID1 = 7 APIFrameworkSIMID1 = 8 APIFrameworkSIMID11 = 9 )
5.6 API Frameworks
const ( VideoLinearityUnknown = 0 VideoLinearityLinear = 1 VideoLinearityNonLinear = 2 )
5.7 Video Linearity
const ( ProtocolUnknown = 0 VideoProtoVAST1 = 1 VideoProtoVAST2 = 2 VideoProtoVAST3 = 3 VideoProtoVAST1Wrapper = 4 VideoProtoVAST2Wrapper = 5 VideoProtoVAST3Wrapper = 6 VideoProtoVAST4 = 7 VideoProtoVAST4Wrapper = 8 AudioProtocolDAAST1 = 9 AudioProtocolDAAST1Wrapper = 10 )
5.8 Video and Audio Bid Response Protocols
const ( VideoPlacementUnknown = 0 VideoPlacementInStream = 1 VideoPlacementInBanner = 2 VideoPlacementInArticle = 3 VideoPlacementInFeed = 4 VideoPlacementInterstitial = 5 )
5.9 Video Placement Types
const ( VideoPlaybackUnknown = 0 VideoPlaybackAutoSoundOn = 1 VideoPlaybackAutoSoundOff = 2 VideoPlaybackClickToPlay = 3 VideoPlaybackMouseOver = 4 VideoPlaybackEnterSoundOn = 5 VideoPlaybackEnterSoundOff = 6 )
5.10 Video Playback Methods
const ( VideoStartDelayPreRoll = 0 VideoStartDelayGenericMidRoll = -1 VideoStartDelayGenericPostRoll = -2 )
5.12 Video Start Delay
const ( VideoQualityUnknown = 0 VideoQualityProfessional = 1 VideoQualityProsumer = 2 VideoQualityUGC = 3 )
5.13 Video Quality
const ( VASTCompanionUnknown = 0 VASTCompanionStatic = 1 VASTCompanionHTML = 2 VASTCompanionIFrame = 3 )
5.14 Companion Types
const ( ContentDeliveryUnknown = 0 ContentDeliveryStreaming = 1 ContentDeliveryProgressive = 2 ContentDeliveryDownload = 3 )
5.15 Content Delivery Methods
const ( ContextVideo = 1 ContextGame = 2 ContextMusic = 3 ContextApplication = 4 ContextText = 5 ContextOther = 6 ContextUnknown = 7 )
5.18 Content Context
const ( QAGUnknown = 0 QAGAll = 1 QAGOver12 = 2 QAGMature = 3 )
5.19 IQG Media Ratings
const ( LocationTypeUnknown = 0 LocationTypeGPS = 1 LocationTypeIP = 2 LocationTypeUser = 3 )
5.20 Location Type
const ( DeviceTypeUnknown = 0 DeviceTypeMobile = 1 DeviceTypePC = 2 DeviceTypeTV = 3 DeviceTypePhone = 4 DeviceTypeTablet = 5 DeviceTypeConnected = 6 DeviceTypeSetTopBox = 7 DeviceTypeOOH = 8 )
5.21 Device Type
const ( ConnTypeUnknown = 0 ConnTypeEthernet = 1 ConnTypeWIFI = 2 ConnTypeCell = 3 ConnTypeCell2G = 4 ConnTypeCell3G = 5 ConnTypeCell4G = 6 ConnTypeCell5G = 7 )
5.22 Connection Type
const ( NBRUnknownError = 0 NBRTechnicalError = 1 NBRInvalidRequest = 2 NBRKnownSpider = 3 NBRSuspectedNonHuman = 4 NBRProxyIP = 5 NBRUnsupportedDevice = 6 NBRBlockedSite = 7 NBRUnmatchedUser = 8 )
5.24 No-Bid Reason Codes
Variables ¶
var ( ErrInvalidBidNoID = errors.New("openrtb: bid is missing ID") ErrInvalidBidNoImpID = errors.New("openrtb: bid is missing impression ID") )
Validation errors
var ( ErrInvalidReqNoID = errors.New("openrtb: request ID missing") ErrInvalidReqNoImps = errors.New("openrtb: request has no impressions") ErrInvalidReqMultiInv = errors.New("openrtb: request has multiple inventory sources") // has site and app )
Validation errors
var ( ErrInvalidRespNoID = errors.New("openrtb: response missing ID") ErrInvalidRespNoSeatBids = errors.New("openrtb: response missing seatbids") )
Validation errors
var ( ErrInvalidImpNoID = errors.New("openrtb: impression ID missing") ErrInvalidImpMultiAssets = errors.New("openrtb: impression has multiple assets") // at least two out of Banner, Video, Native )
Validation errors
var ( ErrMissingMultiplier = errors.New("openrtb: qty.multiplier is required") ErrMissingMeasurementVendor = errors.New("openrtb: qty.vendor is required when qty.sourcetype is 1 (Measurement Vendor)") )
var ( ErrInvalidVideoNoMimes = errors.New("openrtb: video has no mimes") ErrInvalidVideoNoLinearity = errors.New("openrtb: video linearity missing") ErrInvalidVideoNoMinDuration = errors.New("openrtb: video min-duration missing") ErrInvalidVideoNoMaxDuration = errors.New("openrtb: video max-duration missing") ErrInvalidVideoNoProtocols = errors.New("openrtb: video protocols missing") )
Validation errors
var (
ErrInvalidAudioNoMimes = errors.New("openrtb: audio has no mimes")
)
Validation errors
var (
ErrInvalidSeatBidBid = errors.New("openrtb: seatbid is missing bids")
)
Validation errors
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
Inventory
Bundle string `json:"bundle,omitempty"` // App bundle or package name
StoreURL string `json:"storeurl,omitempty"` // App store URL for an installed app
Ver string `json:"ver,omitempty"` // App version
Paid int `json:"paid,omitempty"` // "1": Paid, "2": Free
Ext Extension `json:"ext,omitempty"` // Placeholder for exchange-specific extensions to OpenRTB
}
App object should be included if the ad supported content is part of a mobile application (as opposed to a mobile website). A bid request must not contain both an "app" object and a "site" object.
type Audio ¶
type Audio struct {
Mimes []string `json:"mimes"` // Content MIME types supported.
MinDuration int `json:"minduration,omitempty"` // Minimum video ad duration in seconds
MaxDuration int `json:"maxduration,omitempty"` // Maximum video ad duration in seconds
Protocols []int `json:"protocols,omitempty"` // Video bid response protocols
StartDelay int `json:"startdelay,omitempty"` // Indicates the start delay in seconds
Sequence int `json:"sequence,omitempty"` // Default: 1
BAttr []int `json:"battr,omitempty"` // Blocked creative attributes
MaxExtended int `json:"maxextended,omitempty"` // Maximum extended video ad duration
MinBitrate int `json:"minbitrate,omitempty"` // Minimum bit rate in Kbps
MaxBitrate int `json:"maxbitrate,omitempty"` // Maximum bit rate in Kbps
Delivery []int `json:"delivery,omitempty"` // List of supported delivery methods
CompanionAd []Banner `json:"companionad,omitempty"`
API []int `json:"api,omitempty"`
CompanionType []int `json:"companiontype,omitempty"`
MaxSequence int `json:"maxseq,omitempty"` // The maximumnumber of ads that canbe played in an ad pod.
Feed int `json:"feed,omitempty"` // Type of audio feed.
Stitched int `json:"stitched,omitempty"` // Indicates if the ad is stitched with audio content or delivered independently
NVol int `json:"nvol,omitempty"` // Volume normalization mode.
Ext Extension `json:"ext,omitempty"`
}
Audio object must be included directly in the impression object
func (*Audio) MarshalJSON ¶
MarshalJSON custom marshalling with normalization
func (*Audio) UnmarshalJSON ¶
UnmarshalJSON custom unmarshalling with normalization
type Banner ¶
type Banner struct {
W int `json:"w,omitempty"` // Width
H int `json:"h,omitempty"` // Height
Format []Format `json:"format,omitempty"` //Array of format objects representing the banner sizes permitted.
WMax int `json:"wmax,omitempty"` // Width maximum DEPRECATED
HMax int `json:"hmax,omitempty"` // Height maximum DEPRECATED
WMin int `json:"wmin,omitempty"` // Width minimum DEPRECATED
HMin int `json:"hmin,omitempty"` // Height minimum DEPRECATED
ID string `json:"id,omitempty"` // A unique identifier
BType []int `json:"btype,omitempty"` // Blocked creative types
BAttr []int `json:"battr,omitempty"` // Blocked creative attributes
Pos int `json:"pos,omitempty"` // Ad Position
Mimes []string `json:"mimes,omitempty"` // Whitelist of content MIME types supported
TopFrame int `json:"topframe,omitempty"` // Default: 0 ("1": Delivered in top frame, "0": Elsewhere)
ExpDir []int `json:"expdir,omitempty"` // Specify properties for an expandable ad
Api []int `json:"api,omitempty"` // List of supported API frameworks
VCM int `json:"vcm,omitempty"` // Represents the relationship with video. 0 = concurrent, 1 = end-card
Ext Extension `json:"ext,omitempty"`
}
Banner object must be included directly in the impression object if the impression offered for auction is display or rich media, or it may be optionally embedded in the video object to describe the companion banners available for the linear or non-linear video ad. The banner object may include a unique identifier; this can be useful if these IDs can be leveraged in the VAST response to dictate placement of the companion creatives when multiple companion ad opportunities of the same size are available on a page.
type Bid ¶
type Bid struct {
ID string `json:"id"`
ImpID string `json:"impid"` // Required string ID of the impression object to which this bid applies.
Price float64 `json:"price"` // Bid price in CPM. Suggests using integer math for accounting to avoid rounding errors.
AdID string `json:"adid,omitempty"` // References the ad to be served if the bid wins.
NURL string `json:"nurl,omitempty"` // Win notice URL.
BURL string `json:"burl,omitempty"` // Billing notice URL.
LURL string `json:"lurl,omitempty"` // Loss notice URL.
AdMarkup string `json:"adm,omitempty"` // Actual ad markup. XHTML if a response to a banner object, or VAST XML if a response to a video object.
AdvDomain []string `json:"adomain,omitempty"` // Advertiser’s primary or top-level domain for advertiser checking; or multiple if imp rotating.
Bundle string `json:"bundle,omitempty"` // A platform-specific application identifier intended to be unique to the app and independent of the exchange.
IURL string `json:"iurl,omitempty"` // Sample image URL.
CampaignID StringOrNumber `json:"cid,omitempty"` // Campaign ID that appears with the Ad markup.
CreativeID string `json:"crid,omitempty"` // Creative ID for reporting content issues or defects. This could also be used as a reference to a creative ID that is posted with an exchange.
Tactic string `json:"tactic,omitempty"` // Tactic ID to enable buyers to label bids for reporting to the exchange the tactic through which their bid was submitted.
Cat []string `json:"cat,omitempty"` // IAB content categories of the creative. Refer to List 5.1
Attr []int `json:"attr,omitempty"` // Array of creative attributes.
API int `json:"api,omitempty"` // API required by the markup if applicable, NOTE: for ORTB ver <= 2.5 APIFramework supported is 1 to 6.
Protocol int `json:"protocol,omitempty"` // Video response protocol of the markup if applicable
QAGMediaRating int `json:"qagmediarating,omitempty"` // Creative media rating per IQG guidelines.
Language string `json:"language,omitempty"` // Language of the creative using ISO-639-1-alpha-2.
DealID string `json:"dealid,omitempty"` // DealID extension of private marketplace deals
H int `json:"h,omitempty"` // Height of the ad in pixels.
W int `json:"w,omitempty"` // Width of the ad in pixels.
WRatio int `json:"wratio,omitempty"` // Relative width of the creative when expressing size as a ratio.
HRatio int `json:"hratio,omitempty"` // Relative height of the creative when expressing size as a ratio.
APIS []int `json:"apis,omitempty"` // APIS required by the markup if applicable.
LangB string `json:"langb,omitempty"` // Language of the creative using IETF BCP 47. Only one of language or langb should be present.
Duration int `json:"dur,omitempty"` // Duration of the video or audio creative in seconds.
MarkupType MarkupType `json:"mtype,omitempty"` // Creative markup so that it can properly be associated.
SlotInPod SlotPositionInPod `json:"slotinpod,omitempty"` // Indicates that the bid response is only eligible for a specific position.
CategoryTaxonomy CategoryTaxonomy `json:"cattax,omitempty"` // Defines the taxonomy in use.
Exp int `json:"exp,omitempty"` // Advisory as to the number of seconds the bidder is willing to wait between the auction and the actual impression.
ContentType string `json:"-"` // Content of the bid
MediaType string `json:"-"` // Media of the impression e.g. video/display
IsOMEnabled bool `json:"-"` // Flag to send indicate to the Sdk whether or not to run om scripts
Ext Extension `json:"ext,omitempty"`
}
Bid object contains bid information. ID, ImpID and Price are required; all other optional. If the bidder wins the impression, the exchange calls notice URL (nurl) a) to inform the bidder of the win; b) to convey certain information using substitution macros. Adomain can be used to check advertiser block list compliance. Cid can be used to block ads that were previously identified as inappropriate. Substitution macros may allow a bidder to use a static notice URL for all of its bids.
type BidRequest ¶
type BidRequest struct {
ID string `json:"id"` // Unique ID of the bid request
Imp []Impression `json:"imp,omitempty"`
Site *Site `json:"site,omitempty"`
App *App `json:"app,omitempty"`
Device *Device `json:"device,omitempty"`
User *User `json:"user,omitempty"`
Test int `json:"test,omitempty"` // Indicator of test mode in which auctions are not billable, where 0 = live mode, 1 = test mode
AuctionType int `json:"at"` // Auction type, where 1 = First Price, 2 = Second Price Plus. Exchange-specific auction types can be defined using values greater than 500.
TMax int `json:"tmax,omitempty"` // Maximum amount of time in milliseconds to submit a bid
WSeat []string `json:"wseat,omitempty"` // Array of buyer seats allowed to bid on this auction
BSeat []string `json:"bseat,omitempty"` // Array of buyer seats blocked to bid on this auction
WLang []string `json:"wlang,omitempty"` // Allowed list of languages for creatives using ISO-639-1-alpha-2. Omission implies no specific restrictions, but buyers would be advised to consider language attribute in the Device and/or Content objects if available. Only one of wlang or wlangb should be present.
LanguagesB []string `json:"wlangb,omitempty"` // Allowed list of languages for creatives using IETF BCP 47I. Omission implies no specific restrictions, but buyers would be advised to consider language attribute in the Device and/or Content objects if available. Only one of wlang or wlangb should be present.
AllImps int `json:"allimps,omitempty"` // Flag to indicate whether exchange can verify that all impressions offered represent all of the impressions available in context, Default: 0
Cur []string `json:"cur,omitempty"` // Array of allowed currencies
Bcat []string `json:"bcat,omitempty"` // Blocked Advertiser Categories.
BAdv []string `json:"badv,omitempty"` // Array of strings of blocked toplevel domains of advertisers
BApp []string `json:"bapp,omitempty"` // Block list of applications by their platform-specific exchange-independent application identifiers. On Android, these should be bundle or package names (e.g., com.foo.mygame). On iOS, these are numeric IDs.
Source *Source `json:"source,omitempty"` // A Source object that provides data about the inventory source and which entity makes the final decision
Regs *Regulations `json:"regs,omitempty"`
Ext Extension `json:"ext,omitempty"`
Pmp *Pmp `json:"pmp,omitempty"` // DEPRECATED: kept for backwards compatibility
}
BidRequest is the top-level bid request object contains a globally unique bid request or auction ID. This "id" attribute is required as is at least one "imp" (i.e., impression) object. Other attributes are optional since an exchange may establish default values.
type BidResponse ¶
type BidResponse struct {
ID string `json:"id"` // Reflection of the bid request ID for logging purposes
SeatBid []SeatBid `json:"seatbid"` // Array of seatbid objects
BidID string `json:"bidid,omitempty"` // Optional response tracking ID for bidders
Currency string `json:"cur,omitempty"` // Bid currency
CustomData string `json:"customdata,omitempty"` // Encoded user features
NBR int `json:"nbr,omitempty"` // Reason for not bidding, where 0 = unknown error, 1 = technical error, 2 = invalid request, 3 = known web spider, 4 = suspected Non-Human Traffic, 5 = cloud, data center, or proxy IP, 6 = unsupported device, 7 = blocked publisher or site, 8 = unmatched user
Ext Extension `json:"ext,omitempty"` // Custom specifications in JSon
}
BidResponse is the bid response wrapper object. ID and at least one "seatbid” object is required, which contains a bid on at least one impression. Other attributes are optional since an exchange may establish default values. No-Bids on all impressions should be indicated as a HTTP 204 response. For no-bids on specific impressions, the bidder should omit these from the bid response.
func (*BidResponse) Validate ¶
func (res *BidResponse) Validate() error
Validate required attributes
type BoolOrNumber ¶ added in v3.2.3
type BoolOrNumber bool
BoolOrNumber attemps to fix OpenRTB incompatibilities where a field is expected as bool but the spec expects int values. This was not seen till now, but some mediation partners will follow the spec closely.
func (*BoolOrNumber) UnmarshalJSON ¶ added in v3.2.3
func (b *BoolOrNumber) UnmarshalJSON(data []byte) error
UnmarshalJSON implements json.Unmarshaler
type BrandVersion ¶
type BrandVersion struct {
Brand string `json:"brand,omitempty"` // A brand identifier, for example, "Chrome" or "Windows". Taken from the Sec-CH-UA-Full-Version or Sec-CH-UA-Platform header
Version []string `json:"version,omitempty"` // A sequence of version components, in descending hierarchical order (major, minor, patch)
Ext Extension `json:"ext,omitempty"`
}
type CategoryTaxonomy ¶
type CategoryTaxonomy int
CategoryTaxonomy identifies the taxonomy in effect when content categories as defined in Adcom1.0.
const ( CategoryTaxonomyIABContent1 CategoryTaxonomy = 1 // 1 IAB Content Category Taxonomy 1.0. CategoryTaxonomyIABContent2 CategoryTaxonomy = 2 // 2 IAB Content Category Taxonomy 2: www.iab.com/guidelines/taxonomy CategoryTaxonomyIABProduct1 CategoryTaxonomy = 3 // 3 IAB Ad Product Taxonomy 1.0. CategoryTaxonomyIABAudience11 CategoryTaxonomy = 4 // 4 IAB Audience Taxonomy 1.1. CategoryTaxonomyIABContent21 CategoryTaxonomy = 5 // 5 IAB Content Category Taxonomy 2.1. CategoryTaxonomyIABContent22 CategoryTaxonomy = 6 // 6 IAB Content Category Taxonomy 2.2 )
CategoryTaxonomy options as defined in Adcom1.0
type ChannelEntity ¶
type ChannelEntity struct {
ID string `json:"id,omitempty"`
Name string `json:"name,omitempty"`
Domain string `json:"domain,omitempty"`
Ext Extension `json:"ext,omitempty"`
}
ChannelEntity describes the network or channel an ad will be displayed on. (Reffer Section 3.2.23 and 3.2.24 OpenRTB_2.6)
type Content ¶
type Content struct {
ID string `json:"id,omitempty"` // ID uniquely identifying the content.
Episode int `json:"episode,omitempty"` // Episode number (typically applies to video content).
Title string `json:"title,omitempty"` // Content title.
Series string `json:"series,omitempty"` // Content series.
Season string `json:"season,omitempty"` // Content season.
Artist string `json:"artist,omitempty"` // Artist credited with the content.
Genre string `json:"genre,omitempty"` // Genre that best describes the content
Album string `json:"album,omitempty"` // Album to which the content belongs; typically for audio.
ISRC string `json:"isrc,omitempty"` // International Standard Recording Code conforming to ISO - 3901.
Producer *Producer `json:"producer,omitempty"` // The producer.
URL string `json:"url,omitempty"` // URL of the content, for buy-side contextualization or review.
CategoryTaxonomy CategoryTaxonomy `json:"cattax,omitempty"` // Defines the taxonomy in use.
Cat []string `json:"cat,omitempty"` // Array of IAB content categories that describe the content.
ProdQuality int `json:"prodq,omitempty"` // Production quality per IAB's classification.
VideoQuality int `json:"videoquality,omitempty"` // DEPRECATED. Video quality per IAB's classification.
Context int `json:"context,omitempty"` // Type of content (game, video, text, etc.).
ContentRating string `json:"contentrating,omitempty"` // Content rating (e.g., MPAA).
UserRating string `json:"userrating,omitempty"` // User rating of the content (e.g., number of stars, likes, etc.).
QAGMediaRating int `json:"qagmediarating,omitempty"` // Media rating per QAG guidelines.
Keywords string `json:"keywords,omitempty"` // Comma separated list of keywords describing the content.
LiveStream int `json:"livestream,omitempty"` // 0 = not live, 1 = content is live (e.g., stream, live blog).
SourceRelationship int `json:"sourcerelationship,omitempty"` // 0 = indirect, 1 = direct.
Len int `json:"len,omitempty"` // Length of content in seconds; appropriate for video or audio.
Language string `json:"language,omitempty"` // Content language using ISO-639-1-alpha-2.
LanguageB string `json:"langb,omitempty"` // Content language using IETF BCP 47. Only one of language or langb should be present.
Embeddable int `json:"embeddable,omitempty"` // Indicator of whether or not the content is embeddable (e.g., an embeddable video player), where 0 = no, 1 = yes.
Data []Data `json:"data,omitempty"` // Additional content data.
Network *ChannelEntity `json:"network,omitempty"` // Details about the network the content is on.
Channel *ChannelEntity `json:"channel,omitempty"` // Details about the channel the content is on.
KwArray []string `json:"kwarray,omitempty"` // Array of keywords about the site. Only one of ‘keywords’ or‘kwarray’ may be present.
Ext Extension `json:"ext,omitempty"`
}
Content object describes the content in which the impression will appear, which may be syndicated or nonsyndicated content. This object may be useful when syndicated content contains impressions and does not necessarily match the publisher's general content. The exchange might or might not have knowledge of the page where the content is running, as a result of the syndication method. For example might be a video impression embedded in an iframe on an unknown web property or device.
type ContentCategory ¶
type ContentCategory string
ContentCategory as defined in section 5.1
const ( ContentCategoryArtsEntertainment ContentCategory = "IAB1" ContentCategoryBooksLiterature ContentCategory = "IAB1-1" ContentCategoryCelebrityFanGossip ContentCategory = "IAB1-2" ContentCategoryFineArt ContentCategory = "IAB1-3" ContentCategoryHumor ContentCategory = "IAB1-4" ContentCategoryMovies ContentCategory = "IAB1-5" ContentCategoryMusic ContentCategory = "IAB1-6" ContentCategoryTelevision ContentCategory = "IAB1-7" ContentCategoryAutomotive ContentCategory = "IAB2" ContentCategoryAutoParts ContentCategory = "IAB2-1" ContentCategoryAutoRepair ContentCategory = "IAB2-2" ContentCategoryBuyingSellingCars ContentCategory = "IAB2-3" ContentCategoryCarCulture ContentCategory = "IAB2-4" ContentCategoryCertifiedPreOwned ContentCategory = "IAB2-5" ContentCategoryConvertible ContentCategory = "IAB2-6" ContentCategoryCoupe ContentCategory = "IAB2-7" ContentCategoryCrossover ContentCategory = "IAB2-8" ContentCategoryDiesel ContentCategory = "IAB2-9" ContentCategoryElectricVehicle ContentCategory = "IAB2-10" ContentCategoryHatchback ContentCategory = "IAB2-11" ContentCategoryHybrid ContentCategory = "IAB2-12" ContentCategoryLuxury ContentCategory = "IAB2-13" ContentCategoryMiniVan ContentCategory = "IAB2-14" ContentCategoryMororcycles ContentCategory = "IAB2-15" ContentCategoryOffRoadVehicles ContentCategory = "IAB2-16" ContentCategoryPerformanceVehicles ContentCategory = "IAB2-17" ContentCategoryPickup ContentCategory = "IAB2-18" ContentCategoryRoadSideAssistance ContentCategory = "IAB2-19" ContentCategorySedan ContentCategory = "IAB2-20" ContentCategoryTrucksAccessories ContentCategory = "IAB2-21" ContentCategoryVintageCars ContentCategory = "IAB2-22" ContentCategoryWagon ContentCategory = "IAB2-23" ContentCategoryBusiness ContentCategory = "IAB3" ContentCategoryAdvertising ContentCategory = "IAB3-1" ContentCategoryAgriculture ContentCategory = "IAB3-2" ContentCategoryBiotechBiomedical ContentCategory = "IAB3-3" ContentCategoryBusinessSoftware ContentCategory = "IAB3-4" ContentCategoryConstruction ContentCategory = "IAB3-5" ContentCategoryForestry ContentCategory = "IAB3-6" ContentCategoryGovernment ContentCategory = "IAB3-7" ContentCategoryGreenSolutions ContentCategory = "IAB3-8" ContentCategoryHumanResources ContentCategory = "IAB3-9" ContentCategoryLogistics ContentCategory = "IAB3-10" ContentCategoryMarketing ContentCategory = "IAB3-11" ContentCategoryMetals ContentCategory = "IAB3-12" ContentCategoryCareers ContentCategory = "IAB4" ContentCategoryCareerPlanning ContentCategory = "IAB4-1" ContentCategoryCollege ContentCategory = "IAB4-2" ContentCategoryFinancialAid ContentCategory = "IAB4-3" ContentCategoryJobFairs ContentCategory = "IAB4-4" ContentCategoryJobSearch ContentCategory = "IAB4-5" ContentCategoryResumeWritingAdvice ContentCategory = "IAB4-6" ContentCategoryNursing ContentCategory = "IAB4-7" ContentCategoryScholarships ContentCategory = "IAB4-8" ContentCategoryTelecommuting ContentCategory = "IAB4-9" ContentCategoryUSMilitary ContentCategory = "IAB4-10" ContentCategoryCareerAdvice ContentCategory = "IAB4-11" ContentCategoryEducation ContentCategory = "IAB5" ContentCategory12Education ContentCategory = "IAB5-1" ContentCategoryAdultEducation ContentCategory = "IAB5-2" ContentCategoryArtHistory ContentCategory = "IAB5-3" ContentCategoryCollegeAdministration ContentCategory = "IAB5-4" ContentCategoryCollegeLife ContentCategory = "IAB5-5" ContentCategoryDistanceLearning ContentCategory = "IAB5-6" ContentCategoryEnglishasa2ndLanguage ContentCategory = "IAB5-7" ContentCategoryLanguageLearning ContentCategory = "IAB5-8" ContentCategoryGraduateSchool ContentCategory = "IAB5-9" ContentCategoryHomeschooling ContentCategory = "IAB5-10" ContentCategoryHomeworkStudyTips ContentCategory = "IAB5-11" ContentCategoryK6Educators ContentCategory = "IAB5-12" ContentCategoryPrivateSchool ContentCategory = "IAB5-13" ContentCategorySpecialEducation ContentCategory = "IAB5-14" ContentCategoryStudyingBusiness ContentCategory = "IAB5-15" ContentCategoryFamilyParenting ContentCategory = "IAB6" ContentCategoryAdoption ContentCategory = "IAB6-1" ContentCategoryBabiesToddlers ContentCategory = "IAB6-2" ContentCategoryDaycarePreSchool ContentCategory = "IAB6-3" ContentCategoryFamilyInternet ContentCategory = "IAB6-4" ContentCategoryParentingK6Kids ContentCategory = "IAB6-5" ContentCategoryParentingteens ContentCategory = "IAB6-6" ContentCategoryPregnancy ContentCategory = "IAB6-7" ContentCategorySpecialNeedsKids ContentCategory = "IAB6-8" ContentCategoryEldercare ContentCategory = "IAB6-9" ContentCategoryHealthFitness ContentCategory = "IAB7" ContentCategoryExercise ContentCategory = "IAB7-1" ContentCategoryADD ContentCategory = "IAB7-2" ContentCategoryAIDSHIV ContentCategory = "IAB7-3" ContentCategoryAllergies ContentCategory = "IAB7-4" ContentCategoryAlternativeMedicine ContentCategory = "IAB7-5" ContentCategoryArthritis ContentCategory = "IAB7-6" ContentCategoryAsthma ContentCategory = "IAB7-7" ContentCategoryAutismPDD ContentCategory = "IAB7-8" ContentCategoryBipolarDisorder ContentCategory = "IAB7-9" ContentCategoryBrainTumor ContentCategory = "IAB7-10" ContentCategoryCancer ContentCategory = "IAB7-11" ContentCategoryCholesterol ContentCategory = "IAB7-12" ContentCategoryChronicFatigueSyndrome ContentCategory = "IAB7-13" ContentCategoryChronicPain ContentCategory = "IAB7-14" ContentCategoryColdFlu ContentCategory = "IAB7-15" ContentCategoryDeafness ContentCategory = "IAB7-16" ContentCategoryDentalCare ContentCategory = "IAB7-17" ContentCategoryDepression ContentCategory = "IAB7-18" ContentCategoryDermatology ContentCategory = "IAB7-19" ContentCategoryDiabetes ContentCategory = "IAB7-20" ContentCategoryEpilepsy ContentCategory = "IAB7-21" ContentCategoryGERDAcidReflux ContentCategory = "IAB7-22" ContentCategoryHeadachesMigraines ContentCategory = "IAB7-23" ContentCategoryHeartDisease ContentCategory = "IAB7-24" ContentCategoryHerbsforHealth ContentCategory = "IAB7-25" ContentCategoryHolisticHealing ContentCategory = "IAB7-26" ContentCategoryIBSCrohnsDisease ContentCategory = "IAB7-27" ContentCategoryIncestAbuseSupport ContentCategory = "IAB7-28" ContentCategoryIncontinence ContentCategory = "IAB7-29" ContentCategoryInfertility ContentCategory = "IAB7-30" ContentCategoryMensHealth ContentCategory = "IAB7-31" ContentCategoryNutrition ContentCategory = "IAB7-32" ContentCategoryOrthopedics ContentCategory = "IAB7-33" ContentCategoryPanicAnxietyDisorders ContentCategory = "IAB7-34" ContentCategoryPediatrics ContentCategory = "IAB7-35" ContentCategoryPhysicalTherapy ContentCategory = "IAB7-36" ContentCategoryPsychologyPsychiatry ContentCategory = "IAB7-37" ContentCategorySeniorHealth ContentCategory = "IAB7-38" ContentCategorySexuality ContentCategory = "IAB7-39" ContentCategorySleepDisorders ContentCategory = "IAB7-40" ContentCategorySmokingCessation ContentCategory = "IAB7-41" ContentCategorySubstanceAbuse ContentCategory = "IAB7-42" ContentCategoryThyroidDisease ContentCategory = "IAB7-43" ContentCategoryWeightLoss ContentCategory = "IAB7-44" ContentCategoryWomensHealth ContentCategory = "IAB7-45" ContentCategoryFoodDrink ContentCategory = "IAB8" ContentCategoryAmericanCuisine ContentCategory = "IAB8-1" ContentCategoryBarbecuesGrilling ContentCategory = "IAB8-2" ContentCategoryCajunCreole ContentCategory = "IAB8-3" ContentCategoryChineseCuisine ContentCategory = "IAB8-4" ContentCategoryCocktailsBeer ContentCategory = "IAB8-5" ContentCategoryCoffeeTea ContentCategory = "IAB8-6" ContentCategoryCuisineSpecific ContentCategory = "IAB8-7" ContentCategoryDessertsBaking ContentCategory = "IAB8-8" ContentCategoryDiningOut ContentCategory = "IAB8-9" ContentCategoryFoodAllergies ContentCategory = "IAB8-10" ContentCategoryFrenchCuisine ContentCategory = "IAB8-11" ContentCategoryHealthLowfatCooking ContentCategory = "IAB8-12" ContentCategoryItalianCuisine ContentCategory = "IAB8-13" ContentCategoryJapaneseCuisine ContentCategory = "IAB8-14" ContentCategoryMexicanCuisine ContentCategory = "IAB8-15" ContentCategoryVegan ContentCategory = "IAB8-16" ContentCategoryVegetarian ContentCategory = "IAB8-17" ContentCategoryWine ContentCategory = "IAB8-18" ContentCategoryHobbiesInterests ContentCategory = "IAB9" ContentCategoryArtTechnology ContentCategory = "IAB9-1" ContentCategoryArtsCrafts ContentCategory = "IAB9-2" ContentCategoryBeadwork ContentCategory = "IAB9-3" ContentCategoryBirdwatching ContentCategory = "IAB9-4" ContentCategoryBoardGamesPuzzles ContentCategory = "IAB9-5" ContentCategoryCandleSoapMaking ContentCategory = "IAB9-6" ContentCategoryCardGames ContentCategory = "IAB9-7" ContentCategoryChess ContentCategory = "IAB9-8" ContentCategoryCigars ContentCategory = "IAB9-9" ContentCategoryCollecting ContentCategory = "IAB9-10" ContentCategoryComicBooks ContentCategory = "IAB9-11" ContentCategoryDrawingSketching ContentCategory = "IAB9-12" ContentCategoryFreelanceWriting ContentCategory = "IAB9-13" ContentCategoryGenealogy ContentCategory = "IAB9-14" ContentCategoryGettingPublished ContentCategory = "IAB9-15" ContentCategoryGuitar ContentCategory = "IAB9-16" ContentCategoryHomeRecording ContentCategory = "IAB9-17" ContentCategoryInvestorsPatents ContentCategory = "IAB9-18" ContentCategoryJewelryMaking ContentCategory = "IAB9-19" ContentCategoryMagicIllusion ContentCategory = "IAB9-20" ContentCategoryNeedlework ContentCategory = "IAB9-21" ContentCategoryPainting ContentCategory = "IAB9-22" ContentCategoryPhotography ContentCategory = "IAB9-23" ContentCategoryRadio ContentCategory = "IAB9-24" ContentCategoryRoleplayingGames ContentCategory = "IAB9-25" ContentCategorySciFiFantasy ContentCategory = "IAB9-26" ContentCategoryScrapbooking ContentCategory = "IAB9-27" ContentCategoryScreenwriting ContentCategory = "IAB9-28" ContentCategoryStampsCoins ContentCategory = "IAB9-29" ContentCategoryVideoComputerGames ContentCategory = "IAB9-30" ContentCategoryWoodworking ContentCategory = "IAB9-31" ContentCategoryHomeGarden ContentCategory = "IAB10" ContentCategoryAppliances ContentCategory = "IAB10-1" ContentCategoryEntertaining ContentCategory = "IAB10-2" ContentCategoryEnvironmentalSafety ContentCategory = "IAB10-3" ContentCategoryGardening ContentCategory = "IAB10-4" ContentCategoryHomeRepair ContentCategory = "IAB10-5" ContentCategoryHomeTheater ContentCategory = "IAB10-6" ContentCategoryInteriorDecorating ContentCategory = "IAB10-7" ContentCategoryLandscaping ContentCategory = "IAB10-8" ContentCategoryRemodelingConstruction ContentCategory = "IAB10-9" ContentCategoryLawGovtPolitics ContentCategory = "IAB11" ContentCategoryImmigration ContentCategory = "IAB11-1" ContentCategoryLegalIssues ContentCategory = "IAB11-2" ContentCategoryUSGovernmentResources ContentCategory = "IAB11-3" ContentCategoryPolitics ContentCategory = "IAB11-4" ContentCategoryCommentary ContentCategory = "IAB11-5" ContentCategoryNews ContentCategory = "IAB12" ContentCategoryInternationalNews ContentCategory = "IAB12-1" ContentCategoryNationalNews ContentCategory = "IAB12-2" ContentCategoryLocalNews ContentCategory = "IAB12-3" ContentCategoryPersonalFinance ContentCategory = "IAB13" ContentCategoryBeginningInvesting ContentCategory = "IAB13-1" ContentCategoryCreditDebtLoans ContentCategory = "IAB13-2" ContentCategoryFinancialNews ContentCategory = "IAB13-3" ContentCategoryFinancialPlanning ContentCategory = "IAB13-4" ContentCategoryHedgeFund ContentCategory = "IAB13-5" ContentCategoryInsurance ContentCategory = "IAB13-6" ContentCategoryInvesting ContentCategory = "IAB13-7" ContentCategoryMutualFunds ContentCategory = "IAB13-8" ContentCategoryOptions ContentCategory = "IAB13-9" ContentCategoryRetirementPlanning ContentCategory = "IAB13-10" ContentCategoryStocks ContentCategory = "IAB13-11" ContentCategoryTaxPlanning ContentCategory = "IAB13-12" ContentCategorySociety ContentCategory = "IAB14" ContentCategoryDating ContentCategory = "IAB14-1" ContentCategoryDivorceSupport ContentCategory = "IAB14-2" ContentCategoryGayLife ContentCategory = "IAB14-3" ContentCategoryMarriage ContentCategory = "IAB14-4" ContentCategorySeniorLiving ContentCategory = "IAB14-5" ContentCategoryTeens ContentCategory = "IAB14-6" ContentCategoryWeddings ContentCategory = "IAB14-7" ContentCategoryEthnicSpecific ContentCategory = "IAB14-8" ContentCategoryScience ContentCategory = "IAB15" ContentCategoryAstrology ContentCategory = "IAB15-1" ContentCategoryBiology ContentCategory = "IAB15-2" ContentCategoryChemistry ContentCategory = "IAB15-3" ContentCategoryGeology ContentCategory = "IAB15-4" ContentCategoryParanormalPhenomena ContentCategory = "IAB15-5" ContentCategoryPhysics ContentCategory = "IAB15-6" ContentCategorySpaceAstronomy ContentCategory = "IAB15-7" ContentCategoryGeography ContentCategory = "IAB15-8" ContentCategoryBotany ContentCategory = "IAB15-9" ContentCategoryWeather ContentCategory = "IAB15-10" ContentCategoryPets ContentCategory = "IAB16" ContentCategoryAquariums ContentCategory = "IAB16-1" ContentCategoryBirds ContentCategory = "IAB16-2" ContentCategoryCats ContentCategory = "IAB16-3" ContentCategoryDogs ContentCategory = "IAB16-4" ContentCategoryLargeAnimals ContentCategory = "IAB16-5" ContentCategoryReptiles ContentCategory = "IAB16-6" ContentCategoryVeterinaryMedicine ContentCategory = "IAB16-7" ContentCategorySports ContentCategory = "IAB17" ContentCategoryAutoRacing ContentCategory = "IAB17-1" ContentCategoryBaseball ContentCategory = "IAB17-2" ContentCategoryBicycling ContentCategory = "IAB17-3" ContentCategoryBodybuilding ContentCategory = "IAB17-4" ContentCategoryBoxing ContentCategory = "IAB17-5" ContentCategoryCanoeingKayaking ContentCategory = "IAB17-6" ContentCategoryCheerleading ContentCategory = "IAB17-7" ContentCategoryClimbing ContentCategory = "IAB17-8" ContentCategoryCricket ContentCategory = "IAB17-9" ContentCategoryFigureSkating ContentCategory = "IAB17-10" ContentCategoryFlyFishing ContentCategory = "IAB17-11" ContentCategoryFootball ContentCategory = "IAB17-12" ContentCategoryFreshwaterFishing ContentCategory = "IAB17-13" ContentCategoryGameFish ContentCategory = "IAB17-14" ContentCategoryGolf ContentCategory = "IAB17-15" ContentCategoryHorseRacing ContentCategory = "IAB17-16" ContentCategoryHorses ContentCategory = "IAB17-17" ContentCategoryHuntingShooting ContentCategory = "IAB17-18" ContentCategoryInlineSkating ContentCategory = "IAB17-19" ContentCategoryMartialArts ContentCategory = "IAB17-20" ContentCategoryMountainBiking ContentCategory = "IAB17-21" ContentCategoryNASCARRacing ContentCategory = "IAB17-22" ContentCategoryOlympics ContentCategory = "IAB17-23" ContentCategoryPaintball ContentCategory = "IAB17-24" ContentCategoryPowerMotorcycles ContentCategory = "IAB17-25" ContentCategoryProBasketball ContentCategory = "IAB17-26" ContentCategoryProIceHockey ContentCategory = "IAB17-27" ContentCategoryRodeo ContentCategory = "IAB17-28" ContentCategoryRugby ContentCategory = "IAB17-29" ContentCategoryRunningJogging ContentCategory = "IAB17-30" ContentCategorySailing ContentCategory = "IAB17-31" ContentCategorySaltwaterFishing ContentCategory = "IAB17-32" ContentCategoryScubaDiving ContentCategory = "IAB17-33" ContentCategorySkateboarding ContentCategory = "IAB17-34" ContentCategorySkiing ContentCategory = "IAB17-35" ContentCategorySnowboarding ContentCategory = "IAB17-36" ContentCategorySurfingBodyboarding ContentCategory = "IAB17-37" ContentCategorySwimming ContentCategory = "IAB17-38" ContentCategoryTableTennisPingPong ContentCategory = "IAB17-39" ContentCategoryTennis ContentCategory = "IAB17-40" ContentCategoryVolleyball ContentCategory = "IAB17-41" ContentCategoryWalking ContentCategory = "IAB17-42" ContentCategoryWaterskiWakeboard ContentCategory = "IAB17-43" ContentCategoryWorldSoccer ContentCategory = "IAB17-44" ContentCategoryStyleFashion ContentCategory = "IAB18" ContentCategoryBeauty ContentCategory = "IAB18-1" ContentCategoryBodyArt ContentCategory = "IAB18-2" ContentCategoryFashion ContentCategory = "IAB18-3" ContentCategoryJewelry ContentCategory = "IAB18-4" ContentCategoryClothing ContentCategory = "IAB18-5" ContentCategoryAccessories ContentCategory = "IAB18-6" ContentCategoryTechnologyComputing ContentCategory = "IAB19" ContentCategoryDGraphics ContentCategory = "IAB19-1" ContentCategoryAnimation ContentCategory = "IAB19-2" ContentCategoryAntivirusSoftware ContentCategory = "IAB19-3" ContentCategoryCC ContentCategory = "IAB19-4" ContentCategoryCamerasCamcorders ContentCategory = "IAB19-5" ContentCategoryCellPhones ContentCategory = "IAB19-6" ContentCategoryComputerCertification ContentCategory = "IAB19-7" ContentCategoryComputerNetworking ContentCategory = "IAB19-8" ContentCategoryComputerPeripherals ContentCategory = "IAB19-9" ContentCategoryComputerReviews ContentCategory = "IAB19-10" ContentCategoryDataCenters ContentCategory = "IAB19-11" ContentCategoryDatabases ContentCategory = "IAB19-12" ContentCategoryDesktopPublishing ContentCategory = "IAB19-13" ContentCategoryDesktopVideo ContentCategory = "IAB19-14" ContentCategoryEmail ContentCategory = "IAB19-15" ContentCategoryGraphicsSoftware ContentCategory = "IAB19-16" ContentCategoryHomeVideoDVD ContentCategory = "IAB19-17" ContentCategoryInternetTechnology ContentCategory = "IAB19-18" ContentCategoryJava ContentCategory = "IAB19-19" ContentCategoryJavaScript ContentCategory = "IAB19-20" ContentCategoryMacSupport ContentCategory = "IAB19-21" ContentCategoryMP3MIDI ContentCategory = "IAB19-22" ContentCategoryNetConferencing ContentCategory = "IAB19-23" ContentCategoryNetforBeginners ContentCategory = "IAB19-24" ContentCategoryNetworkSecurity ContentCategory = "IAB19-25" ContentCategoryPalmtopsPDAs ContentCategory = "IAB19-26" ContentCategoryPCSupport ContentCategory = "IAB19-27" ContentCategoryPortable ContentCategory = "IAB19-28" ContentCategoryEntertainment ContentCategory = "IAB19-29" ContentCategoryUnix ContentCategory = "IAB19-31" ContentCategoryVisualBasic ContentCategory = "IAB19-32" ContentCategoryWebClipArt ContentCategory = "IAB19-33" ContentCategoryWebDesignHTML ContentCategory = "IAB19-34" ContentCategoryWebSearch ContentCategory = "IAB19-35" ContentCategoryWindows ContentCategory = "IAB19-36" ContentCategoryTravel ContentCategory = "IAB20" ContentCategoryAdventureTravel ContentCategory = "IAB20-1" ContentCategoryAfrica ContentCategory = "IAB20-2" ContentCategoryAirTravel ContentCategory = "IAB20-3" ContentCategoryAustraliaNewZealand ContentCategory = "IAB20-4" ContentCategoryBedBreakfasts ContentCategory = "IAB20-5" ContentCategoryBudgetTravel ContentCategory = "IAB20-6" ContentCategoryBusinessTravel ContentCategory = "IAB20-7" ContentCategoryByUSLocale ContentCategory = "IAB20-8" ContentCategoryCamping ContentCategory = "IAB20-9" ContentCategoryCanada ContentCategory = "IAB20-10" ContentCategoryCaribbean ContentCategory = "IAB20-11" ContentCategoryCruises ContentCategory = "IAB20-12" ContentCategoryEasternEurope ContentCategory = "IAB20-13" ContentCategoryEurope ContentCategory = "IAB20-14" ContentCategoryFrance ContentCategory = "IAB20-15" ContentCategoryGreece ContentCategory = "IAB20-16" ContentCategoryHoneymoonsGetaways ContentCategory = "IAB20-17" ContentCategoryHotels ContentCategory = "IAB20-18" ContentCategoryItaly ContentCategory = "IAB20-19" ContentCategoryJapan ContentCategory = "IAB20-20" ContentCategoryMexicoCentralAmerica ContentCategory = "IAB20-21" ContentCategoryNationalParks ContentCategory = "IAB20-22" ContentCategorySouthAmerica ContentCategory = "IAB20-23" ContentCategorySpas ContentCategory = "IAB20-24" ContentCategoryThemeParks ContentCategory = "IAB20-25" ContentCategoryTravelingwithKids ContentCategory = "IAB20-26" ContentCategoryUnitedKingdom ContentCategory = "IAB20-27" ContentCategoryRealEstate ContentCategory = "IAB21" ContentCategoryApartments ContentCategory = "IAB21-1" ContentCategoryArchitects ContentCategory = "IAB21-2" ContentCategoryBuyingSellingHomes ContentCategory = "IAB21-3" ContentCategoryShopping ContentCategory = "IAB22" ContentCategoryContestsFreebies ContentCategory = "IAB22-1" ContentCategoryCouponing ContentCategory = "IAB22-2" ContentCategoryComparison ContentCategory = "IAB22-3" ContentCategoryEngines ContentCategory = "IAB22-4" ContentCategoryReligionSpirituality ContentCategory = "IAB23" ContentCategoryAlternativeReligions ContentCategory = "IAB23-1" ContentCategoryAtheismAgnosticism ContentCategory = "IAB23-2" ContentCategoryBuddhism ContentCategory = "IAB23-3" ContentCategoryCatholicism ContentCategory = "IAB23-4" ContentCategoryChristianity ContentCategory = "IAB23-5" ContentCategoryHinduism ContentCategory = "IAB23-6" ContentCategoryIslam ContentCategory = "IAB23-7" ContentCategoryJudaism ContentCategory = "IAB23-8" ContentCategoryLatterDaySaints ContentCategory = "IAB23-9" ContentCategoryPaganWiccan ContentCategory = "IAB23-10" ContentCategoryUncategorized ContentCategory = "IAB24" ContentCategoryNonStandardContent ContentCategory = "IAB25" ContentCategoryUnmoderatedUGC ContentCategory = "IAB25-1" ContentCategoryExtremeGraphicExplicitViolence ContentCategory = "IAB25-2" ContentCategoryPornography ContentCategory = "IAB25-3" ContentCategoryProfaneContent ContentCategory = "IAB25-4" ContentCategoryHateContent ContentCategory = "IAB25-5" ContentCategoryUnderConstruction ContentCategory = "IAB25-6" ContentCategoryIncentivized ContentCategory = "IAB25-7" ContentCategoryAnyIllegalContent ContentCategory = "IAB26" ContentCategoryIllegalContent ContentCategory = "IAB26-1" ContentCategoryWarez ContentCategory = "IAB26-2" ContentCategorySpywareMalware ContentCategory = "IAB26-3" ContentCategoryCopyrightInfringement ContentCategory = "IAB26-4" )
ContentCategory values.
type Data ¶
type Data struct {
ID string `json:"id,omitempty"`
Name string `json:"name,omitempty"`
Segment []Segment `json:"segment,omitempty"`
Ext Extension `json:"ext,omitempty"`
}
Data and segment objects together allow additional data about the user to be specified. This data may be from multiple sources whether from the exchange itself or third party providers as specified by the id field. A bid request can mix data objects from multiple providers. The specific data providers in use should be published by the exchange a priori to its bidders.
type Deal ¶
type Deal struct {
ID string `json:"id,omitempty"` // Unique deal ID
BidFloor float64 `json:"bidfloor,omitempty"`
BidFloorCurrency string `json:"bidfloorcur,omitempty"` // Currency of bid floor
WSeat []string `json:"wseat,omitempty"` // Array of buyer seats allowed to bid on this Direct Deal.
WAdvDomain []string `json:"wadomain,omitempty"` // Array of advertiser domains allowed to bid on this Direct Deal
AuctionType int `json:"at,omitempty"` // Optional override of the overall auction type of the bid request, where 1 = First Price, 2 = Second Price Plus, 3 = the value passed in bidfloor is the agreed upon deal price. Additional auction types can be defined by the exchange.
Ext Extension `json:"ext,omitempty"`
Seats []string `json:"seats,omitempty"` // DEPRECATED: kept for backwards compatibility
Type int `json:"type,omitempty"` // DEPRECATED: kept for backwards compatibility
}
Deal contains PMP deal information.
func (*Deal) MarshalJSON ¶
MarshalJSON custom marshalling with normalization
func (*Deal) UnmarshalJSON ¶
UnmarshalJSON custom unmarshalling with normalization
type Device ¶
type Device struct {
UA string `json:"ua,omitempty"` // User agent
Sua *UserAgent `json:"sua,omitempty"` // Structured User agent. It's more accurate than UA
Geo *Geo `json:"geo,omitempty"` // Location of the device assumed to be the user’s current location
DNT int `json:"dnt,omitempty"` // "1": Do not track
LMT int `json:"lmt,omitempty"` // "1": Limit Ad Tracking
IP string `json:"ip,omitempty"` // IPv4
IPv6 string `json:"ipv6,omitempty"` // IPv6
DeviceType int `json:"devicetype,omitempty"` // The general type of device.
Make string `json:"make,omitempty"` // Device make
Model string `json:"model,omitempty"` // Device model
OS string `json:"os,omitempty"` // Device OS
OSVer string `json:"osv,omitempty"` // Device OS version
HwVer string `json:"hwv,omitempty"` // Hardware version of the device (e.g., "5S" for iPhone 5S).
H int `json:"h,omitempty"` // Physical height of the screen in pixels.
W int `json:"w,omitempty"` // Physical width of the screen in pixels.
PPI int `json:"ppi,omitempty"` // Screen size as pixels per linear inch.
PxRatio float64 `json:"pxratio,omitempty"` // The ratio of physical pixels to device independent pixels.
JS int `json:"js,omitempty"` // Javascript status ("0": Disabled, "1": Enabled)
GeoFetch int `json:"geofetch,omitempty"` // Indicates if the geolocation API will be available to JavaScript code running in the banner,
FlashVer string `json:"flashver,omitempty"` // Flash version
Language string `json:"language,omitempty"` // Browser language
LanguageB string `json:"langb,omitempty"` // Browser language using IETF BCP 47. Only one of language or langb should be present.
Carrier string `json:"carrier,omitempty"` // Carrier or ISP derived from the IP address
MCCMNC string `json:"mccmnc,omitempty"` // Mobile carrier as the concatenated MCC-MNC code (e.g., "310-005" identifies Verizon Wireless CDMA in the USA).
ConnType int `json:"connectiontype,omitempty"` // Network connection type.
IFA string `json:"ifa,omitempty"` // Native identifier for advertisers
IDSHA1 string `json:"didsha1,omitempty"` // SHA1 hashed device ID
IDMD5 string `json:"didmd5,omitempty"` // MD5 hashed device ID
PIDSHA1 string `json:"dpidsha1,omitempty"` // SHA1 hashed platform device ID
PIDMD5 string `json:"dpidmd5,omitempty"` // MD5 hashed platform device ID
MacSHA1 string `json:"macsha1,omitempty"` // SHA1 hashed device ID; IMEI when available, else MEID or ESN
MacMD5 string `json:"macmd5,omitempty"` // MD5 hashed device ID; IMEI when available, else MEID or ESN
OAID string `json:"oaid,omitempty"` // Open Advertising Tracking ID
Ext Extension `json:"ext,omitempty"`
}
Device object provides information pertaining to the device including its hardware, platform, location, and carrier. This device can refer to a mobile handset, a desktop computer, set top box or other digital device.
type EID ¶ added in v3.2.6
type EID struct {
Source string `json:"source,omitempty"` // Source or technology provider responsible for the set of included IDs. Expressed as a top-level domain.
UIDs []UID `json:"uids,omitempty"` // Array of extended ID UID objects from the given source.
Ext Extension `json:"ext,omitempty"`
}
EID (Extended ID) support in the OpenRTB specification allows buyers to use audience data in real-time bidding. This object can contain one or more UIDs from a single source or a technology provider.
type Extension ¶
type Extension json.RawMessage
Extension is a raw encoded JSON value. It implements Marshaler and Unmarshaler, defined in encoding/json package
func (Extension) MarshalJSON ¶
MarshalJSON returns e as the JSON encoding of e.
func (*Extension) UnmarshalJSON ¶
UnmarshalJSON sets *e to a copy of data.
type Format ¶
type Format struct {
W int `json:"w,omitempty"` // Width in device independent pixels (DIPS).
H int `json:"h,omitempty"` // Height in device independent pixels (DIPS).
WidthRatio int `json:"wratio,omitempty"` // Relative width when expressing size as a ratio.
HeightRatio int `json:"hration,omitempty"` // Relative height when expressing size as a ratio.
WidthMin int `json:"wmin,omitempty"` // The minimum width in device independent pixels (DIPS) at which the ad will be displayed the size is expressed as a ratio.
Ext Extension `json:"ext,omitempty"`
}
Format object represents an allowed size (i.e., height and width combination) for a banner impression. These are typically used in an array for an impression where multiple sizes are permitted. It is recommended that either the w/h pair or the wratio/hratio/wmin set (i.e., for Flex Ads) be specified.
type Geo ¶
type Geo struct {
Lat float64 `json:"lat,omitempty"` // Latitude from -90 to 90
Lon float64 `json:"lon,omitempty"` // Longitude from -180 to 180
Type int `json:"type,omitempty"` // Indicate the source of the geo data
Accuracy int `json:"accuracy,omitempty"` // Estimated location accuracy in meters; recommended when lat/lon are specified and derived from a device’s location services
LastFix int `json:"lastfix,omitempty"` // Number of seconds since this geolocation fix was established.
IPService int `json:"ipservice,omitempty"` // Service or provider used to determine geolocation from IP address if applicable
Country string `json:"country,omitempty"` // Country using ISO 3166-1 Alpha 3
Region string `json:"region,omitempty"` // Region using ISO 3166-2
RegionFIPS104 string `json:"regionFIPS104,omitempty"` // Region of a country using FIPS 10-4
Metro string `json:"metro,omitempty"`
City string `json:"city,omitempty"`
Zip string `json:"zip,omitempty"`
UTCOffset int `json:"utcoffset,omitempty"` // Local time as the number +/- of minutes from UTC
Ext Extension `json:"ext,omitempty"`
}
Geo object may appear in one or both the Device Object and the User Object. This is intentional, since the information may be derived from either a device-oriented source (such as IP geo lookup), or by user registration information (for example provided to a publisher through a user registration).
type IPLocation ¶
type IPLocation int
IPLocation as defined in section 5.23.
const ( IPLocationUnknown IPLocation = 0 IPLocationIP2Location IPLocation = 1 IPLocationNeustar IPLocation = 2 IPLocationMaxMind IPLocation = 3 IPLocationNetAquity IPLocation = 4 )
5.22 IP Location Services
type Impression ¶
type Impression struct {
ID string `json:"id"` // A unique identifier for this impression
Metric []*Metric `json:"metric,omitempty"`
Banner *Banner `json:"banner,omitempty"`
Video *Video `json:"video,omitempty"`
Audio *Audio `json:"audio,omitempty"`
Native *Native `json:"native,omitempty"`
Pmp *Pmp `json:"pmp,omitempty"` // A reference to the PMP object containing any Deals eligible for the impression object.
DisplayManager string `json:"displaymanager,omitempty"` // Name of ad mediation partner, SDK technology, etc
DisplayManagerVer string `json:"displaymanagerver,omitempty"` // Version of the above
Clickbrowser int `json:"clickbrowser"` // Indicates the type of browser opened upon clicking the creative in an app, where 0 = embedded, 1 = native
Instl int `json:"instl,omitempty"` // Interstitial, Default: 0 ("1": Interstitial, "0": Something else)
TagID string `json:"tagid,omitempty"` // IDentifier for specific ad placement or ad tag
BidFloor float64 `json:"bidfloor,omitempty"` // Bid floor for this impression in CPM
BidFloorCurrency string `json:"bidfloorcur,omitempty"` // Currency of bid floor
Secure NumberOrString `json:"secure,omitempty"` // Flag to indicate whether the impression requires secure HTTPS URL creative assets and markup.
Quantity *Quantity `json:"qty,omitempty"` // Includes the impression multiplier, and describes its source.
Exp int `json:"exp,omitempty"` // Advisory as to the number of seconds that may elapse between the auction and the actual impression.
IFrameBuster []string `json:"iframebuster,omitempty"` // Array of names for supportediframe busters.
ContentType string `json:"-"` // Used to attribute bid to a content - not sent in request
MediaType string `json:"-"` // media of the impression e.g. video/display
Rewarded int `json:"rwdd"` //Indicates whether the user receives a reward for viewing the ad
Ext Extension `json:"ext,omitempty"`
}
Impression or the "imp" object describes the ad position or impression being auctioned. A single bid request can include multiple "imp" objects, a use case for which might be an exchange that supports selling all ad positions on a given page as a bundle. Each "imp" object has a required ID so that bids can reference them individually. An exchange can also conduct private auctions by restricting involvement to specific subsets of seats within bidders. The presence of Banner, Video, and/or Native objects subordinate to the Imp object indicates the type of impression being offered.
type Inventory ¶
type Inventory struct {
ID string `json:"id,omitempty"` // ID on the exchange
Name string `json:"name,omitempty"`
Domain string `json:"domain,omitempty"`
Cat []string `json:"cat,omitempty"` // Array of IAB content categories
SectionCat []string `json:"sectioncat,omitempty"` // Array of IAB content categories for subsection
PageCat []string `json:"pagecat,omitempty"` // Array of IAB content categories for page
PrivacyPolicy *int `json:"privacypolicy,omitempty"` // Default: 1 ("1": has a privacy policy)
Publisher *Publisher `json:"publisher,omitempty"` // Details about the Publisher
Content *Content `json:"content,omitempty"` // Details about the Content
Keywords string `json:"keywords,omitempty"` // Comma separated list of keywords about the site.
Ext Extension `json:"ext,omitempty"`
}
Inventory contains inventory specific attributes
func (*Inventory) GetPrivacyPolicy ¶
GetPrivacyPolicy returns the privacy policy value
type MarkupType ¶
type MarkupType int
Type of the creative markup so that it can properly be associated with the right sub-object of the BidRequest.Imp.
const ( MarkupUnknown MarkupType = 0 MarkupBanner MarkupType = 1 MarkupVideo MarkupType = 2 MarkupAudio MarkupType = 3 MarkupNative MarkupType = 4 )
MarkupType available options
type MeasurementSourceType ¶
type MeasurementSourceType int
const ( MeasurementSourceTypeUnknown MeasurementSourceType = 0 MeasurementSourceTypeMeasurementVendor MeasurementSourceType = 1 MeasurementSourceTypePublisher MeasurementSourceType = 2 MeasurementSourceTypeExchange MeasurementSourceType = 3 )
type Metric ¶
type Metric struct {
Type string `json:"type"`
Value float64 `json:"value"`
Vendor string `json:"vendor"`
Ext Extension `json:"ext,omitempty"`
}
Metric object is associated with an impression as an array of metrics. These metrics can offer insight into the impression to assist with decisioning such as average recent viewability, click-through rate, etc. Each metric is identified by its type, reports the value of the metric, and optionally identifies the source or vendor measuring the value.
type Native ¶
type Native struct {
Request Extension `json:"request"` // Request payload complying with the Native Ad Specification.
Ver string `json:"ver,omitempty"` // Version of the Native Ad Specification to which request complies; highly recommended for efficient parsing.
API []int `json:"api,omitempty"` // List of supported API frameworks for this impression.
BAttr []int `json:"battr,omitempty"` // Blocked creative attributes
Ext Extension `json:"ext,omitempty"`
}
Native object represents a native type impression. Native ad units are intended to blend seamlessly into the surrounding content (e.g., a sponsored Twitter or Facebook post). As such, the response must be well-structured to afford the publisher fine-grained control over rendering. The presence of a Native as a subordinate of the Imp object indicates that this impression is offered as a native type impression. At the publisher’s discretion, that same impression may also be offered as banner and/or video by also including as Imp subordinates the Banner and/or Video objects, respectively. However, any given bid for the impression must conform to one of the offered types.
type NumberOrString ¶
type NumberOrString int
NumberOrString attempts to fix OpenRTB incompatibilities of exchanges. On decoding, it can handle numbers and strings. On encoding, it will generate a number, as intended by the standard.
func (*NumberOrString) UnmarshalJSON ¶
func (n *NumberOrString) UnmarshalJSON(data []byte) (err error)
UnmarshalJSON implements json.Unmarshaler
type Pmp ¶
type Pmp struct {
Private int `json:"private_auction,omitempty"`
Deals []Deal `json:"deals,omitempty"`
Ext Extension `json:"ext,omitempty"`
}
Pmp is the Private Marketplace Object
type PodSequence ¶
type PodSequence int
PodSequence identifies the pod sequence field, for use in video content streams with one or more ad pods as defined in Adcom1.0
const ( PodSeqLast PodSequence = -1 // Last pod in the content stream. PodSeqAny PodSequence = 0 // Any pod in the content stream. PodSeqFirst PodSequence = 1 // First pod in the content stream. )
PodSequence options as defined in Adcom1.0
type Producer ¶
type Producer ThirdParty
Producer is useful when content where the ad is shown is syndicated, and may appear on a completely different publisher. The producer object itself and all of its parameters are optional, so default values are not provided. If an optional parameter is not specified, it should be considered unknown.
type Publisher ¶
type Publisher ThirdParty
Publisher object itself and all of its parameters are optional, so default values are not provided. If an optional parameter is not specified, it should be considered unknown.
type Quantity ¶
type Quantity struct {
Multiplier float64 `json:"multiplier"`
SourceType MeasurementSourceType `json:"sourcetype,omitempty"`
Vendor string `json:"vendor,omitempty"`
Ext Extension `json:"ext,omitempty"`
}
type RegExtension ¶
type RegExtension struct {
GDPR int `json:"gdpr,omitempty"`
LGPD BoolOrNumber `json:"lgpd,omitempty"`
PIPL BoolOrNumber `json:"pipl,omitempty"`
USPrivacy string `json:"us_privacy,omitempty"`
}
RegExtension Extension object for Regulations
type Regulations ¶
type Regulations struct {
Coppa int `json:"coppa,omitempty"` // Flag indicating if this request is subject to the COPPA regulations established by the USA FTC, where 0 = no, 1 = yes.
GDPR int `json:"gdpr,omitempty"` // Flag that indicates whether or not the request is subject to GDPR regulations 0 = No, 1 = Yes, omission indicates Unknown.
USPrivacy string `json:"us_privacy,omitempty"` // Communicates signals regarding consumer privacy under US privacy regulation.
Ext RegExtension `json:"ext,omitempty"`
}
Regulations object contains any legal, governmental, or industry regulations that apply to the request. The coppa flag signals whether or not the request falls under the United States Federal Trade Commission's regulations for the United States Children's Online Privacy Protection Act ("COPPA").
type SdkData ¶
type SdkData struct {
Seq int32 `json:"seq"` // Number of times Header Bidding same prevaluation token has been requested by Mediation SDK
Loads int32 `json:"loads"` // Number of times same prevaluation token has been used to load AdM
Starts int32 `json:"starts"` // Number of times starts has been registered for the same prevaluation token
}
SdkData object for UserExtension. Required for direct demand header bidding integration
type SeatBid ¶
type SeatBid struct {
Bid []Bid `json:"bid"` // Array of bid objects; each realtes to an imp, if exchange supported can have many bid objects.
Seat string `json:"seat,omitempty"` // ID of the bidder seat optional string ID of the bidder seat on whose behalf this bid is made.
Group int `json:"group,omitempty"` // '1' means impression must be won-lost as a group; default is '0'.
Ext Extension `json:"ext,omitempty"`
}
SeatBid contains seat information. At least one of Bid is required. A bid response can contain multiple "seatbid” objects, each on behalf of a different bidder seat. SeatBid object can contain multiple bids each pertaining to a different impression on behalf of a seat. Each "bid” object must include the impression ID to which it pertains as well as the bid price. Group attribute can be used to specify if a seat is willing to accept any impressions that it can win (default) or if it is only interested in winning any if it can win them all (i.e., all or nothing).
type Segment ¶
type Segment struct {
ID string `json:"id,omitempty"`
Name string `json:"name,omitempty"`
Value string `json:"value,omitempty"`
Ext Extension `json:"ext,omitempty"`
}
Segment objects are essentially key-value pairs that convey specific units of data about the user. The parent Data object is a collection of such values from a given data provider. The specific segment names and value options must be published by the exchange a priori to its bidders.
type Site ¶
type Site struct {
Inventory
Page string `json:"page,omitempty"` // URL of the page
Ref string `json:"ref,omitempty"` // Referrer URL
Search string `json:"search,omitempty"` // Search string that caused naviation
Mobile int `json:"mobile,omitempty"` // Mobile ("1": site is mobile optimised)
}
Site object should be included if the ad supported content is part of a website (as opposed to an application). A bid request must not contain both a site object and an app object.
type SlotPositionInPod ¶
type SlotPositionInPod int
SlotPositionInPod identifies the slot position in pod field, for use in video ad pods as defined in Adcom1.0
const ( SlotPosLast SlotPositionInPod = -1 // Last ad in the pod. SlotPosAny SlotPositionInPod = 0 // Any ad in the pod. SlotPosFirst SlotPositionInPod = 1 // First ad in the pod. SlotPosFirstOrLast SlotPositionInPod = 2 // First or Last ad in the pod. )
SlotPositionInPod options as defined in Adcom1.0
type Source ¶
type Source struct {
FinalSaleDecision int `json:"fd"` // Entity responsible for the final impression sale decision, where 0 = exchange, 1 = upstream source.
TransactionID string `json:"tid,omitempty"` // Transaction ID that must be common across all participants in this bid request (e.g., potentially multiple exchanges).
PaymentChain string `json:"pchain,omitempty"` // Payment ID chain string containing embedded syntax described in the TAG Payment ID Protocol v1.0.
Ext Extension `json:"ext,omitempty"` // Placeholder for exchange-specific extensions to OpenRTB.
}
Source object describes the nature and behavior of the entity that is the source of the bid request upstream from the exchange.
type StringOrNumber ¶
type StringOrNumber string
StringOrNumber attempts to fix OpenRTB incompatibilities of exchanges. On decoding, it can handle numbers and strings. On encoding, it will generate a string, as intended by the standard.
func (*StringOrNumber) UnmarshalJSON ¶
func (n *StringOrNumber) UnmarshalJSON(data []byte) error
UnmarshalJSON implements json.Unmarshaler
type ThirdParty ¶
type ThirdParty struct {
ID string `json:"id,omitempty"`
Name string `json:"name,omitempty"`
Cat []string `json:"cat,omitempty"` // Array of IAB content categories
Domain string `json:"domain,omitempty"`
Ext Extension `json:"ext,omitempty"`
}
ThirdParty abstract attributes.
type UID ¶ added in v3.2.6
type UID struct {
ID string `json:"id,omitempty"` // The identifier for the user.
AgentType int `json:"atype,omitempty"` // Type of user agent the ID is from.
Ext Extension `json:"ext,omitempty"`
}
UID objects contain a single user identifier provided as part of extended identifiers.
type User ¶
type User struct {
ID string `json:"id,omitempty"` // Unique consumer ID of this user on the exchange
BuyerID string `json:"buyerid,omitempty"` // Buyer-specific ID for the user as mapped by the exchange for the buyer. At least one of buyeruid/buyerid or id is recommended. Valid for OpenRTB 2.3.
BuyerUID string `json:"buyeruid,omitempty"` // Buyer-specific ID for the user as mapped by the exchange for the buyer. Same as BuyerID but valid for OpenRTB 2.2.
YOB int `json:"yob,omitempty"` // Year of birth as a 4-digit integer.
Gender string `json:"gender,omitempty"` // Gender ("M": male, "F" female, "O" Other)
Keywords string `json:"keywords,omitempty"` // Comma separated list of keywords, interests, or intent
CustomData string `json:"customdata,omitempty"` // Optional feature to pass bidder data that was set in the exchange's cookie. The string must be in base85 cookie safe characters and be in any format. Proper JSON encoding must be used to include "escaped" quotation marks.
Geo *Geo `json:"geo,omitempty"`
Data []Data `json:"data,omitempty"`
Consent string `json:"consent,omitempty"` // GDPR TCF consent string
EIDs []EID `json:"eids,omitempty"`
Ext UserExtension `json:"ext,omitempty"`
}
User object contains information known or derived about the human user of the device (i.e., the audience for advertising). The user id is an exchange artifact and may be subject to rotation or other privacy policies. However, this user ID must be stable long enough to serve reasonably as the basis for frequency capping and retargeting.
type UserAgent ¶
type UserAgent struct {
Browsers []BrandVersion `json:"browsers,omitempty"` // A browser or similar software component
Platform BrandVersion `json:"platform,omitempty"` // The user agent’s execution platform / OS
Mobile int `json:"mobile,omitempty"` // 1 if the agent prefers a "mobile" version of the content, if available, i.e. optimized for small screens or touch input. 0 if the agent prefers the "desktop". Taken from Sec-CH-UAMobile header
Architecture string `json:"architecture,omitempty"` // Device’s major binary architecture, e.g. "x86" or "arm". Taken from the Sec-CH-UA-Arch header
Bitness string `json:"bitness,omitempty"` // Device’s bitness, e.g. "64" for 64-bit architecture. Taken from the Sec-CH-UA-Bitness header
Model string `json:"model,omitempty"` // Device model. Taken from the Sec-CH-UAModel header
Source int `json:"source,omitempty"` // The source of data used to create this object, List: User-Agent Source in AdCOM 1.0
Ext Extension `json:"ext,omitempty"`
}
type UserExtension ¶
type UserExtension struct {
Consent string `json:"consent,omitempty"`
SdkData *SdkData `json:"sdkdata,omitempty"`
AppStartTime int64 `json:"appStartTime,omitempty"`
SessionID string `json:"sessionId,omitempty"`
}
UserExtension Extension object for User
type Video ¶
type Video struct {
Mimes []string `json:"mimes,omitempty"` // Content MIME types supported.
MinDuration int `json:"minduration,omitempty"` // Minimum video ad duration in seconds
MaxDuration int `json:"maxduration,omitempty"` // Maximum video ad duration in seconds
Protocols []int `json:"protocols,omitempty"` // Video bid response protocols
Protocol int `json:"protocol,omitempty"` // Video bid response protocols DEPRECATED
W int `json:"w,omitempty"` // Width of the player in pixels
H int `json:"h,omitempty"` // Height of the player in pixels
StartDelay int `json:"startdelay,omitempty"` // Indicates the start delay in seconds
Linearity int `json:"linearity,omitempty"` // Indicates whether the ad impression is linear or non-linear
Skip int `json:"skip"` // Indicates if the player will allow the video to be skipped, where 0 = no, 1 = yes.
SkipMin int `json:"skipmin,omitempty"` // Videos of total duration greater than this number of seconds can be skippable
SkipAfter int `json:"skipafter,omitempty"` // Number of seconds a video must play before skipping is enabled
Sequence int `json:"sequence,omitempty"` // Default: 1
BAttr []int `json:"battr,omitempty"` // Blocked creative attributes
MaxExtended int `json:"maxextended,omitempty"` // Maximum extended video ad duration
MinBitrate int `json:"minbitrate,omitempty"` // Minimum bit rate in Kbps
MaxBitrate int `json:"maxbitrate,omitempty"` // Maximum bit rate in Kbps
BoxingAllowed *int `json:"boxingallowed,omitempty"` // If exchange publisher has rules preventing letter boxing
PodID string `json:"podid,omitempty"` // Pod id unique identifier for video ad pod
PodDuration int `json:"poddur,omitempty"` // Pod Duration total amount of time in seconds that advertisers may fill for a video ad pod
PodSequence PodSequence `json:"podseq,omitempty"` // Pod Sequence position of the video ad pod
SlotInPod SlotPositionInPod `json:"slotinpod,omitempty"` // Slot Position in ad
RqdDurs []int64 `json:"rqddurs,omitempty"` // Precise acceptable durations for video creatives inseconds.
MinCPMPerSecond float64 `json:"mincpmpersec,omitempty"` // Minimum CPM per second. This is a price floor for the portion of a video ad pod
PlaybackMethod []int `json:"playbackmethod,omitempty"` // List of allowed playback methods
Delivery []int `json:"delivery,omitempty"` // List of supported delivery methods
Pos int `json:"pos,omitempty"` // Ad Position
CompanionAd []Banner `json:"companionad,omitempty"`
Api []int `json:"api,omitempty"` // List of supported API frameworks
CompanionType []int `json:"companiontype,omitempty"`
Placement int `json:"placement,omitempty"` // Video placement type, DEPRECATED
Plcmt VideoPlcmt `json:"plcmt,omitempty"` // Video Plcmt type ad defined in ADCOM1.0
Ext Extension `json:"ext,omitempty"`
}
Video object must be included directly in the impression object if the impression offered for auction is an in-stream video ad opportunity.
func (*Video) GetBoxingAllowed ¶
GetBoxingAllowed returns the boxing-allowed indicator
func (*Video) MarshalJSON ¶
MarshalJSON custom marshalling with normalization
func (*Video) UnmarshalJSON ¶
UnmarshalJSON custom unmarshalling with normalization
type VideoPlcmt ¶
type VideoPlcmt int
VideoPlcmt represents the the various types of video placements in accordance with updated IAB Digital Video Guidelines.
const ( VideoPlcmtInstream VideoPlcmt = 1 VideoPlcmtAccompanyingContent VideoPlcmt = 2 VideoPlcmtInterstitial VideoPlcmt = 3 VideoPlcmtNoContent VideoPlcmt = 4 )
Types of video placements derived largely from the IAB Digital Video Guidelines.
type VolumeNorm ¶
type VolumeNorm int
VolumeNorm as defined in section 5.17.
const ( VolumeNormNone VolumeNorm = 0 VolumeNormAverage VolumeNorm = 1 VolumeNormPeak VolumeNorm = 2 VolumeNormLoudness VolumeNorm = 3 VolumeNormCustom VolumeNorm = 4 )
5.17 Volume Normalization Modes