-
- All Implemented Interfaces:
-
com.brightcove.player.event.Component
@Emits(events = {EventType.AD_VIEWABLE_IMPRESSION})@ListensFor(events = {EventType.AD_PAUSED, EventType.AD_RESUMED, SSAIEventType.SKIP_AD, SSAIEventType.CLICK_LINEAR_CREATIVE})@RestrictTo(value = RestrictTo.Scope.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.
-
-
Field Summary
Fields Modifier and Type Field Description private long
totalTimelineLength
private boolean
isLive
private View
adView
-
Constructor Summary
Constructors Constructor Description SSAIAnalytics(EventEmitter eventEmitter)
-
Method Summary
Modifier and Type Method Description void
setTotalTimelineLength(long totalTimelineLength)
Set total timeline length to calculate ad pod type. void
setIsLive(boolean isLive)
void
setAdView(View adView)
Set current AdView AdInsight
getAdPodInsight(String adInsightEvent, AdPod adPod)
AdInsight
getAdInsight(String adInsightEvent, AdPod adPod, Ad<out Object> ad)
void
startAdInsightTimerTasks(AdPod adPod, Ad<out Object> ad)
Starts ad insight timer tasks. void
finishAdInsightsTimerTasks()
Finish ad insights timer tasks. void
resetAdInsightValues()
Reset ad insight parameter values after ad is complete or skipped. -
-
Method Detail
-
setTotalTimelineLength
void setTotalTimelineLength(long totalTimelineLength)
Set total timeline length to calculate ad pod type.
- Parameters:
totalTimelineLength
- - Current timeline total length.
-
setIsLive
void setIsLive(boolean isLive)
-
getAdPodInsight
AdInsight getAdPodInsight(String adInsightEvent, AdPod adPod)
-
getAdInsight
AdInsight getAdInsight(String adInsightEvent, AdPod adPod, Ad<out Object> ad)
-
startAdInsightTimerTasks
void startAdInsightTimerTasks(AdPod adPod, Ad<out Object> ad)
Starts ad insight timer tasks.
-
finishAdInsightsTimerTasks
void finishAdInsightsTimerTasks()
Finish ad insights timer tasks.
-
resetAdInsightValues
void resetAdInsightValues()
Reset ad insight parameter values after ad is complete or skipped.
-
-
-
-