-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathqty.go
51 lines (44 loc) · 1.59 KB
/
qty.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
package openrtb2
import (
"encoding/json"
"github.com/prebid/openrtb/v20/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"`
// Attribute:
// ext
// Type:
// object
// Definition:
// Placeholder for vendor specific extensions to this object.
Ext json.RawMessage `json:"ext,omitempty"`
}