Class AdInsight
java.lang.Object
com.brightcove.player.analytics.insights.AdInsight
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
static enum
static class
static class
static class
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final String
-
Method Summary
Modifier and TypeMethodDescriptionpre = preroll: the ad pod played before content mid = midroll: the ad pod played during content post = postroll: the ad pod played after contentThe advertiser name as defined by the serving party.Seconds of ad playback where volume was >= 1% and not muted.The content type of the currently selected creative.The ID of the selected creative for the ad.The first deal ID present in the wrapper chain for the current ad, starting from the top.The duration in seconds of the selected creative for the ad.The position of the ad relative to the pod.The ISCI (Industry Standard Commercial Identifier) code for an ad.The hostname parsed from the ad media file.Seconds of ad media played.Number of seconds of playback before the ad becomes skippable.Milliseconds to start playing the first frame of the ad.Source ad server information included in the ad response.The title of the ad from the VAST response.String[]
Comma-separated list of ad systems used for wrapper ads starting at the inline ad and traversing to the outermost wrapper ad.Number of ads in the current pod.The total number of seconds the ad pod is expected to run.Host name from the ad server URL called to return the ad pod.The index of the pod relative to the content.How ads were requested.Milliseconds from ad request sent to ad request received.The content time offset at which the current ad pod was scheduled.Ad insight event name.1 if the ad was clicked or tapped, 0 otherwise.1 if the ad was skipped, 0 otherwise.toMap()
-
Field Details
-
TAG
-
AD_VIEWABLE_SECONDS_RULE
public static final int AD_VIEWABLE_SECONDS_RULE- See Also:
-
PREROLL_POD_INDEX
public static final int PREROLL_POD_INDEX- See Also:
-
POSTROLL_POD_INDEX
public static final int POSTROLL_POD_INDEX- See Also:
-
-
Method Details
-
getEventName
Ad insight event name.- Returns:
- - Event name.
-
getAdsPodIndex
The index of the pod relative to the content. Resets to zero with each change in content.- Returns:
- - The index of the pod relative to the content.
-
getAdsAdIndex
The position of the ad relative to the pod. Resets to one with each new ad pod. 0-n.- Returns:
- - The position of the ad relative to the pod.
-
getAdsAdDealId
The first deal ID present in the wrapper chain for the current ad, starting from the top. Exclude if not available.- Returns:
- - First ad deal id.
-
getAdsAdWrapperSystems
Comma-separated list of ad systems used for wrapper ads starting at the inline ad and traversing to the outermost wrapper ad. Exclude if not available.- Returns:
- - Comma-separated list of ad systems.
-
getAdsAdSystem
Source ad server information included in the ad response. Exclude if not available.- Returns:
- - Source ad server information included in the ad response.
-
getAdsAdSkipTimeOffset
Number of seconds of playback before the ad becomes skippable. Exclude for non-skippable ads.- Returns:
- - Number of seconds of playback before the ad becomes skippable.
-
getAdsAdStartMs
Milliseconds to start playing the first frame of the ad. Exclude if not available.- Returns:
- - Milliseconds to start playing the first frame of the ad.
-
getAdsAdAdvertiser
The advertiser name as defined by the serving party. Exclude if not available.- Returns:
- - The advertiser name as defined by the serving party.
-
getAdsAdContentType
The content type of the currently selected creative. Exclude if no creative is selected or the content type is unavailable.- Returns:
- - The content type of the currently selected creative.
-
getAdsAdIsci
The ISCI (Industry Standard Commercial Identifier) code for an ad. Exclude if not available.- Returns:
- - The ISCI (Industry Standard Commercial Identifier) code for an ad.
-
getAdsAdCreativeId
The ID of the selected creative for the ad.- Returns:
- - The ID of the selected creative for the ad.
-
getAdsAdDuration
The duration in seconds of the selected creative for the ad. Exclude for non-linear ads.- Returns:
- - The duration in seconds of the selected creative for the ad.
-
getAdsAdTitle
The title of the ad from the VAST response.- Returns:
- - The title of the ad from the VAST response.
-
getAdsAdMediaUrlDomain
The hostname parsed from the ad media file.- Returns:
- - The hostname parsed from the ad media file.
-
getAdsPodAdCount
Number of ads in the current pod.- Returns:
- - Number of ads in the current pod.
-
getAdsPodDuration
The total number of seconds the ad pod is expected to run.- Returns:
- - The total number of seconds the ad pod is expected to run.
-
getAdsPodHost
Host name from the ad server URL called to return the ad pod.For CSAI, this is an arbitrary string. For SSAI, this is an enum of either “ssai” or “dai”
- Returns:
- - Host name from the ad server URL called to return the ad pod.
-
getAdPodType
pre = preroll: the ad pod played before content mid = midroll: the ad pod played during content post = postroll: the ad pod played after content- Returns:
- - Ad pod type.
-
getAdsPodRequestMs
Milliseconds from ad request sent to ad request received.- Returns:
- - Milliseconds from ad request sent to ad request received.
-
getAdsPodRequestMode
How ads were requested.onload = Ads requested when content began loading. onplay = Ads requested when content playback was requested. ondemand = Ads requested on-demand by the integrator. oncue = Ads requested on Video Cloud cue points.
For SSAI, use onload.
- Returns:
- How ads were requested.
-
getAdsPodTimeOffset
The content time offset at which the current ad pod was scheduled.For prerolls, use 0. For midrolls, will be the time offset specified either by the ad or the playhead position when ad playback begins. For postrolls, use the content duration
- Returns:
- - The content time offset at which the current ad pod was scheduled.
-
getAdsAdAudibleDuration
Seconds of ad playback where volume was >= 1% and not muted.- Returns:
- - Seconds of ad playback where volume was >= 1% and not muted.
-
getAdsAdPlayDuration
Seconds of ad media played.- Returns:
- - Seconds of ad media played.
-
isAdsAdSkipped
1 if the ad was skipped, 0 otherwise.- Returns:
- 1 if the ad was skipped, 0 otherwise.
-
isAdsAdInteraction
1 if the ad was clicked or tapped, 0 otherwise.- Returns:
- - 1 if the ad was clicked or tapped, 0 otherwise.
-
toMap
-