Skip to content
This repository has been archived by the owner on Sep 13, 2024. It is now read-only.

BW-12879-Add-additional-video-dimensions-to-MMX #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions src/main/java/com/metamx/datatypes/openrtb/Imp.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public class Imp
private final Integer secure;
private final List<String> iframeBuster;
private final Pmp pmp;
private final Integer ssai;
private final Ext ext;

public Imp(
Expand All @@ -53,6 +54,7 @@ public Imp(
@JsonProperty("secure") Integer secure,
@JsonProperty("iframebuster") List<String> iframeBuster,
@JsonProperty("pmp") Pmp pmp,
@JsonProperty("ssai") Integer ssai,
@JsonProperty("ext") Ext ext
)
{
Expand All @@ -69,6 +71,7 @@ public Imp(
this.secure = secure;
this.iframeBuster = iframeBuster;
this.pmp = pmp;
this.ssai = ssai;
this.ext = ext;
}

Expand Down Expand Up @@ -150,6 +153,12 @@ public Pmp getPmp()
return pmp;
}

@JsonProperty("ssai")
public Integer getSsai()
{
return ssai;
}

@JsonProperty
public Ext getExt()
{
Expand All @@ -176,6 +185,7 @@ public static class Builder
private Integer secure;
private List<String> iframebuster;
private Pmp pmp;
private Integer ssai;
private Ext ext;

public Builder() {}
Expand Down Expand Up @@ -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;
Expand All @@ -279,6 +295,7 @@ public Imp build()
secure,
iframebuster,
pmp,
ssai,
ext
);
}
Expand Down
17 changes: 17 additions & 0 deletions src/main/java/com/metamx/datatypes/openrtb/Video.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public class Video
private final List<Banner> companionAd;
private final List<Integer> api;
private final List<Integer> companionType;
private final Integer placement;
private final Ext ext;

public Video(
Expand All @@ -70,6 +71,7 @@ public Video(
@JsonProperty("companionad") List<Banner> companionAd,
@JsonProperty("api") List<Integer> api,
@JsonProperty("companiontype") List<Integer> companionType,
@JsonProperty("placement") Integer placement,
@JsonProperty("ext") Ext ext
)
{
Expand All @@ -94,6 +96,7 @@ public Video(
this.companionAd = companionAd;
this.api = api;
this.companionType = companionType;
this.placement = placement;
this.ext = ext;
}

Expand Down Expand Up @@ -216,6 +219,12 @@ public List<Integer> getApi()
return api;
}

@JsonProperty("placement")
public Integer getVideoPlacementType()
{
return placement;
}

@JsonProperty("companionType")
public List<Integer> getCompanionType()
{
Expand Down Expand Up @@ -256,6 +265,7 @@ public static class Builder
private List<Banner> companionAd;
private List<Integer> api;
private List<Integer> companionType;
private Integer placement;
private Ext ext;

public Builder() {}
Expand Down Expand Up @@ -386,6 +396,12 @@ public Builder companionType(final List<Integer> companionType)
return this;
}

public Builder placement(final Integer placement)
{
this.placement = placement;
return this;
}

public Builder ext(final Ext ext)
{
this.ext = ext;
Expand Down Expand Up @@ -416,6 +432,7 @@ public Video build()
companionAd,
api,
companionType,
placement,
ext
);
}
Expand Down