Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Note
This feature is available in Xandr Mobile SDK version 8.1 for Android.
Overview
This page has instructions and code samples for showing a high impact media as banner ad view in Xandr Mobile SDK for Android.
Methods
The following methods are supported in this feature:
setAllowHighImpactDemand
Setter method that defines whether a high impact media can serve on the Ad object.
/**
* Sets whether or not High Impact media(AppNexus Media Type:11) can serve on this Ad object.
* This overrides the value set in console.
*
* @param enabled whether to enable High Impact media or not. default is false
*/
public void setAllowHighImpactDemand(boolean enabled) {
Clog.d(Clog.publicFunctionsLogTag, Clog.getString(
R.string.set_allow_high_impact, enabled));
requestParameters.setHighImpactEnabled(enabled);
}
getAllowHighImpactDemand
Getter method that indicates whether high impact media is enabled on the ad view or not.
/**
* Check whether High Impact media is enabled on this ad view
*
* @return If true, High Impact Ad can be loaded on the ad view.
*/
public boolean getAllowHighImpactDemand() {
return requestParameters.isHighImpactEnabled();
}
Example
// Allow High Impact Media for BannerAdView
bannerAdView.setAllowHighImpactDemand(true);