-
Notifications
You must be signed in to change notification settings - Fork 715
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
Smaato: Change server response type #3734
Smaato: Change server response type #3734
Conversation
Code coverage summaryNote:
smaatoRefer here for heat map coverage report
|
@@ -57,7 +57,8 @@ type bidRequestExt struct { | |||
|
|||
// bidExt defines Bid.Ext object for Smaato | |||
type bidExt struct { | |||
Duration int `json:"duration"` | |||
Duration int `json:"duration"` | |||
Curls []string `json:"curls"` |
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.
What is the main purpose of adding the Curls field to the bidExt structure? Can you provide examples of situations where it will be used?
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.
is it click url?
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.
@przemkaczmarek
yes it is click urls array
use case is to track ads clicks - both our own and potentially demand partners - and since there is no ortb specific field for this we decided to use ext
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.
@Enigo can you please merge with master (no rebase) to resolve conflicts? I also left just one minor comment. Everything else looks good.
adapters/smaato/banner_test.go
Outdated
expectedAdMarkup string | ||
}{ | ||
{ | ||
testName: "extract banner without curls", |
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.
Nitpick: I suggest replacing the spaces with underscores in your test names (e.g. extract_banner_without_curls
). t.Run
will automatically convert them to underscores but it would be better to avoid that so it is easier to find failed tests via a search without having to consider this possibility.
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.
renamed and fixed the merge conflicts for both PRs
8906df3
to
b2188fa
Compare
Code coverage summaryNote:
smaatoRefer here for heat map coverage report
|
@bsardo @przemkaczmarek |
We've simplified our server response to make it more ortb-like
Backward compatibility is guaranteed server-side