-
Notifications
You must be signed in to change notification settings - Fork 751
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
Missena: Update params #4057
base: master
Are you sure you want to change the base?
Missena: Update params #4057
Conversation
Code coverage summaryNote:
missenaRefer here for heat map coverage report
|
Code coverage summaryNote:
missenaRefer here for heat map coverage report
|
static/bidder-info/missena.yaml
Outdated
url: https://sync.missena.io/iframe?gdpr={{.GDPR}}&gdpr_consent={{.GDPRConsent}}&us_privacy={{.USPrivacy}}&t={{.APIKey}}&redirect={{.RedirectURL}} |
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.
url: https://sync.missena.io/iframe?gdpr={{.GDPR}}&gdpr_consent={{.GDPRConsent}}&us_privacy={{.USPrivacy}}&t={{.APIKey}}&redirect={{.RedirectURL}} | |
url: https://sync.missena.io/iframe?gdpr={{.GDPR}}&gdpr_consent={{.GDPRConsent}}&us_privacy={{.USPrivacy}}&redirect={{.RedirectURL}} |
{{.APIKey}}
is not a supported macro in Prebid Server
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.
fixed
Code coverage summaryNote:
missenaRefer here for heat map coverage report
|
Code coverage summaryNote:
missenaRefer here for heat map coverage report
|
Code coverage summaryNote:
missenaRefer here for heat map coverage report
|
Code coverage summaryNote:
missenaRefer here for heat map coverage report
|
url: https://sync.missena.io/iframe?gdpr={{.GDPR}}&gdpr_consent={{.GDPRConsent}}&us_privacy={{.USPrivacy}}&t=YOUR_API_KEY&redirect={{.RedirectURL}} |
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 an api key from Missena now required for user syncing?
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.
yes
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.
Thank you for confirming. It's not appropriate to define user syncing which does not work out of the box. Please update this config to indicate that user syncing is possible, but requires configuring with a Missena provided api key. To signal availability of user syncing to host companies, please use the supports attribute documented here.
You're welcomed to keep the url and usermacro definitions if they're commented out.
adapters/missena/missena.go
Outdated
} | ||
currency, err := getCurrency(request.Cur) | ||
if err != nil { | ||
// TODO: convert unsupported currency on response |
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 resolve the TODO.
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.
I'd actually like to manage it on a next release. is it possible? should I remove the comment and consider some currencies unsupported
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.
fixed
Code coverage summaryNote:
missenaRefer here for heat map coverage report
|
Code coverage summaryNote:
missenaRefer here for heat map coverage report
|
url: https://sync.missena.io/iframe?gdpr={{.GDPR}}&gdpr_consent={{.GDPRConsent}}&us_privacy={{.USPrivacy}}&t=YOUR_API_KEY&redirect={{.RedirectURL}} |
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.
Thank you for confirming. It's not appropriate to define user syncing which does not work out of the box. Please update this config to indicate that user syncing is possible, but requires configuring with a Missena provided api key. To signal availability of user syncing to host companies, please use the supports attribute documented here.
You're welcomed to keep the url and usermacro definitions if they're commented out.
body, errm := json.Marshal(missenaRequest) | ||
if errm != nil { | ||
return nil, errm | ||
body, err := json.Marshal(missenaRequest) |
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 use jsonutil.Marshal
as a drop in replacement for json.Marshal
.
} | ||
return bidder, nil | ||
} | ||
|
||
func (a *adapter) makeRequest(missenaParams MissenaInternalParams, reqInfo *adapters.ExtraRequestInfo, impID string, request *openrtb2.BidRequest) (*adapters.RequestData, error) { | ||
url := a.endpoint + "?t=" + missenaParams.ApiKey | ||
func getCurrency(currencies []string) (string, error) { |
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.
I think is better to use MAP:
currencySet := make(map[string]struct{}, len(currencies))
for _, cur := range currencies {
currencySet[cur] = struct{}{}
}
if _, found := currencySet[defaultCur]; found {
return defaultCur, nil
}
if _, found := currencySet["EUR"]; found {
return "EUR", nil
}
return "", fmt.Errorf("no currency supported %v", currencies)
}```
what Do You think?
@@ -124,26 +209,20 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, requestInfo *adapte | |||
continue |
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.
NIP:
Message: fmt.Sprintf("Error parsing bidderExt object: %v, input: %s", err, string(imp.Ext)),
httpRequests = append(httpRequests, newHttpRequest) | ||
|
||
break |
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.
break in the loop causes only the first imp to be processed. If this is intentional, it's worth making it clearer in the code, e.g., with a comment or better naming.
No description provided.