Android SDK Version

public interface Ad
Ad interface is a common interface implemented by all Facebook ad controls.
Since:
4.6
Method Summary
Modifier and TypeMethod and Description
voiddestroy()
Destroys the ad control.
java.lang.StringgetPlacementId()
Get the placementId for this ad.
booleanisAdInvalidated()
Indicate whether the ad is still valid.
voidloadAd()
Loads an ad.
voidloadAdFromBid(java.lang.String bidPayload)
Loads an ad from the payload supplied with a bid.
voidsetExtraHints(ExtraHints extraHints) 
Method Detail

loadAd

void loadAd()
Loads an ad.
This method always returns immediately. The ad is loaded asynchronously. The control's ad listener will be called when loading finishes or fails.
Since:
4.6

loadAdFromBid

void loadAdFromBid(java.lang.String bidPayload)
Loads an ad from the payload supplied with a bid.
This method always returns immediately. The ad is loaded asynchronously. If available, the ad listener will be called when loading finishes or fails.
Parameters:
bidPayload - The payload supplied with the bid
Since:
4.28

isAdInvalidated

boolean isAdInvalidated()
Indicate whether the ad is still valid.
Returns:
true if the ad is not valid anymore.
Since:
4.99

destroy

void destroy()
Destroys the ad control.
This method should be called when the hosting activity of the ad control is destroyed.
Since:
4.6

getPlacementId

java.lang.String getPlacementId()
Get the placementId for this ad.
Returns:
placementId String representing the placementId for this ad.
Since:
4.23

setExtraHints

void setExtraHints(ExtraHints extraHints)