-
public final class AdAsset
An AdAsset contains the information needed to play an Ad.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enum
AdAsset.AdType
The ad types
-
Constructor Summary
Constructors Constructor Description AdAsset(String adId, String adTitle, String url, DeliveryType deliveryType, AdAsset.AdType adType, boolean isSkippable, long skipOffset, int adNumber, int totalAdsInAdBreak)
Constructor of an AdId.
-
Method Summary
Modifier and Type Method Description String
getAdId()
String
getAdTitle()
String
getUrl()
DeliveryType
getDeliveryType()
AdAsset.AdType
getAdType()
boolean
isSkippable()
long
getSkipOffset()
int
getAdNumber()
int
getTotalAdsInAdBreak()
boolean
isFirstAdInAdBreak()
boolean
isLastAdInAdBreak()
-
-
Constructor Detail
-
AdAsset
AdAsset(String adId, String adTitle, String url, DeliveryType deliveryType, AdAsset.AdType adType, boolean isSkippable, long skipOffset, int adNumber, int totalAdsInAdBreak)
Constructor of an AdId.- Parameters:
adId
- the ad Id.adTitle
- the ad title.url
- the ad url.deliveryType
- the ad DeliveryType.adType
- the ad AdType.isSkippable
- whether the ad can be skipped.skipOffset
- the ad skip offset.adNumber
- the 1-indexed ad number in the ad break.totalAdsInAdBreak
- the number of ads in the ad break.
-
-
Method Detail
-
getAdTitle
@NonNull() String getAdTitle()
-
getDeliveryType
@NonNull() DeliveryType getDeliveryType()
-
getAdType
@NonNull() AdAsset.AdType getAdType()
-
isSkippable
boolean isSkippable()
-
getSkipOffset
long getSkipOffset()
-
getAdNumber
int getAdNumber()
-
getTotalAdsInAdBreak
int getTotalAdsInAdBreak()
-
isFirstAdInAdBreak
boolean isFirstAdInAdBreak()
-
isLastAdInAdBreak
boolean isLastAdInAdBreak()
-
-
-
-