-
Notifications
You must be signed in to change notification settings - Fork 749
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MetaX: Add BidVideo for video ads #4095
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Kehan Pan <kehan.pan@metaxsoft.com>
Code coverage summaryNote:
metaxRefer here for heat map coverage report
|
if len(bid.Cat) > 0 { | ||
bidVideo.PrimaryCategory = bid.Cat[0] | ||
} | ||
if bid.Dur > 0 { | ||
bidVideo.Duration = int(bid.Dur) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please update one of your exemplary JSON tests so that the bid response contains a cat
and dur
? While the unit tests are nice they aren't required while coverage through JSON tests are.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated one JSON test
adapters/metax/metax_test.go
Outdated
bidVideo := getBidVideo(test.bid) | ||
assert.Equal(t, test.bidvideo.PrimaryCategory, bidVideo.PrimaryCategory) | ||
assert.Equal(t, test.bidvideo.Duration, bidVideo.Duration) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please wrap this in a t.Run(
call. You can find examples in the code base.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
Signed-off-by: Kehan Pan <kehan.pan@metaxsoft.com>
Code coverage summaryNote:
metaxRefer here for heat map coverage report
|
Add duration and category data to TypedBid