-
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
VidoomyBidAdapter: refactor cookie sync #7601
Conversation
This pull request introduces 1 alert when merging 5f816fe into a68796a - view on LGTM.com new alerts:
|
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.
You need to change your cookiesync logic.
Your adapter needs to implement getUserSyncs
function (you can take a look how other bid adapters do it). You cannot fire cookiesync in your adapter before auction is held.
@sasanfarokh this was my bad when reviewing previously. Currently, this adapter is breaking a few guidelines. Can you please make the above changes requested by @FilipStamenkovic 👍 |
@sasanfarokh The main issue here is not that you are not using Take a look at the comment made by @patmmccann: #7601 (comment) |
Yes, I understood that, I was trying to check the getUserSyncs method, |
@sasanfarokh I hope this comment will help: Steps:
You don't have to do it exactly how I proposed, but something similar. If you are confused how this is working, you can use |
@sasanfarokh Also, when your bidder returns empty response your adapter will log error message: You should consider doing early exit in
|
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.
You test coverage is bellow 80%. You need more tests.
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.
While testing your bidder I found some small errors. You can see them in separate comments. From Prebid perspective, you don't have to fix those issues. But, I strongly suggest that you fix them anyway, it will make your adapter run a bit faster.
Also, why are you passing ua
(userAgent string) in query params, you already have that information in HTTP header?
Hey, About the user-agent you're right, It's already exists in HTTP headers, but currently our backend apps may read it from querystring, I want to leave it as before. |
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.
Your tests are failing, please take a look at CircleCI output.
* fix: add delay between cookie sync calls * fix(VidoomyBidAdapter): use default triggerPixel * fix: use getUserSyncs hook to sync cookies * fix: handle 204 no response without error log * chore: refactor getUserSyncs * test: update vidoomyBidAdapter tests * fix: remove Macro * fix: query params * fix: gdpr consent * fix: vidoomyBidAdapter tests * fix: use USP_CONSENT in cookie sync urls
Type of change
Description of change
Just call cookie sync urls sequentially with a 500ms delay between them.