Sparteo: Add required query params to adapter endpoint#4556
Conversation
f9e0dd1 to
ce7066f
Compare
Code coverage summaryNote:
sparteoRefer here for heat map coverage report |
ce7066f to
81ad9b9
Compare
Code coverage summaryNote:
sparteoRefer here for heat map coverage report |
Code coverage summaryNote:
sparteoRefer here for heat map coverage report |
c11cc87 to
3b4f311
Compare
Code coverage summaryNote:
sparteoRefer here for heat map coverage report |
Code coverage summaryNote:
sparteoRefer here for heat map coverage report |
465128b to
8fc2270
Compare
Code coverage summaryNote:
sparteoRefer here for heat map coverage report |
Code coverage summaryNote:
sparteoRefer here for heat map coverage report |
4993d1e to
ff8b127
Compare
Code coverage summaryNote:
sparteoRefer here for heat map coverage report |
ff8b127 to
cc709f3
Compare
Code coverage summaryNote:
sparteoRefer here for heat map coverage report |
Code coverage summaryNote:
sparteoRefer here for heat map coverage report |
| - video | ||
| - native | ||
| endpoint: "https://bid.sparteo.com/s2s-auction" | ||
| endpoint: "https://bid.sparteo.com/s2s-auction?network_id={{.NetworkId}}&{{if .SiteDomain}}&site_domain={{.SiteDomain}}{{end}}{{if .AppDomain}}&app_domain={{.AppDomain}}{{end}}{{if .Bundle}}&bundle={{.Bundle}}{{end}}" |
There was a problem hiding this comment.
won't this result in an extra '&' after network id, also could you just pass the params if they're present or not and they will come thorugh as empty params instead of using the condtionals?
There was a problem hiding this comment.
Indeed, i have removed the extra &.
Concerning the params we really prefers to do not have the query param instead of an empty one. But i'm open to do not use conditional templating. The java adapter just append the query param if present. Would this be more acceptable ?
There was a problem hiding this comment.
@bsardo whats the guidance around conditional templating in the endpoint?
There was a problem hiding this comment.
Talked to @bsardo - can you please handle conditionally building the endpoint URL in the adapter itself
There was a problem hiding this comment.
I wasn't sure if i had to stick with replacement macro building the conditional template dynamically or i could just use query param to mirror my Prebid Java adapter logic.
I chose to mirror my java logic but if i have misunderstood, please let me know, i'll adjust the code.
There was a problem hiding this comment.
yeah you want to use the endpoint template to build your endpoint url with macros
Example here: https://github.com/prebid/prebid-server/blob/master/adapters/adview/adview.go#L163
30a22ca to
383691e
Compare
Code coverage summaryNote:
sparteoRefer here for heat map coverage report |
Code coverage summaryNote:
sparteoRefer here for heat map coverage report |
|
@t-sormonte can you try merging with master please? For some reason it is saying you have conflicts that must be resolved but it is not showing what they are. |
Code coverage summaryNote:
sparteoRefer here for heat map coverage report |
|
Hi @bsardo , @ccorbo and @pm-isha-bharti , When you have a moment, could we please continue the review on the Go version so it can stay aligned with the other implementations? |
728c799 to
7e95380
Compare
Code coverage summaryNote:
sparteoRefer here for heat map coverage report |
Code coverage summaryNote:
sparteoRefer here for heat map coverage report |
|
Hi @bsardo, following up on this one. |
|
Hi @bsardo, i'm keen to get this across the finish line. |
c68c0dd to
8faf99f
Compare
Code coverage summaryNote:
sparteoRefer here for heat map coverage report |
# Conflicts: # macros/macros.go # Conflicts: # adapters/sparteo/sparteo.go # adapters/sparteo/sparteo_test.go # static/bidder-info/sparteo.yaml
The ptrutil package was used by domain/bundle resolution helpers but not imported, causing a build failure.
8faf99f to
873e6e8
Compare
Code coverage summaryNote:
sparteoRefer here for heat map coverage report |
|
Hi @ccorbo i have rebased the branch but it cancel you approval. |
|
Hi @pm-nikhil-vaidya i'm keen to get this across the finish line. |
|
Hi @ccorbo @przemkaczmarek |
🔧 Type of changes
✨ What's the context?
We want to support new required query params when calling our SSP
The Java PR: prebid/prebid-server-java#4225