Class AdCompanion

java.lang.Object
com.jwplayer.pub.api.media.ads.AdCompanion

public class AdCompanion extends Object
An Ad Companion.
  • Constructor Details

  • Method Details

    • getClick

      public String 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

      public String getResource()
      The URL to the static/iframe resource, or the raw HTML content.
      Returns:
      static webpage or iframe URL.
    • getType

      public AdCompanionType getType()
      The type of the creative: static, iframe, or HTML.
      Returns:
      'static', 'iframe', or 'HTML'.
    • getCreativeViews

      public List<String> getCreativeViews()
      A List of included creativeview event tracking pixels