Class AdInsight.Builder
java.lang.Object
com.brightcove.player.analytics.insights.AdInsight.Builder
- Enclosing class:
- AdInsight
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
setAdPodType
(AdInsight.AdPodType getAdPodType) pre = preroll: the ad pod played before content mid = midroll: the ad pod played during content post = postroll: the ad pod played after contentsetAdsAdAdvertiser
(String adsAdAdvertiser) The advertiser name as defined by the serving party.setAdsAdAudibleDuration
(Double adsAdAudibleDuration) Seconds of ad playback where volume was >= 1% and not muted.setAdsAdContentType
(String adsAdContentType) The content type of the currently selected creative.setAdsAdCreativeId
(String adsAdCreativeId) The ID of the selected creative for the ad.setAdsAdDealId
(String adsAdDealId) The first deal ID present in the wrapper chain for the current ad, starting from the top.setAdsAdDuration
(Double adsAdDuration) The duration in seconds of the selected creative for the ad.setAdsAdIndex
(Integer adsAdIndex) The position of the ad relative to the pod.setAdsAdInteraction
(Boolean adsAdInteraction) 1 if the ad was clicked or tapped, 0 otherwise.setAdsAdIsci
(String adsAdIsci) The ISCI (Industry Standard Commercial Identifier) code for an ad.setAdsAdMediaUrlDomain
(String adsAdMediaUrlDomain) The hostname parsed from the ad media file.setAdsAdPlayDuration
(Double adsAdPlayDuration) Seconds of ad media played.setAdsAdSkipped
(Boolean adsAdSkipped) 1 if the ad was skipped, 0 otherwise.setAdsAdSkipTimeOffset
(Long adsAdSkipTimeOffset) Number of seconds of playback before the ad becomes skippable.setAdsAdStartMs
(Long adsAdStartMs) Milliseconds to start playing the first frame of the ad.setAdsAdSystem
(String adsAdSystem) Source ad server information included in the ad response.setAdsAdTitle
(String adsAdTitle) The title of the ad from the VAST response.setAdsAdWrapperSystems
(String[] adsAdWrapperSystems) Comma-separated list of ad systems used for wrapper ads starting at the inline ad and traversing to the outermost wrapper ad.setAdsPodAdCount
(Integer adsPodAdCount) Number of ads in the current pod.setAdsPodDuration
(Double adsPodDuration) The total number of seconds the ad pod is expected to run.setAdsPodHost
(String adsPodHost) Host name from the ad server URL called to return the ad pod.setAdsPodIndex
(Integer adsPodIndex) The index of the pod relative to the content.setAdsPodRequestMode
(AdInsight.AdsPodRequestMode adsPodRequestMode) How ads were requested.setAdsPodRequestMs
(Long adsPodRequestMs) Milliseconds from ad request sent to ad request received.setAdsPodTimeOffset
(Long adsPodTimeOffset) The content time offset at which the current ad pod was scheduled.setEventName
(String eventName) Sets ad insight event name.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setEventName
Sets ad insight event name.- Parameters:
eventName
- - Ad insight event name.- Returns:
- Event name builder.
-
setAdsPodIndex
The index of the pod relative to the content. Resets to zero with each change in content.- Parameters:
adsPodIndex
- - The index of the pod relative to the content.- Returns:
- Ads ad pod index builder.
-
setAdsAdIndex
The position of the ad relative to the pod. Resets to one with each new ad pod. 0-n.- Parameters:
adsAdIndex
- - The index of the ad relative to the pod.- Returns:
- - Ads ad index builder.
-
setAdsAdDealId
The first deal ID present in the wrapper chain for the current ad, starting from the top. Exclude if not available.- Parameters:
adsAdDealId
- - The first deal ID present in the wrapper chain for the current ad, starting from the top.- Returns:
- - Ads ad deal id builder.
-
setAdsAdWrapperSystems
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.- Parameters:
adsAdWrapperSystems
- - Comma-separated list of ad systems.- Returns:
- - Ads ad wrapper systems builder.
-
setAdsAdSystem
Source ad server information included in the ad response. Exclude if not available.- Parameters:
adsAdSystem
- - Source ad server information included in the ad response.- Returns:
- - Ads ad system builder.
-
setAdsAdSkipTimeOffset
Number of seconds of playback before the ad becomes skippable. Exclude for non-skippable ads.- Parameters:
adsAdSkipTimeOffset
- - Number of seconds of playback before the ad becomes skippable.- Returns:
- Ads ad skip time offset builder.
-
setAdsAdStartMs
Milliseconds to start playing the first frame of the ad. Exclude if not available.- Parameters:
adsAdStartMs
- - Milliseconds to start playing the first frame of the ad.- Returns:
- Ads ad start in milliseconds.
-
setAdsAdAdvertiser
The advertiser name as defined by the serving party. Exclude if not available.- Parameters:
adsAdAdvertiser
- - The advertiser name as defined by the serving party.- Returns:
- - Ads ad advertiser builder.
-
setAdsAdContentType
The content type of the currently selected creative. Exclude if no creative is selected or the content type is unavailable.- Parameters:
adsAdContentType
- - The content type of the currently selected creative.- Returns:
- - Ads ad content type builder.
-
setAdsAdIsci
The ISCI (Industry Standard Commercial Identifier) code for an ad. Exclude if not available.- Parameters:
adsAdIsci
- - The ISCI (Industry Standard Commercial Identifier) code for an ad.- Returns:
- - Ads ad Industry Standard Commercial Identifier builder.
-
setAdsAdCreativeId
The ID of the selected creative for the ad.- Parameters:
adsAdCreativeId
- The ID of the selected creative for the ad.- Returns:
- Ads ad creative id builder.
-
setAdsAdDuration
The duration in seconds of the selected creative for the ad. Exclude for non-linear ads.- Parameters:
adsAdDuration
- - The duration in seconds of the selected creative for the ad.- Returns:
- - Ads ad duration builder.
-
setAdsAdTitle
The title of the ad from the VAST response.- Parameters:
adsAdTitle
- - The title of the ad from the VAST response.- Returns:
- Ads ad title builder.
-
setAdsAdMediaUrlDomain
The hostname parsed from the ad media file.- Parameters:
adsAdMediaUrlDomain
- - The hostname parsed from the ad media file.- Returns:
- - Ads ad media url domain builder.
-
setAdsPodAdCount
Number of ads in the current pod.- Parameters:
adsPodAdCount
- - Number of ads in the current pod.- Returns:
- - Ads pod ads count builder.
-
setAdsPodDuration
The total number of seconds the ad pod is expected to run.- Parameters:
adsPodDuration
- - The total number of seconds the ad pod is expected to run.- Returns:
- - Ads pod duration builder.
-
setAdsPodHost
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”
- Parameters:
adsPodHost
- - Host name from the ad server URL called to return the ad pod.- Returns:
- - Ads pod host builder.
-
setAdPodType
pre = preroll: the ad pod played before content mid = midroll: the ad pod played during content post = postroll: the ad pod played after content- Parameters:
getAdPodType
- - Ad pod type.- Returns:
- - Ad pod type builder.
-
setAdsPodRequestMs
Milliseconds from ad request sent to ad request received.- Parameters:
adsPodRequestMs
- - Milliseconds from ad request sent to ad request received.- Returns:
- - Ads pod request in milliseconds.
-
setAdsPodRequestMode
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.
- Parameters:
adsPodRequestMode
- - Pod request mode.- Returns:
- - Ads pod request mode builder.
-
setAdsPodTimeOffset
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
- Parameters:
adsPodTimeOffset
- -The content time offset at which the current ad pod was scheduled.- Returns:
- - Ads pod time offset builder.
-
setAdsAdAudibleDuration
Seconds of ad playback where volume was >= 1% and not muted.- Parameters:
adsAdAudibleDuration
- - Seconds of ad playback where volume was >= 1% and not muted.- Returns:
- - Ads ad audible duration builder.
-
setAdsAdPlayDuration
Seconds of ad media played.- Parameters:
adsAdPlayDuration
- - Seconds of ad media played.- Returns:
- - Ads ad play duration builder.
-
setAdsAdSkipped
1 if the ad was skipped, 0 otherwise.- Parameters:
adsAdSkipped
- - 1 if the ad was skipped, 0 otherwise.- Returns:
- - Ads ad skipped builder.
-
setAdsAdInteraction
1 if the ad was clicked or tapped, 0 otherwise.- Parameters:
adsAdInteraction
- - 1 if the ad was clicked or tapped, 0 otherwise.- Returns:
- - Ads ad interaction builder.
-
build
-