-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Sonobi - Add ius param to bid request endpoint #3657
Conversation
…s ok to drop iframe pixels.
Closing this for now. Found an issue with using shoudBidderBeBlocked. Will reopen when we come up with a solution |
@jsnellbaker - please take a look - I'm not clear why the additional "shouldBidderBeBlocked" object was added to the internal API. |
@bretg @jsnellbaker I decided to try to reuse that function instead of essentially making a copy of it inside our adapter. So I put it on the userSync publicAPI. If you guys prefer a different approach let me know. |
@JonGoSonobi I'm still thinking over this approach and if we should do something different. Something to be aware of however are the semi-deprecated userSync settings (like If they are using them - the function you imported wouldn't give you an accurate picture. |
@jsnellbaker right. We figured we wouldn't worry about those cases since we saw this comment. Maybe in the mean time to avoid straight up copying this code:
we can move it userSync publicApi similar to what I tried with shouldBidderBeBlocked? Call it like: canBidderRegisterSync |
@JonGoSonobi That sounds like it could work-out; you'll technically need to incorporate logic to look at the If you want to put together the refactored changes, we can take a look at it and work from there. |
@jsnellbaker sounds like a plan, I'll follow up with the changes. |
…cAPI function canBidderRegisterSync
@jsnellbaker changes committed. Let me know what you think |
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.
@JonGoSonobi Thanks for putting together the refactor; the changes LGTM. I tested it out with various userSync configs and it seems to work consistently.
FYI - As it's a core-change, we will need a 2nd review before merging.
@robertrmartinez any update on this one? |
@JonGoSonobi Sorry I was out, but this looks good. I see a test is failing, we should look into why the merge with master has done this. |
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! @jsnellbaker reran that failure which was just a flakey-fail!
Thanks for this!
* added param to sonobi bid request bid url that lets sonobi know if its ok to drop iframe pixels. * added case to isFilterConfigValid to check if it is falsey * fixed eslint issues. * refactor userSync checking if a bidder can drop a sync pixel to publicAPI function canBidderRegisterSync * fixed lint error
Type of change
Description of change
Sonobi adapter will detect if it can drop iframe pixels and set it as the ius parameter to sonobi's bid request endpoint. If its not ok to drop iframe pixels then the bid request will not respond with iframe pixels.