public class AdCompanion
extends java.lang.Object
Constructor and Description |
---|
AdCompanion(java.lang.String click,
int height,
int width,
java.lang.String resource,
AdCompanionType type,
java.util.List<java.lang.String> creativeViews) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getClick()
URL to link to when clicking the companion.
|
java.util.List<java.lang.String> |
getCreativeViews()
A List of included creativeview event tracking pixels
|
int |
getHeight()
The height of the companion in pixels.
|
java.lang.String |
getResource()
The URL to the static/iframe resource, or the raw HTML content.
|
AdCompanionType |
getType()
The type of the creative: static, iframe, or HTML.
|
int |
getWidth()
The width of the companion in pixels.
|
static AdCompanion |
parseJson(org.json.JSONObject json)
Construct AdCompanion object.
|
public AdCompanion(java.lang.String click, int height, int width, java.lang.String resource, AdCompanionType type, java.util.List<java.lang.String> creativeViews)
public java.lang.String getClick()
public int getHeight()
public int getWidth()
public java.lang.String getResource()
public AdCompanionType getType()
public java.util.List<java.lang.String> getCreativeViews()
public static AdCompanion parseJson(org.json.JSONObject json)
json
- from onAdCompanions event.