Skip to content

Commit 4b8e1a3

Browse files
committed
update
1 parent bda534a commit 4b8e1a3

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

impression.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ type Impression struct {
3535
ContentType string `json:"-"` // Used to attribute bid to a content - not sent in request
3636
MediaType string `json:"-"` // media of the impression e.g. video/display
3737
Ext Extension `json:"ext,omitempty"`
38+
Rewarded bool `json:"rwdd,omitempty"` //Indicates whether the user receives a reward for viewing the ad
3839
}
3940

4041
func (imp *Impression) assetCount() int {

impression_test.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
package openrtb
22

3-
import (
4-
. "github.com/onsi/ginkgo"
5-
. "github.com/onsi/gomega"
6-
)
7-
83
var _ = Describe("Impression", func() {
94
var subject *Impression
105

@@ -43,6 +38,7 @@ var _ = Describe("Impression", func() {
4338
},
4439
},
4540
},
41+
Rewarded: false,
4642
}))
4743
})
4844

0 commit comments

Comments
 (0)