-
Notifications
You must be signed in to change notification settings - Fork 721
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
BidRequest updated by ProcessedAuction hook is getting overridden by requestwrapper utility #2986
Comments
After looking into this I believe that it's true the updates the changeset is making to the bid request is being overwritten by the request wrapper. Within However, before the request wrapper is returned, the wrapper itself is updated through |
I think there is some confusion here. In Here we are pushing into the hook executor the full bidwrapper. But the payload to the modules is just a plain openrtb2 bid request. The modules then create mutators for the bid request that can be executed to modify the request appropriately. Modifying the |
This is a documentation issue. @bsardo has offered to update the module developer doc. Thanks! |
Closing as there aren't any docs updates needed. The docs don't specify the types of each hook's payload and can be easily determined from looking at the code. |
Background
With the introduction of module, hooks have the capabilities to modify the bid request but these modifications are overridden by request wrapper utilities
Solution 1
Pass bid request wrapper in the hook payload instead of only bid request object
Solution 2
Create a request wrapper with new bid request after each hook execution
The text was updated successfully, but these errors were encountered: