You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Unlike GAM oringial integration API (e.g. VideoParameters.java), other integration types (e.g. AdMob integration) does not provide basic setter methods (e.g. setApi) to customize OpenRTB params.
I can customize some of OpenRTB objects (e.g. /bidfloor, /app.content.cat) via adUnit.ortbConfig.
However, I have difficulty to customize any OpenRTB objects inside the /imp[] array (e.g. /imp[].video.api, /imp[].video.protocols, etc).
To Reproduce
Based on the demo app AdMobVideoInterstitialActivity.kt, I tried to use the adUnit.ortbConfig to add /imp[0].video.api: [5,6,7], but all of them does not work as I expected. See Additional context section below for more detail.
Expected behavior
There should be a method to customize OpenRTB objects like /imp[].video.api, /imp[].video.mimes, /imp[].banner.pos and so on for generic integration types.
Additional context
Testing adUnit.ortbConfig as below.
adUnit?.ortbConfig = "{\"imp\":[{\"video\":{\"api\":[5,6,7]}}]}"
Then, POST payload to Prebid Server is below.
adUnit?.ortbConfig = "{\"imp\":{\"video\":{\"api\":[5,6,7]}}}"
Then, POST payload (omit irrelevant objects like /app, device) to Prebid Server is below.
adUnit?.ortbConfig = "{\"imp[0]\": {\"video\":{\"api\":[5,6,7]}}}"
Then, POST payload (omit irrelevant objects like /app, device) to Prebid Server is below.
Describe the bug
Unlike GAM oringial integration API (e.g.
VideoParameters.java
), other integration types (e.g. AdMob integration) does not provide basic setter methods (e.g.setApi
) to customize OpenRTB params.I can customize some of OpenRTB objects (e.g.
/bidfloor
,/app.content.cat
) viaadUnit.ortbConfig
.However, I have difficulty to customize any OpenRTB objects inside the
/imp[]
array (e.g./imp[].video.api
,/imp[].video.protocols
, etc).To Reproduce
Based on the demo app AdMobVideoInterstitialActivity.kt, I tried to use the
adUnit.ortbConfig
to add/imp[0].video.api: [5,6,7]
, but all of them does not work as I expected. See Additional context section below for more detail.Expected behavior
There should be a method to customize OpenRTB objects like
/imp[].video.api
,/imp[].video.mimes
,/imp[].banner.pos
and so on for generic integration types.Additional context
Testing
adUnit.ortbConfig
as below.adUnit?.ortbConfig = "{\"imp\":[{\"video\":{\"api\":[5,6,7]}}]}"
Then, POST payload to Prebid Server is below.
adUnit?.ortbConfig = "{\"imp\":{\"video\":{\"api\":[5,6,7]}}}"
Then, POST payload (omit irrelevant objects like
/app
,device
) to Prebid Server is below.adUnit?.ortbConfig = "{\"imp[0]\": {\"video\":{\"api\":[5,6,7]}}}"
Then, POST payload (omit irrelevant objects like
/app
,device
) to Prebid Server is below.adUnit?.ortbConfig = "{imp[0].video.api=[5,6,7]}"
Then, POST payload (omit irrelevant objects like
/app
,device
) to Prebid Server is below.The text was updated successfully, but these errors were encountered: