Skip to content

Commit 42f3673

Browse files
committed
update
1 parent 1108fbd commit 42f3673

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

impression.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +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
38+
Rewarded int `json:"rwdd,omitempty"` //Indicates whether the user receives a reward for viewing the ad
3939
}
4040

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

impression_test.go

Lines changed: 1 addition & 6 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,7 +38,7 @@ var _ = Describe("Impression", func() {
4338
},
4439
},
4540
},
46-
Rewarded: false,
41+
Rewarded: 0,
4742
}))
4843
})
4944

0 commit comments

Comments
 (0)