Skip to content

Commit fdd38fa

Browse files
authored
Merge pull request #35 from emaraschio/master
Creative Attributes
2 parents 5b61d39 + 0b6b116 commit fdd38fa

2 files changed

Lines changed: 22 additions & 4 deletions

File tree

banner_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ var _ = Describe("Banner", func() {
1818
W: 728,
1919
H: 90,
2020
Pos: AdPosAboveFold,
21-
BType: []int{4},
22-
BAttr: []int{14},
23-
Api: []int{3},
21+
BType: []int{BannerTypeFrame},
22+
BAttr: []int{CreativeAttributeWindowsDialogOrAlert},
23+
Api: []int{APIFrameworkMRAID1},
2424
}))
2525
})
2626

openrtb.go

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,25 @@ const (
99
)
1010

1111
// 5.3 Creative Attributes
12-
// TODO
12+
const (
13+
CreativeAttributeAudioAdAutoPlay = 1
14+
CreativeAttributeAudioAdUserInitiated = 2
15+
CreativeAttributeExpandableAuto = 3
16+
CreativeAttributeExpandableUserInitiatedClick = 4
17+
CreativeAttributeExpandableUserInitiatedRollover = 5
18+
CreativeAttributeInBannerVideoAdAutoPlay = 6
19+
CreativeAttributeInBannerVideoAdUserInitiated = 7
20+
CreativeAttributePop = 8
21+
CreativeAttributeProvocativeOrSuggestiveImagery = 9
22+
CreativeAttributeExtremeAnimation = 10
23+
CreativeAttributeSurveys = 11
24+
CreativeAttributeTextOnly = 12
25+
CreativeAttributeUserInitiated = 13
26+
CreativeAttributeWindowsDialogOrAlert = 14
27+
CreativeAttributeHasAudioWithPlayer = 15
28+
CreativeAttributeAdProvidesSkipButton = 16
29+
CreativeAttributeAdobeFlash = 17
30+
)
1331

1432
// 5.4 Ad Position
1533
const (

0 commit comments

Comments
 (0)