diff --git a/src/main/java/com/metamx/datatypes/openrtb/Imp.java b/src/main/java/com/metamx/datatypes/openrtb/Imp.java index ba2f4d1..669a13e 100644 --- a/src/main/java/com/metamx/datatypes/openrtb/Imp.java +++ b/src/main/java/com/metamx/datatypes/openrtb/Imp.java @@ -37,6 +37,7 @@ public class Imp private final Integer secure; private final List iframeBuster; private final Pmp pmp; + private final Integer ssai; private final Ext ext; public Imp( @@ -53,6 +54,7 @@ public Imp( @JsonProperty("secure") Integer secure, @JsonProperty("iframebuster") List iframeBuster, @JsonProperty("pmp") Pmp pmp, + @JsonProperty("ssai") Integer ssai, @JsonProperty("ext") Ext ext ) { @@ -69,6 +71,7 @@ public Imp( this.secure = secure; this.iframeBuster = iframeBuster; this.pmp = pmp; + this.ssai = ssai; this.ext = ext; } @@ -150,6 +153,12 @@ public Pmp getPmp() return pmp; } + @JsonProperty("ssai") + public Integer getSsai() + { + return ssai; + } + @JsonProperty public Ext getExt() { @@ -176,6 +185,7 @@ public static class Builder private Integer secure; private List iframebuster; private Pmp pmp; + private Integer ssai; private Ext ext; public Builder() {} @@ -257,6 +267,12 @@ public Builder pmp(final Pmp pmp) return this; } + public Builder ssai(final Integer ssai) + { + this.ssai = ssai; + return this; + } + public Builder ext(final Ext ext) { this.ext = ext; @@ -279,6 +295,7 @@ public Imp build() secure, iframebuster, pmp, + ssai, ext ); } diff --git a/src/main/java/com/metamx/datatypes/openrtb/Video.java b/src/main/java/com/metamx/datatypes/openrtb/Video.java index f74923b..4ec64da 100644 --- a/src/main/java/com/metamx/datatypes/openrtb/Video.java +++ b/src/main/java/com/metamx/datatypes/openrtb/Video.java @@ -46,6 +46,7 @@ public class Video private final List companionAd; private final List api; private final List companionType; + private final Integer placement; private final Ext ext; public Video( @@ -70,6 +71,7 @@ public Video( @JsonProperty("companionad") List companionAd, @JsonProperty("api") List api, @JsonProperty("companiontype") List companionType, + @JsonProperty("placement") Integer placement, @JsonProperty("ext") Ext ext ) { @@ -94,6 +96,7 @@ public Video( this.companionAd = companionAd; this.api = api; this.companionType = companionType; + this.placement = placement; this.ext = ext; } @@ -216,6 +219,12 @@ public List getApi() return api; } + @JsonProperty("placement") + public Integer getVideoPlacementType() + { + return placement; + } + @JsonProperty("companionType") public List getCompanionType() { @@ -256,6 +265,7 @@ public static class Builder private List companionAd; private List api; private List companionType; + private Integer placement; private Ext ext; public Builder() {} @@ -386,6 +396,12 @@ public Builder companionType(final List companionType) return this; } + public Builder placement(final Integer placement) + { + this.placement = placement; + return this; + } + public Builder ext(final Ext ext) { this.ext = ext; @@ -416,6 +432,7 @@ public Video build() companionAd, api, companionType, + placement, ext ); }