VidoomyBidAdapter: refactor cookie sync#7601
VidoomyBidAdapter: refactor cookie sync#7601FilipStamenkovic merged 11 commits intoprebid:masterfrom vidoomy:master
Conversation
|
This pull request introduces 1 alert when merging 5f816fe into a68796a - view on LGTM.com new alerts:
|
FilipStamenkovic
left a comment
There was a problem hiding this comment.
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 |
FilipStamenkovic
left a comment
There was a problem hiding this comment.
You test coverage is bellow 80%. You need more tests.
FilipStamenkovic
left a comment
There was a problem hiding this comment.
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. |
FilipStamenkovic
left a comment
There was a problem hiding this comment.
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.