Class AdSet
-
- All Implemented Interfaces:
public final class AdSetContainer for a group of related ads with shared configuration.
An ad set represents a collection of ads that share common properties like expiry, pod configuration, and reward settings. Ad sets help organize ads for waterfall or pod-based ad serving scenarios.
-
-
Field Summary
Fields Modifier and Type Field Description private final StringadSetIdprivate final LinkedList<Ad>adsprivate final BooleanisPodprivate final IntegerpodSuccessCountprivate final BooleanisRewardedprivate final BooleanlogEnabledprivate final StringtransactionIdprivate Longexpiry
-
Constructor Summary
Constructors Constructor Description AdSet()
-
Method Summary
Modifier and Type Method Description final StringgetAdSetId()The unique identifier for this ad set, set internally. final LinkedList<Ad>getAds()LinkedList of Ad objects in this ad set. final BooleanisPod()Flag indicating if this ad set is configured for pod-based ad serving. final IntegergetPodSuccessCount()final BooleanisRewarded()Flag indicating if ads in this set are rewarded ads, set internally. final BooleangetLogEnabled()Flag indicating if logging is enabled for this ad set. final StringgetTransactionId()Optional transaction identifier for this ad set, nullable. final LonggetExpiry()The default expiry duration in seconds for all the ads in this ad set, set internally. final UnitsetExpiry(Long expiry)The default expiry duration in seconds for all the ads in this ad set, set internally. -
-
Method Detail
-
getAdSetId
final String getAdSetId()
The unique identifier for this ad set, set internally.
-
getAds
final LinkedList<Ad> getAds()
LinkedList of Ad objects in this ad set.
-
getPodSuccessCount
final Integer getPodSuccessCount()
-
isRewarded
final Boolean isRewarded()
Flag indicating if ads in this set are rewarded ads, set internally.
-
getLogEnabled
final Boolean getLogEnabled()
Flag indicating if logging is enabled for this ad set.
-
getTransactionId
final String getTransactionId()
Optional transaction identifier for this ad set, nullable.
-
getExpiry
final Long getExpiry()
The default expiry duration in seconds for all the ads in this ad set, set internally.
-
-
-
-