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
Prebid.js issue prebid/Prebid.js#8317 updated the PBS adapter to inject asset.ids for native. The imp.native.asset[].id field is required by the ORTB 1.2 Native spec, but not sent by PBJS.
I propose that we add a host-level option to turn off the injection of sequential asset ids:
Check the host-level config (e.g. settings.native.insert-asset-ids). If it exists and is 'false', stop. Otherwise continue. (i.e. the feature is on by default)
For each imp in the request, check to see if imp[].native exists. If not, go to the next imp.
If imp[].native exists, scan the imp[].native.assets[] array to find out if any of the assets already have an ID. If any do, then no action is taken. PBS will not attempt to insert IDs for input that has a mix of blank and specified IDs.
If there's no entry in the imp[].native.assets[] array that contains an id, then create an id element for all of them, starting at 1 and incrementing by 1. i.e. imp[N].native.assets[0].id=1, imp[N].native.assets[1].id=2, etc.
The text was updated successfully, but these errors were encountered:
Prebid.js issue prebid/Prebid.js#8317 updated the PBS adapter to inject asset.ids for native. The
imp.native.asset[].id
field is required by the ORTB 1.2 Native spec, but not sent by PBJS.Currently PBS has one native-specific feature documented at https://docs.prebid.org/prebid-server/features/pbs-native.html, but is mostly a pass-through.
I propose that we add a host-level option to turn off the injection of sequential asset ids:
imp[].native.assets[]
array to find out if any of the assets already have an ID. If any do, then no action is taken. PBS will not attempt to insert IDs for input that has a mix of blank and specified IDs.The text was updated successfully, but these errors were encountered: