Package com.jwplayer.pub.api.media.ads
Class AdCompanion
java.lang.Object
com.jwplayer.pub.api.media.ads.AdCompanion
An Ad Companion.
-
Constructor Summary
ConstructorsConstructorDescriptionAdCompanion(String click, int height, int width, String resource, AdCompanionType type, List<String> creativeViews) -
Method Summary
Modifier and TypeMethodDescriptiongetClick()URL to link to when clicking the companion.A List of included creativeview event tracking pixelsintThe height of the companion in pixels.The URL to the static/iframe resource, or the raw HTML content.getType()The type of the creative: static, iframe, or HTML.intgetWidth()The width of the companion in pixels.
-
Constructor Details
-
AdCompanion
public AdCompanion(String click, int height, int width, String resource, AdCompanionType type, List<String> creativeViews)
-
-
Method Details
-
getClick
URL to link to when clicking the companion. Only available if the type is static.- Returns:
- link URL.
-
getHeight
public int getHeight()The height of the companion in pixels.- Returns:
- height.
-
getWidth
public int getWidth()The width of the companion in pixels.- Returns:
- width.
-
getResource
The URL to the static/iframe resource, or the raw HTML content.- Returns:
- static webpage or iframe URL.
-
getType
The type of the creative: static, iframe, or HTML.- Returns:
- 'static', 'iframe', or 'HTML'.
-
getCreativeViews
A List of included creativeview event tracking pixels
-