Class ViewableAd
-
- All Implemented Interfaces:
public abstract class ViewableAdA viewable ad. This is different from Ad in the way that while an
While
Adis a POJO representation of Ad markup received from the Ad server, an instance of this class represents an ad that is actually rendered on screen in the real estate supplied by the publisher.A viewable ad will also participate in impression tracking.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classViewableAd.Inflaterpublic @interfaceViewableAd.AdEventSignificant events that may impact tracking impressions on this
ViewableAd.Note** These are not all the events that may be generated by a viewable ad, only a subset of those events that can impact impression tracking on this ad.
public @interfaceViewableAd.ActivityState
-
Field Summary
Fields Modifier and Type Field Description private ViewableAd.Inflaterinflaterprivate ViewinflatedViewprivate final AdContainercontainer
-
Constructor Summary
Constructors Constructor Description ViewableAd(AdContainer container)
-
Method Summary
Modifier and Type Method Description ViewableAd.InflatergetInflater()UnitsetInflater(ViewableAd.Inflater inflater)ViewgetInflatedView()UnitsetInflatedView(View inflatedView)final AdContainergetContainer()ViewinflateView()abstract ViewinflateView(View convertView, ViewGroup parent, Boolean deferred)abstract UnitstartTrackingForImpression(Map<View, FriendlyObstructionPurpose> friendlyViews)abstract UnitaddFriendlyView(View childView, FriendlyObstructionPurpose obstructionCode)abstract UnitremoveFriendlyView(View childView)abstract UnitstopTrackingForImpression()BooleanisOmidSessionActive()DI-19121: whether an OM-SDK AdSession is currently live somewhere in this decorator chain. abstract UnitonAdEvent(Byte event)abstract UnitonActivityStateChanged(Context context, Byte state)Unitdestroy()-
-
Constructor Detail
-
ViewableAd
ViewableAd(AdContainer container)
-
-
Method Detail
-
getInflater
ViewableAd.Inflater getInflater()
-
setInflater
Unit setInflater(ViewableAd.Inflater inflater)
-
getInflatedView
View getInflatedView()
-
setInflatedView
Unit setInflatedView(View inflatedView)
-
getContainer
final AdContainer getContainer()
-
inflateView
View inflateView()
-
inflateView
abstract View inflateView(View convertView, ViewGroup parent, Boolean deferred)
-
startTrackingForImpression
abstract Unit startTrackingForImpression(Map<View, FriendlyObstructionPurpose> friendlyViews)
-
addFriendlyView
abstract Unit addFriendlyView(View childView, FriendlyObstructionPurpose obstructionCode)
-
removeFriendlyView
abstract Unit removeFriendlyView(View childView)
-
stopTrackingForImpression
abstract Unit stopTrackingForImpression()
-
isOmidSessionActive
Boolean isOmidSessionActive()
DI-19121: whether an OM-SDK AdSession is currently live somewhere in this decorator chain. Leaf ViewableAds have none; wrapping decorators delegate inward, and the OMID decorators report their own session state. Used to gate the banner detach-release telemetry so an abandon with nothing left to release (already-finished session) is not counted.
-
onActivityStateChanged
abstract Unit onActivityStateChanged(Context context, Byte state)
-
-
-
-