Skip to content

Commit 1108fbd

Browse files
authored
Merge pull request #28 from UnityTech/PPS-234
[PPS-234] Add Rewarded Field to Impression
2 parents bda534a + 236ba55 commit 1108fbd

2 files changed

Lines changed: 2 additions & 0 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 & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ var _ = Describe("Impression", func() {
4343
},
4444
},
4545
},
46+
Rewarded: false,
4647
}))
4748
})
4849

0 commit comments

Comments
 (0)