Show Sidebar

Requesting Banner Ads – Android Unity Plugin

Note: For Banner Ads, please ensure that you have turned off the refresh from the mediation partner’s web interface when using a fresh integration of VMAX SDK 3.4.0 or higher. This change in settings is not required when updating from an earlier version to 3.4.0 or higher.

To request for a Banner Ad

 

SDK 3.6.0 onwards

Construct an object of the Class VmaxPlugin and pass the adspotId , uxType as the parameter into the constructor.

Before SDK 3.6.0

Construct an object of the Class VmaxPlugin and pass the adspotId , uxType as the parameter into the constructor and false for last param.

Additional Information

Callbacks

SDK 3.6.0 onwards

Before SDK 3.6.0

Note: Ensure that you handle the lifecycle of VmaxPlugin

Show/Hide Banner Ads

You can show/hide banners using showBanner() and hideBanner() APIs.

Managing Refresh Rate for Banner Ads

You can manage the the frequency at which the Banner Ads are refreshed using the setRefreshRate() method. The minimum Ad Refresh rate is 30 seconds; setting a lower value will default to 30 seconds.
Here is the example to setRefreshRate():

To set Demographic parameters using VMAX API use below mentioned APIs.

What would you like to do next?