-
Notifications
You must be signed in to change notification settings - Fork 832
Zeta Global SSP: Add sid parameter and audio support #3939
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
Zeta Global SSP: Add sid parameter and audio support #3939
Conversation
Code coverage summaryNote:
zeta_global_sspRefer here for heat map coverage report
|
@@ -1,5 +1,8 @@ | |||
endpoint: https://ssp.disqus.com/bid/prebid-server?sid=GET_SID_FROM_ZETA | |||
disabled: true | |||
endpoint: https://ssp.disqus.com/bid/prebid-server?sid={{.AccountID}} |
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.
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 I'm sorry, I didn't get it (cannot upload your img). Yes, the endpoint is reachable. And sid
query param is not mandatory in current implementation. What is the issue here?
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.
@abermanov-zeta its not a issue, we just checking that endpoint is reachable. To merge PR 2ppl have to accept it. So if i check endpoint secound person dont have to.
When Ypu have cheanged endpoinyt we Have to check it one more time
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 got it, thank you
userSync: | ||
redirect: | ||
url: https://ssp.disqus.com/redirectuser?sid=GET_SID_FROM_ZETA&gdpr={{.GDPR}}&gdpr_consent={{.GDPRConsent}}&us_privacy={{.USPrivacy}}&r={{.RedirectURL}} | ||
url: https://ssp.disqus.com/redirectuser?sid={{.AccountID}}&gdpr={{.GDPR}}&gdpr_consent={{.GDPRConsent}}&us_privacy={{.USPrivacy}}&r={{.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.
AccountID
is not currently a supported macro for user sync URLs. We can add it. It should be noted that if it is not provided in the request to the cookie sync endpoint, the account ID will be set to "unknown".
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.
@bsardo Yes, thank you. I've seen lists in macros.go. Having it in userSync is not critical for us, but would be great to have.
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.
@bsardo the macro has been removed from the url
Hi @abermanov-zeta, we recently released PBS 3.0, more specifically v3.1.0, which updates Prebid Server package import references throughout the project from
As a result, please merge with master (no rebase) and then ensure all Prebid Server package import references in the files you’ve changed are |
Closing this MR due to #3849 |
Code coverage summaryNote:
zeta_global_sspRefer here for heat map coverage report
|
@bsardo Done, thank you. |
"sid": { | ||
"type": "integer", | ||
"description": "An ID which identifies the publisher" | ||
} |
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 this parameter required? Can it be 0?
If it is required, please add "required": ["sid"]
.
Example
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.
@VeronikaSolovei9 No, it's not required. It can be 0.
Thank you.
@@ -3,7 +3,10 @@ package zeta_global_ssp | |||
import ( | |||
"encoding/json" | |||
"fmt" | |||
"github.com/prebid/prebid-server/v3/macros" |
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 sort imports alphabetically.
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.
@VeronikaSolovei9 done, thank you
@@ -1,5 +1,8 @@ | |||
endpoint: https://ssp.disqus.com/bid/prebid-server?sid=GET_SID_FROM_ZETA | |||
disabled: true |
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.
Just to confirm: do you want to disable it intentionally?
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.
@VeronikaSolovei9 by default, yes.
userSync: | ||
redirect: | ||
url: https://ssp.disqus.com/redirectuser?sid=GET_SID_FROM_ZETA&gdpr={{.GDPR}}&gdpr_consent={{.GDPRConsent}}&us_privacy={{.USPrivacy}}&r={{.RedirectURL}} | ||
url: https://ssp.disqus.com/redirectuser?gdpr={{.GDPR}}&gdpr_consent={{.GDPRConsent}}&us_privacy={{.USPrivacy}}&r={{.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.
Verified. It works.
Code coverage summaryNote:
zeta_global_sspRefer here for heat map coverage report
|
return nil, &errortypes.BadInput{ | ||
Message: "ext.bidder not provided", | ||
} |
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 add a supplemental JSON test that forces this error condition. Simply setting imp.ext
to an empty string should suffice.
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.
Added. Thank you
return nil, &errortypes.BadInput{ | ||
Message: "ext.bidder not provided", | ||
} |
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 add a supplemental JSON test that forces this error condition. Simply setting imp.ext.bidder
to an empty string should suffice.
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.
Added. Thank you
return nil, &errortypes.BadInput{ | ||
Message: "ext.bidder not provided", | ||
} | ||
} | ||
var zetaSspImpExt openrtb_ext.ImpExtZetaGlobalSsp | ||
if err := json.Unmarshal(bidderExt.Bidder, &zetaSspImpExt); err != nil { | ||
return nil, &errortypes.BadInput{ | ||
Message: "ext.bidder not provided", | ||
} |
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 know this may be copy/paste from another adapter but you might want to consider two different error messages so it is easier to discern exactly where a failure occurred.
As an example, some bidders use messages like
Error unmarshalling imp.ext
Error unmarshalling bidder 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.
Right! Thank you. Fixed.
Code coverage summaryNote:
zeta_global_sspRefer here for heat map coverage report
|
prebid/prebid.github.io#5620