@mxmCherry mxmCherry released this Oct 12, 2018

Assets 2

https://github.com/mxmCherry/openrtb/milestone/2

Changes since v10.0.0:

  • Device.{DNT,Lmt} fields made pointers: #27 (thanks @evgenigourvitch )
  • minor: guides improvements: #28 , #29
  • minor: travis builds are now done only for Go 1.8.x (oldest supported version) and 1.x (latest version): #30

@mxmCherry mxmCherry released this Mar 3, 2018 · 14 commits to master since this release

Assets 2

Changes since v9.2.0:

  • OpenRTB Dynamic Native Ads API Specification Version 1.2 implemented (#21)
  • Native enums (Native 1.2/1.1 section 7 Reference Lists/Enumerations + OpenRTB 2.5 section 5.8 Protocols) moved from native/request.* and native/response.* to top-level native.* (#21)
  • switched from custom RawJSON to json.RawMessage (#24)
    WARNING: Switching to json.RawMessage means, that Ext fields will work properly only with Go 1.8+ (older Go versions marshal non-pointer json.RawMessage to base64-encoded string)

Native 1.1 -> 1.2 migration is "back-compatible": fields/enums, that were deprecated/removed in Native 1.2, are kept in this lib (at least till Native 1.3), so this lib still can be used for Native 1.1 integrations.

@mxmCherry mxmCherry released this Nov 16, 2017 · 37 commits to master since this release

Assets 2

Changes since v9.1.0:

@mxmCherry mxmCherry released this Oct 26, 2017 · 60 commits to master since this release

Assets 2

Changes since v9.0.0:

  • added .Val() helper methods to nilable enum types for safe pointer dereferencing - return default value for nil:
v := Video{
  StartDelay: nil,
}
println(v.StartDelay.Val()) // 0 (StartDelayPreRoll)

@mxmCherry mxmCherry released this Oct 19, 2017 · 61 commits to master since this release

Assets 2

Changes since v8.0.0:

  • Banner.{W,H} fields made pointers - #16
  • {Int8,Uint64}Ptr(n) and ENUM(n).Ptr() helpers added:
Banner {
  W: Uint64Ptr(320),
  H: Uint64Ptr(240),
}
BidResponse {
  NBR: NoBidReasonCodeTechnicalError.Ptr(),
}
Video {
  StartDelay: StartDelay(60).Ptr(),
}
Assets 2

Changes since v7.0.0:

  • added typed enums/constants for section "5. Enumerated Lists Specification" and switched corresponding object field types
  • added forgotten Video.Delivery attribute

@mxmCherry mxmCherry released this Sep 10, 2017 · 83 commits to master since this release

Assets 2

Changes since v6.0.0:

  • more fields made pointers to handle omission/zeros properly - mostly enum/duration ones
  • Device.Connectiontype renamed to Device.ConnectionType

@mxmCherry mxmCherry released this Aug 17, 2017 · 88 commits to master since this release

Assets 2

Changes since v5.0.0:

  • Imp.Secure attribute made pointer (*int8) to conform OpenRTB 2.5, "3.2.4 Object: Imp" section, "secure" field description - #11
  • BidResponse.NBR enum attribute made pointer (*int8) to conform OpenRTB 2.5, "7.1 No-Bid Signaling" section (0 has special meaning, described in "5.24 No-Bid Reason Codes" section) - #12
Assets 2

Changes since v4.0.0:

  • Video.Skip attribute made pointer (*int8) to conform OpenRTB 2.5, "7.4 Skippability" section -
    see #9

@mxmCherry mxmCherry released this Jun 25, 2017 · 96 commits to master since this release

Assets 2

Changes since v3.0.0:

  • added new object types for OpenRTB 2.5
  • added new attributes to existing object types for OpenRTB 2.5
  • changed time/duration properties type to int64
  • changed at (auction type) attribute type to int64 (was int8)
  • removed BidRequest.buyerid property (seems to be just a mistype in OpenRTB 2.3.1, use BidRequest.buyeruid instead)