bsm / openrtb

OpenRTB protocol defintions for Go
Other
288 stars 119 forks source link

SUA source type is invalid #97

Closed MasatoraAtarashi closed 1 year ago

MasatoraAtarashi commented 1 year ago

According to IAB reference, Source fileld of sua type is integer, but current it is string.

スクリーンショット 2023-02-09 19 41 48

https://github.com/InteractiveAdvertisingBureau/AdCOM/blob/master/AdCOM%20v1.0%20FINAL.md#object--useragent-

https://github.com/bsm/openrtb/blob/56ba587d9d6af6042eafd147add6f058f2e562ab/sua.go#L12

This causes the following error when decoding json

Unmarshal type error: expected=string, got=number, field=device.sua.source, offset=1282