Class SSAIAnalytics

java.lang.Object
com.brightcove.player.event.AbstractComponent
com.brightcove.ssai.analytics.SSAIAnalytics
All Implemented Interfaces:
Component

@Emits(events="adViewableImpression") @ListensFor(events={"adPaused","adResumed","skipAd","clickLinearCreative"}) @RestrictTo(LIBRARY) public class SSAIAnalytics extends AbstractComponent
Registers the appropriate SSAI event listeners to send analytic events containing the ad insight data for each played slot and ad.
  • Constructor Details

    • SSAIAnalytics

      public SSAIAnalytics(EventEmitter eventEmitter)
  • Method Details

    • getAdPodInsight

      public AdInsight getAdPodInsight(String adInsightEvent, AdPod adPod)
    • getAdInsight

      public AdInsight getAdInsight(String adInsightEvent, AdPod adPod, Ad<?> ad)
    • setIsLive

      public void setIsLive(boolean isLive)
    • setAdView

      public void setAdView(android.view.View adView)
      Set current AdView
      Parameters:
      adView - - Current ad view.
    • setTotalTimelineLength

      public void setTotalTimelineLength(long totalTimelineLength)
      Set total timeline length to calculate ad pod type.
      Parameters:
      totalTimelineLength - - Current timeline total length.
    • startAdInsightTimerTasks

      public void startAdInsightTimerTasks(AdPod adPod, Ad<?> ad)
      Starts ad insight timer tasks.
    • finishAdInsightsTimerTasks

      public void finishAdInsightsTimerTasks()
      Finish ad insights timer tasks.
    • resetAdInsightValues

      public void resetAdInsightValues()
      Reset ad insight parameter values after ad is complete or skipped.