Class AdLoadedEvent


  • public class AdLoadedEvent
    extends Event
    Payload to accompany the onAdLoaded() event
    • Constructor Detail

      • AdLoadedEvent

        public AdLoadedEvent​(JWPlayer player,
                             AdClient client,
                             java.lang.String adBreakId,
                             java.lang.String adPlayId,
                             java.lang.String offset,
                             java.lang.String id,
                             java.lang.String tag,
                             AdPosition adPosition,
                             int sequence,
                             int wItem,
                             int wCount,
                             java.lang.String adSystem,
                             AdScheduleFromEvent adScheduleFromEvent,
                             int timeLoading,
                             java.lang.String type)
    • Method Detail

      • getClient

        public AdClient getClient()
        Returns:
        The client that is currently being used
      • getAdBreakId

        public java.lang.String getAdBreakId()
        Returns:
        Unique ID for each ad break
      • getAdPlayId

        public java.lang.String getAdPlayId()
        Returns:
        Unique ID for each ad
      • getOffset

        public java.lang.String getOffset()
        Returns:
        Position of an ad
      • getId

        public java.lang.String getId()
        Returns:
        Unique ad ID
      • getTag

        public java.lang.String getTag()
        Returns:
        URL of the ad tag
      • getAdposition

        public AdPosition getAdposition()
        Returns:
        Position of the ad
      • getAdScheduleFromEvent

        public AdScheduleFromEvent getAdScheduleFromEvent()
        Returns:
        Ad break information
      • getSequence

        public int getSequence()
        Returns:
        Returns the sequence number with which the ad associated
      • getWitem

        public int getWitem()
        Returns:
        Waterfall index
      • getWcount

        public int getWcount()
        Returns:
        Waterfall count
      • getAdsystem

        public java.lang.String getAdsystem()
        Returns:
        From the ad XML, name of the ad server that returned the ad
      • getType

        public java.lang.String getType()
        Returns:
        Category of the player event
      • getTimeLoading

        public int getTimeLoading()
        Returns:
        Time the ad took to load in milliseconds