public interface Ad<T>
An Ad can be composed by any type of CreativeType
.
Modifier and Type | Interface and Description |
---|---|
static class |
Ad.Category
The category of the Ad
|
static class |
Ad.TrackingType
Tracking types supported by an Ad.
|
static class |
Ad.Type
Types of Ads.
|
Modifier and Type | Field and Description |
---|---|
static long |
AD_NON_SKIPPABLE_OFFSET_VALUE
The default skip offset value returned when the Ad is not skippable.
|
Modifier and Type | Method and Description |
---|---|
long |
getAbsoluteEndPosition() |
long |
getAbsoluteStartPosition() |
default Ad.Category |
getCategory()
Gets the
Ad.Category of this Ad. |
int |
getCompanionCount() |
CreativeClicks |
getCreativeClicks() |
java.util.List<TrackingEvent> |
getCreativeTrackingEvents(TrackingType trackingType,
Ad.Type adType) |
long |
getDuration() |
java.lang.String |
getId() |
T |
getRawAd() |
T |
getRawCompanion() |
T |
getRawCreative() |
long |
getSkipOffset()
Returns the skip offset of the main ad.
|
java.lang.String |
getTitle() |
java.util.List<TrackingEvent> |
getTrackingEvents(Ad.TrackingType trackingType) |
boolean |
hasCompanions() |
boolean |
isLinear() |
static final long AD_NON_SKIPPABLE_OFFSET_VALUE
long getAbsoluteStartPosition()
long getAbsoluteEndPosition()
long getDuration()
@NonNull java.lang.String getId()
@NonNull java.lang.String getTitle()
boolean isLinear()
boolean hasCompanions()
long getSkipOffset()
AD_NON_SKIPPABLE_OFFSET_VALUE
when the Ad is not skippable.@NonNull java.util.List<TrackingEvent> getTrackingEvents(Ad.TrackingType trackingType)
trackingType
- of the tracking events to be returned.@NonNull java.util.List<TrackingEvent> getCreativeTrackingEvents(@NonNull TrackingType trackingType, @NonNull Ad.Type adType)
trackingType
- TrackingType
of the Tracking events to retrieve.adType
- the Ad.Type
of the creatives
to retrieve the tracking events.int getCompanionCount()
@Nullable CreativeClicks getCreativeClicks()
@NonNull T getRawAd()
@NonNull T getRawCreative()
@Nullable T getRawCompanion()
@NonNull default Ad.Category getCategory()
Ad.Category
of this Ad.