Package com.my.target.common
Class BaseAd
-
- All Implemented Interfaces:
public abstract class BaseAd
-
-
Method Summary
Modifier and Type Method Description CustomParamsgetCustomParams()Each Ad object contains custom params. StringgetTag()Returns current tag value. WebFormClientgetWebFormClient()Returns WebFormClient of the ad. voidsetAdNetworkConfig(@NonNull() String networkName, @NonNull() AdNetworkConfig adNetworkConfig)Additional parameters for mediation voidsetTag(@Nullable() String tag)Sets tag of the ad. voidsetWebFormClient(@Nullable() WebFormClient webFormClient)Sets WebFormClient of the ad. -
-
Method Detail
-
getCustomParams
@NonNull() CustomParams getCustomParams()
Each Ad object contains custom params. Information from CustomParams will be added to the Ad request
- Returns:
customParams object
-
getWebFormClient
@Nullable() WebFormClient getWebFormClient()
Returns WebFormClient of the ad.
- Returns:
Instance of web form client
-
setAdNetworkConfig
void setAdNetworkConfig(@NonNull() String networkName, @NonNull() AdNetworkConfig adNetworkConfig)
Additional parameters for mediation
- Parameters:
networkName- a name of ad networkadNetworkConfig- an instance of AdNetworkConfig
-
setTag
void setTag(@Nullable() String tag)
Sets tag of the ad.
- Parameters:
tag- String value (up to 255 chars) ornull
-
setWebFormClient
void setWebFormClient(@Nullable() WebFormClient webFormClient)
Sets WebFormClient of the ad.
- Parameters:
webFormClient- web form client.
-
-
-
-