-
Notifications
You must be signed in to change notification settings - Fork 6
Advanced integration of Full Screen Overlay Ad
An AdOverlay
has more advanced features such as instance saving, custom animations and its callback event listeners. These features are an addition to the basic implementation.
Interstitial Ad can be shown with a set of animations by providing animation type. This can be done by setting setPresentationStyle(AdformEnum.AnimationType)
. You can select from a set of animations:
- AdformEnum.AnimationType.NO_ANIMATION - Ad is shown without an animation
- AdformEnum.AnimationType.SLIDE - Ad is shown with a slide animation
- AdformEnum.AnimationType.FADE - Ad is shown with a fade animation
By default, interstitial ad uses a FADE animation type.
To get ad loader state setListener(AdOverlay.OverlayLoaderListener)
should be used to get events when loading has succeeded/failed.
Note that, there is also a callback when there was as javascript error when showing an ad. In that case banner is not showed and user is indicated of that kind of event.
adLoader.setListener(new AdOverlay.OverlayLoaderListener() {
@Override
public void onLoadSuccess() {
}
@Override
public void onLoadError(String error) {
}
@Override
public void onShowError(String error) {
}
});
To get ad loader show/hide states use adLoader.setStateListener(AdOverlay.OverlayStateListener);
adLoader.setStateListener(new AdOverlay.OverlayStateListener() {
@Override
public void onAdShown() {
}
@Override
public void onAdClose() {
}
});
AdOverlay
can enable/disable dimming when ad shows by using setDimOverlayEnabled(boolean)
.
Basic integrations
- Integrating Inline Ad
- Integrating Full Screen Overlay Ad
- Integrating Interstitial Ad
- Integrating Adhesion Ad
- Video Ad Integration
Advanced integrations
- Advanced integration of Inline Ad
- Advanced integration of Full Screen Overlay Ad
- Advanced integration of Interstitial Ad
- Advanced integration of Adhesion Ad
- Advanced integration of AdInline ListView
- Advanced integration of AdInline RecyclerView
- Instream video ads integration
Other
- Adding Custom Values
- Adding Keywords
- Adding Key Value Pairs
- Adding Search Words
- Location
- Security
- Ad Tags
- Header Bidding
- Changing ADX domain
- Specifying banner loading behaviour
- GDPR
- Logs
Mediation adapters
Plugins