-
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
New Adapter: freewheelssp #2392
Conversation
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.
Could you please link your docs PR?
|
||
if response.StatusCode != http.StatusOK { | ||
return nil, []error{&errortypes.BadServerResponse{ | ||
Message: fmt.Sprintf("Unexpected status code: %d. Run with request.debug = 1 for more info", response.StatusCode), |
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 there a way to cover this error case with tests?
There is a PR #2370 that is being merged today that will cause conflicts to new adapter PRs. To resolve these conflicts, you'll need to do the following: In In After the merge, you can look at other adapters to see how the server object is implemented as an 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.
Looks good. Thank you for the fixes.
FYI: Prebid Server has 6 characters of guaranteed bidder name uniqueness. For freehweelssp
that would be freewh
. I'm sharing this because your adapter name is freewheelssp
instead of just freewheel
, so if you plan to add other adapters within the freewheel family in the future (ie freewheel123
), the targeting keys may not be unique between them. Not a problem, just wanted you to be aware.
- video | ||
userSync: | ||
redirect: | ||
url: "https://ads.stickyadstv.com/pbs-user-sync?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.
I tested the user sync endpoint and discovered it returns html instead of a 302 redirect. Should be defined as an iframe sync instead of a redirect?
bd7bf6c
to
39fd190
Compare
Hi @mwang-sticky, we'll check out your changes shortly. Also, if you don't mind, could you please avoid force pushing after the PR has been reviewed? We prefer you just push another commit with your changes as this helps the reviewers save a lot of time since they often only need to review the delta. And if conflicts arise they can be resolved by merging with master instead of rebasing with a force push 🙂. Thanks again for your contribution. |
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.
This looks good, but I still don't see a link to your docs PR, could you please add this as a comment on this PR
@bsardo @AlexBVolcy
I look forward your help. |
Hi @mwang-sticky, we strongly prefer prebid.js and PBS use the same bidder codes. If you use different biddercodes it confuses publishers and leads to confusing documentation. It sounds like you want to move away from If your long term goal is to standardize on
I hope this helps. If I misunderstood your intention, let me know. |
add old bidder go name
add old bidder code
Yes, some of our publishers asked us to change the old biddercode.
Thanks for your good suggestion. I add the old bidder code in go adapter. Does this change work for prebid go/js integration? because the bidder names are conflicted |
Hi @mwang-sticky, I'm sorry I'm not able to confirm your PBS and prebid.js integration works as that is outside of the scope of our team. I do believe though that as long as prebid.js and PBS support the same bidder parameters for your bidder and each has support for both bidder codes, the integration should work. |
@bsardo
|
This is to ensure the bidder name is unique enough in targeting keys. The uniqueness constraint is not usually important for aliases. So long as a bid from
|
|
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'm ready to approve, but @bsardo I just want to confirm how we want to go about PRs that are throwing this gofmt error in the Github validation?
Hi @mwang-sticky, can you merge with master when you get a chance? Your code is failing the go 1.19 validation checks due to |
@bsardo I synced the master to my branch, thanks for your reminder. |
|
||
type RequestImpExt struct { | ||
ZoneId int `json:"zoneId"` | ||
} |
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.
No need ot specify imp ext here. It's already specified in openrtb_ext/imp_freewheelssp.go
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 addressing comments, lgtm
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.
LGTM
Co-authored-by: Kai Zhang <kaizhang@freewheel.com>
No description provided.