public interface Ad
Modifier and Type | Interface and Description |
---|---|
static interface |
Ad.LoadAdConfig
Marker interface for an object that represents an ad load config.
|
static interface |
Ad.LoadConfigBuilder
Builder that allows to configure an ad loading.
|
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroys the ad control.
|
java.lang.String |
getPlacementId()
Get the placementId for this ad.
|
boolean |
isAdInvalidated()
Indicate whether the ad is still valid.
|
void |
loadAd()
Loads an ad.
|
void |
loadAdFromBid(java.lang.String bidPayload)
Deprecated.
since 5.6
|
void |
setExtraHints(ExtraHints extraHints)
Deprecated.
since 5.6,
the extra hints API is deprecated and will be removed in a future version of the SDK.
|
void loadAd()
This method always returns immediately. The ad is loaded asynchronously. The control's ad listener will be called when loading finishes or fails.
@Deprecated void loadAdFromBid(java.lang.String bidPayload)
bidPayload
- The payload supplied with the bidboolean isAdInvalidated()
void destroy()
This method should be called when the hosting activity of the ad control is destroyed.
java.lang.String getPlacementId()
@Deprecated void setExtraHints(ExtraHints extraHints)