https://github.com/appmonet/open_rtb_ecto
OpenRTB 2.x & 3.0 Ecto Schemas
https://github.com/appmonet/open_rtb_ecto
ecto elixir openrtb
Last synced: 3 months ago
JSON representation
OpenRTB 2.x & 3.0 Ecto Schemas
- Host: GitHub
- URL: https://github.com/appmonet/open_rtb_ecto
- Owner: AppMonet
- Created: 2019-01-05T21:13:05.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2025-02-05T09:28:36.000Z (4 months ago)
- Last Synced: 2025-03-21T11:11:14.504Z (3 months ago)
- Topics: ecto, elixir, openrtb
- Language: Elixir
- Homepage:
- Size: 186 KB
- Stars: 8
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# OpenRtbEcto
Ecto schemas for [OpenRTB](https://www.iab.com/guidelines/real-time-bidding-rtb-project/).
2.6 is complete, but 3.0 is in progress...
Also supports Bid
[OpenRTB 2.5 Spec](https://www.iab.com/wp-content/uploads/2016/03/OpenRTB-API-Specification-Version-2-5-FINAL.pdf)
[OpenRTB 2.6 Spec](https://iabtechlab.com/wp-content/uploads/2022/04/OpenRTB-2-6_FINAL.pdf)
[OpenRTB 3.0 Spec](https://github.com/InteractiveAdvertisingBureau/openrtb/blob/master/OpenRTB%20v3.0%20FINAL.md)Starting from version 1.0, this library requires Elixir 1.18.0 and above as it uses the new JSON module.
## Installation
The package can be installed by adding `open_rtb_ecto` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[
{:open_rtb_ecto, "~> 1.0"}
]
end
```Docs can be found at [https://hexdocs.pm/open_rtb_ecto](https://hexdocs.pm/open_rtb_ecto).
### OpenRTB Example Payloads
https://wiki.smaato.com/pages/viewpage.action?pageId=1770079
### Notes
1. We do NOT attempt to validate ISO-4217 currency codes
1. In these [examples](https://github.com/openrtb/examples/tree/master/spotxchange):
- the deprecated `protocol` field is used, but the data is an int array, like the new `protocols` field...
- `content.season` is sent as an int instead of a string