-
Notifications
You must be signed in to change notification settings - Fork 84
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
adUnit?.ortbConfig sets object to parent & not imp array. #809
Comments
@ValentinPostindustria please make sure that #805 will fix this issue as well. |
@YuriyVelichkoPI thanks for linking that, was just looking over it. |
It's fixed in the PR #805. So it just adds these parameters to the root
|
Hey @ValentinPostindustria @YuriyVelichkoPI Unfortunately the goal here is that the datas object make their way into the imp[].ext ( and not the root when using adUnit?.ortbConfig). Right now adUnit?.ortbConfig mimics TargetingParams.setGlobalOrtbConfig by adding to the root already. As each potential imp in the array may require different ortb datas (f.ex adding impression level first party data or adding pbAdSlot (whilst adUnit?.pbAdSlot is being ammended) ). Hope this makes sense |
Hi @rBeefrz ! Yes, it makes perfect sense. @ValentinPostindustria please ensure that @rBeefrz in the fix, we introduced two new methods. One is to set global parameters. second one is to set imp level params. Here you can find the doc changes: prebid/prebid.github.io#5759 |
Hey @YuriyVelichkoPI |
Describe the bug
In a similar vein to this issue when attempting to arbitrary ortb data to the imp array the object is appended to the parent object instead (as if we were looking to add / modify global objects).
To Reproduce
Steps to reproduce the behavior:
adUnit?.ortbConfig = "{"ext":{"gpid":"/21808260008/prebid_demo_app_original_api_banner_300x250_order","data":{"pbadslot":"/21808260008/prebid_demo_app_original_api_banner_300x250_order"}}}"
Expected behavior
Unlike when using specific native functions (adUnit?.gpid or adUnit?.pbAdSlot) the tester should see that the object does not end up in the imp[].ext object but rather at the bottom of the parent object.
Screenshots
Smartphone (please complete the following information):
Additional Info
My best guess here is that these is a issue / misuse of .put in the BidRequest.java...
The text was updated successfully, but these errors were encountered: