Skip to content

Commit 738e112

Browse files
authored
Merge pull request #29 from UnityTech/PPS-234-2
Change Impression Rewarded to Int
2 parents 1108fbd + 6b33412 commit 738e112

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ var _ = Describe("Impression", func() {
4343
},
4444
},
4545
},
46-
Rewarded: false,
46+
Rewarded: 0,
4747
}))
4848
})
4949

0 commit comments

Comments
 (0)