Package com.pubmatic.sdk.openwrap.core
Interface POBBaseAd
-
- All Implemented Interfaces:
public interface POBBaseAdBase interface defining the methods to be implemented by the Ad classes such as POBBannerView, POBInterstitial, POBRewardedAd etc
-
-
Method Summary
Modifier and Type Method Description abstract voidloadAd()Initiate the loading of an Ad abstract POBImpressiongetImpression()Returns an instance of POBImpression which gets created internally. abstract POBRequestgetAdRequest()Returns an instance of POBRequest, required for setting targeting parameters. abstract voiddestroy()Invoke this method when your activity/fragment is about to destroy. abstract voidaddExtraInfo(@NonNull() String key, @NonNull() Object value)Method to add extra info. -
-
Method Detail
-
loadAd
abstract void loadAd()
Initiate the loading of an Ad
-
getImpression
@Nullable() abstract POBImpression getImpression()
Returns an instance of POBImpression which gets created internally. POBImpression provides the APIs to set PubMatic zone id and other custom parameters.
- Returns:
Returns an instance of POBImpression.
-
getAdRequest
@Nullable() abstract POBRequest getAdRequest()
Returns an instance of POBRequest, required for setting targeting parameters.
- Returns:
Instance of POBRequest
-
destroy
abstract void destroy()
Invoke this method when your activity/fragment is about to destroy. It cleans the resources.
-
addExtraInfo
abstract void addExtraInfo(@NonNull() String key, @NonNull() Object value)
Method to add extra info.
- Parameters:
key- Key corresponding to the use of the data passed.value- Value corresponding to the provided key which shall be used either for loading or rendering.
-
-
-
-