-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathplacement_position.go
30 lines (26 loc) · 1 KB
/
placement_position.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
package adcom1
// PlacementPosition represents placement positions as a relative measure of visibility or prominence.
// This table has values derived from the TAG Inventory Quality Guidelines (IQG).
type PlacementPosition int8
// Placement positions.
const (
PositionUnknown PlacementPosition = 0 // Unknown
PositionAboveFold PlacementPosition = 1 // Above The Fold
PositionLocked PlacementPosition = 2 // Locked (i.e., fixed position)
PositionBelowFold PlacementPosition = 3 // Below The Fold
PositionHeader PlacementPosition = 4 // Header
PositionFooter PlacementPosition = 5 // Footer
PositionSideBar PlacementPosition = 6 // Sidebar
PositionFullScreen PlacementPosition = 7 // Fullscreen
)
// Ptr returns pointer to own value.
func (p PlacementPosition) Ptr() *PlacementPosition {
return &p
}
// Val safely dereferences pointer, returning default value (PositionUnknown) for nil.
func (p *PlacementPosition) Val() PlacementPosition {
if p == nil {
return PositionUnknown
}
return *p
}