-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* InventoryPartnerDomain, ETime, + GPP * DOOH * Fix Type Name Change * Final Release Update * Revert Comment To Match Final Spec * Remove inventorypartnerdomain from adcom app object and fix typos Co-authored-by: bsardo <1168933+bsardo@users.noreply.github.com>
- Loading branch information
1 parent
a5ab165
commit 047080c
Showing
10 changed files
with
259 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package adcom1 | ||
|
||
// DOOHMultiplierMeasurementSourceType identifies the types of entities that provide quantity measurement for | ||
// impression multipliers, which are common in DOOH (Digital Out of Home) advertising. | ||
type DOOHMultiplierMeasurementSourceType int8 | ||
|
||
// MultiplierMeasurementSourceType options. | ||
const ( | ||
MultiplierUnknown DOOHMultiplierMeasurementSourceType = 0 | ||
MultiplierMeasurementVendorProvided DOOHMultiplierMeasurementSourceType = 1 | ||
MultiplierPublisherProvided DOOHMultiplierMeasurementSourceType = 2 | ||
MultiplierExchangeProvided DOOHMultiplierMeasurementSourceType = 3 | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package adcom1 | ||
|
||
// DOOHVenueTaxonomy describes the locations and contexts in which Out-Of-Home media may be experienced. Taxonomies entries | ||
// are expected to refer to a specific version, unless a given taxonomy has explicit semantics for forward compatibility and | ||
// handling updates. | ||
type DOOHVenueTaxonomy int | ||
|
||
// Digital out-of-home venue taxonomies. | ||
const ( | ||
VenueTaxonomyAdCom DOOHVenueTaxonomy = 0 // AdCom DOOH Venue Types (deprecated) | ||
VenueTaxonomyOpenOOH10 DOOHVenueTaxonomy = 1 // OpenOOH Venue Taxonomy 1.0 https://github.com/openooh/venue-taxonomy/blob/main/specification-1.0.md | ||
VenueTaxonomyDPAA DOOHVenueTaxonomy = 2 // DPAA Device Venue Types https://github.com/InteractiveAdvertisingBureau/AdCOM/blob/master/AdCOM%20v1.0%20FINAL.md#list--dooh-venue-types- | ||
VenueTaxonomyDMI11 DOOHVenueTaxonomy = 3 // DMI Categorization of Venues 1.1 https://www.dmi-org.com/download/DMI_Standards_for_DOOH_Venues.pdf | ||
VenueTaxonomyOMAJan2022 DOOHVenueTaxonomy = 4 // OMA taxonomy Jan 2022 https://www.oma.org.au/industry-standards | ||
VenueTaxonomyOpenOOH11 DOOHVenueTaxonomy = 5 // OpenOOH Venue Taxonomy 1.1 https://github.com/openooh/venue-taxonomy/blob/main/specification-1.1.md | ||
) | ||
|
||
// Ptr returns pointer to own value. | ||
func (t DOOHVenueTaxonomy) Ptr() *DOOHVenueTaxonomy { | ||
return &t | ||
} | ||
|
||
// Val safely dereferences pointer, returning default value (ConnectionUnknown) for nil. | ||
func (t *DOOHVenueTaxonomy) Val() DOOHVenueTaxonomy { | ||
if t == nil { | ||
return VenueTaxonomyOpenOOH10 | ||
} | ||
return *t | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
package openrtb2 | ||
|
||
import ( | ||
"encoding/json" | ||
|
||
"github.com/prebid/openrtb/v17/adcom1" | ||
) | ||
|
||
// Object: DOOH | ||
// | ||
// This object should be included if the ad supported content is a Digital Out-Of-Home screen. | ||
// A bid request with a DOOH object must not contain a site or app object. | ||
// At a minimum, it is useful to provide id and/or venuetype, but this is not strictly required. | ||
type DOOH struct { | ||
|
||
// Attribute: | ||
// id | ||
// Type: | ||
// string; recommended | ||
// Description: | ||
// Exchange provided id for a placement or logical grouping of placements. | ||
ID string `json:"id,omitempty"` | ||
|
||
// Attribute: | ||
// name | ||
// Type: | ||
// string | ||
// Description: | ||
// Name of the DOOH placement. | ||
Name string `json:"name,omitempty"` | ||
|
||
// Attribute: | ||
// venuetype | ||
// Type: | ||
// string, array | ||
// Description: | ||
// The type of out-of-home venue. The taxonomy to be used is defined by | ||
// the venuetax field. If no venuetax field is supplied, The OpenOOH | ||
// Venue Taxonomy is assumed. | ||
VenueType []string `json:"venuetype,omitempty"` | ||
|
||
// Attribute: | ||
// venuetypetax | ||
// Type: | ||
// integer; default 1 | ||
// Description: | ||
// The venue taxonomy in use. Refer to List: DOOH Venue Taxonomies | ||
VenueTypeTax *adcom1.DOOHVenueTaxonomy `json:"venuetypetax,omitempty"` | ||
|
||
// Attribute: | ||
// publisher | ||
// Type: | ||
// object | ||
// Description: | ||
// Details about the publisher of the placement. | ||
Publisher *Publisher `json:"publisher,omitempty"` | ||
|
||
// Attribute: | ||
// domain | ||
// Type: | ||
// string | ||
// Description: | ||
// Domain of the inventory owner (e.g., “mysite.foo.com”) | ||
Domain string `json:"domain,omitempty"` | ||
|
||
// Attribute: | ||
// keywords | ||
// Type: | ||
// string | ||
// Description: | ||
// Comma separated list of keywords about the DOOH placement. | ||
Keywords string `json:"keywords,omitempty"` | ||
|
||
// Attribute: | ||
// content | ||
// Type: | ||
// object | ||
// Description: | ||
// Details about the Content within the DOOH placement. | ||
Content *Content `json:"content,omitempty"` | ||
|
||
// Attribute: | ||
// ext | ||
// Type: | ||
// object | ||
// Description: | ||
// Placeholder for exchange-specific extensions to OpenRTB. | ||
Ext json.RawMessage `json:"ext,omitempty"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package openrtb2 | ||
|
||
import "github.com/prebid/openrtb/v17/adcom1" | ||
|
||
// Object: Qty | ||
// | ||
// A programmatic impression is often referred to as a ‘spot’ in digital out-of-home and CTV, with an impression being a unique member of the audience viewing it. | ||
// Therefore, a standard means of passing a multiplier in the bid request, representing the total quantity of impressions, is required. | ||
// This object includes the impression multiplier, and describes the source of the multiplier value. | ||
type Qty struct { | ||
|
||
// Attribute: | ||
// multiplier | ||
// Type: | ||
// float; required | ||
// Description: | ||
// The quantity of billable events which will be deemed to have occurred | ||
// if this item is purchased. For example, a DOOH opportunity may be | ||
// considered to be 14.2 impressions. Equivalent to qtyflt in OpenRTB 3.0. | ||
Multiplier float64 `json:"multiplier,omitempty"` | ||
|
||
// Attribute:x | ||
// sourcetype | ||
// Type: | ||
// integer; recommended | ||
// Description: | ||
// The source type of the quantity measurement, ie. publisher. Refer to | ||
// List: DOOH Multiplier Measurement Source Types. | ||
SourceType adcom1.DOOHMultiplierMeasurementSourceType `json:"sourcetype,omitempty"` | ||
|
||
// Attribute: | ||
// vendor | ||
// Type: | ||
// string; required if sourcetype is present and type = 1 | ||
// Description: | ||
// The top level business domain name of the measurement vendor providing | ||
// the quantity measurement. | ||
Vendor string `json:"vendor,omitempty"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters