Package com.brightcove.ssai.ad
Interface Ad<T>
public interface Ad<T>
Definition of an SSAI Ad.
 
 An Ad can be composed by any type of CreativeType.
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic enumThe category of the Adstatic enumTracking types supported by an Ad.static enumTypes of Ads.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final longThe default skip offset value returned when the Ad is not skippable.
- 
Method SummaryModifier and TypeMethodDescriptionlonglongdefault Ad.CategoryGets theAd.Categoryof this Ad.intgetCreativeTrackingEvents(TrackingType trackingType, Ad.Type adType) longgetId()getRawAd()longReturns the skip offset of the main ad.getTitle()getTrackingEvents(Ad.TrackingType trackingType) booleanbooleanisLinear()
- 
Field Details- 
AD_NON_SKIPPABLE_OFFSET_VALUEstatic final long AD_NON_SKIPPABLE_OFFSET_VALUEThe default skip offset value returned when the Ad is not skippable.- See Also:
 
 
- 
- 
Method Details- 
getAbsoluteStartPositionlong getAbsoluteStartPosition()- Returns:
- the absoluteStartPosition of the ad.
 
- 
getAbsoluteEndPositionlong getAbsoluteEndPosition()- Returns:
- the absoluteEndPosition of the ad.
 
- 
getDurationlong getDuration()- Returns:
- the duration of the ad.
 
- 
getId- Returns:
- the id of the ad.
 
- 
getTitle- Returns:
- the title of the ad.
 
- 
getAdSystem- Returns:
- the system of the ad.
 
- 
isLinearboolean isLinear()- Returns:
- whether the ad type is linear.
 
- 
hasCompanionsboolean hasCompanions()- Returns:
- whether the ad has companions.
 
- 
getSkipOffsetlong getSkipOffset()Returns the skip offset of the main ad. It must returnAD_NON_SKIPPABLE_OFFSET_VALUEwhen the Ad is not skippable.- Returns:
- the skip offset of the main ad.
 
- 
getTrackingEvents- Parameters:
- trackingType- of the tracking events to be returned.
- Returns:
- a list of tracking events for the specified trackingType.
 
- 
getCreativeTrackingEvents@NonNull List<TrackingEvent> getCreativeTrackingEvents(@NonNull TrackingType trackingType, @NonNull Ad.Type adType) - Parameters:
- trackingType-- TrackingTypeof the Tracking events to retrieve.
- adType- the- Ad.Typeof the creatives to retrieve the tracking events.
- Returns:
- the list of TrackingEvents for the given trackingType and adType.
 
- 
getCompanionCountint getCompanionCount()- Returns:
- number of companion ads in this ad.
 
- 
getCreativeClicks- Returns:
- CreativeClicks of the main creative.
 
- 
getRawAd- Returns:
- the raw Object from the VAST processing library of the AD.
 
- 
getRawCreative- Returns:
- the raw Object from the VAST processing library of the main Creative.
 
- 
getRawCompanion- Returns:
- the raw Object from the VAST processing library of the Companion Creative.
 
- 
getCategoryGets theAd.Categoryof this Ad.- Returns:
- the category
 
- 
getCreativeIdString getCreativeId()- Returns:
- - Current creative id.
 
- 
getCreativeAdIdString getCreativeAdId()- Returns:
- - Current creative ad id.
 
 
-