Multi-Format Banner Ads
This offering is currently in Alpha and is subject to change.
As of Version 4.6 for Android and Version 4.5 for iOS, the Xandr mobile SDK supports serving multiple creative formats (RTB VAST outstream videos and regular banner ads) through a single banner entry point.
- Video mediation is not yet supported.
- You cannot currently configure video player options, such as starting video with audio on/off or the presence of a volume button, for a mobile placement with the Console UI.
Show a Mix of VAST Video and HTML Banner Ads
Before you begin, you must integrate the Xandr SDK with your project.
Next, enable Video Ads in your App for BannerAdView (Andoid) or ANBannerAdView (iOS).
banner.shouldAllowVideoDemand = true;
Depending on which type of creative has the highest bid, either VAST video or regular HTML banner ads will appear in the app. The mechanism for deciding which type of ad to show is handled automatically for you by the SDK. There is no need for additional configuration.
Even if you include Video as a Media Type on your placement in the UI, you must still use the preceding commands to enable video ads. If you don't explicitly enable video ads through the SDK, only banner ads will serve.
Conversely, if you do not include Video as a Media Type on your placement in the UI, you can still enable video ads to serve by calling the above commands to set AllowVideoDemand to true.