-
Notifications
You must be signed in to change notification settings - Fork 61
use openrtb2.video instead of request.video in native asset #52
Comments
Looks to be another example of imperfect OpenRTB/Native spec, congratulations for bumping into this 🎉 I'm looking into docs / options, but unfortunately I don't think we can do much. |
So, in latest
Nope, this would drag half of openrtb2 into native/request. |
~~Update: if you (or anyone else) is going to PR this - pls branch from / PR against https://github.com/mxmCherry/openrtb/tree/v15 ~~
Nope, see above - it'll drag half of openrtb2 into native/request. |
Now we have even more problems. If Native is used with OpenRTB 2.x - fine, it can embed openrtb2.Video (I'm trying to consider this option). But if Native is used with OpenRTB 3.0 / AdCOM 1.0, should it use the openrtb2.Video? Or maybe some exchanges will not follow the doc strictly and will use So maybe the only way to overcome all this is to switch And this definitely would be a major version bump, so would be delivered a bit later (with plenty of OpenRTB 2.6-related changes). @Wwwmmxxx any ideas? I think |
Seem open rtb 2.x and 3 not designed to sit in the same branch or repo to me? |
No, they are fine to be in one repo - that doesn't matter. What's not very clear here is the Native spec. It would be easier if it wouldn't point to OpenRTB spec (because - which version?), but copy types into Native spec itself. So, theoretically, Native's Video can be either OpenRTB 2.x or OpenRTB 3.x. Depends on exchange, I guess - there's too much "freedom" in Native spec (at least in this exact case). And to accomodate this, using |
Thanks for the Reply ! currently, i have no idea about how to deal with the problem. it seems like, using Another question, Is it possible that the If i said somehing wrong, please correct my mistake |
Valid point 🤔 Maybe I've tricked myself regarding this one, haven't used OpenRTB 3. Then, importing openrtb2 in native1/request for video message seems suitable, but I'll better leave it till weekend to have some time to think about it to be 100% sure. I'm still not happy about native1 depending on openrtb2, though it seems logical in this case, as adcom1 has it's own Native/Video objects. |
Im on your side. each specification should be indenpendent from others, so that it can be used more widely. maybe, emmmm, updating |
@Wwwmmxxx 'openrtb2.Video` embeds quite a bunch of other types (both enums and objects), so it would be too much to copy. I think introducing such a dep is OK-ish: luckily, openrtb2 doesn't embed Native right now: https://github.com/mxmCherry/openrtb/blob/v13.0.0/openrtb2/native.go#L21-L27 (it comes in as JSON string to be parsed separately - that's a weird decision, but anyway). For now, I'm open to dropping I'm convinced by #52 (comment) So let's just YOLO it - switching to Feel free to PR. |
Released the change as https://github.com/mxmCherry/openrtb/releases/tag/v17.0.0-alpha.1 (final v17 to be tagged in a few days). |
Released as final v17: https://github.com/mxmCherry/openrtb/releases/tag/v17.0.0 |
the annotation in /native1/request/video.go writes "For optional attributes please refer to OpenRTB.", i suppose the fields that list in native-specification is not enough, and it is better to use openrtb2/video.go instead of /native1/request/video.go in Assets struct.
am i right? Or the extra feilds should be added into video.ext ?
The text was updated successfully, but these errors were encountered: