VMAX
 
 
 
 
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

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

Request for an Banner Ad

Additional Information

Callbacks

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.

Requesting Banner Ads with Strict Dimension (Sbd)

This will allow VMAX to fetch banners with strict dimensions with the below Ad sizes:

  • 320×50
  • 728×90
  • 300×250
  • 480×320
  • 480×800
  • 1024×600
  • 320×480
  • 600×1024
  • 800×480

SBD Adspot and Mediation Partner configuration

Ad size Mediation Partner Instructions
320×50 and

728×90 Banner

VMAX Agency Ads Create a Banner Adspot on the VMAX dashboard.
Admob >Create an Admob adunit id on your Admob dashboard and link it to a VMAX banner Adspot.
Facebook Create a Facebook placement id on your Facebook dashboard and link it to a VMAX banner Adspot.
Millennial Media Create a Millennial Media Banner Appid (Banner placement) on your MM dashboard and link it to a VMAX banner Adspot.
300×250 Billboard VMAX Agency Ads Create a Billboard Adspot on the VMAX dashboard.
Admob Create an Admob banner adunit id on your Admob dashboard and link to a VMAX Interstitial Adspot.

*Backend configuration is required (kindly contact your VMAX Account Manager)

Facebook Create a Facebook banner placement id on your Facebook dashboard and link to a VMAX Interstitial Adspot.

*Backend configuration is required (kindly contact your VMAX Account Manager)

Millennial Media Create a Millennial Media rectangle Ap id (Rectangle placement) on your MM dashboard and link to a VMAX Banner/Interstitial Adspot. As MM will always serve a rectangle ad (300×250), ignore the ad settings passed by VMAX, if any.
480×320, 480×800, and 1024×600 Billboard VMAX Agency Ads Create a Billboard Adspot on the VMAX dashboard.

**Note: UX type for the aforementioned Banner Ads will be UX_INLINE_DISPLAY. “sbd” with fixed value (banner size) is mandatory for all above cases which need to be passed via the Vmax plugin. Refer to the code Snippet shown below. Mediation partners Admob, Facebook, and Millennial Media support ads of the sizes “320×50”, “728×90” , “300×250”. 
As MM provides the provision for creating different ids for banner and rectangle ads (300×250), ignore any hardcoded size passed by MM SDK. It supports 320×50 and 728×90 for banner Ads perfectly as these are passed by the MM SDK.

Below is sample snippet to fetch SBD Ads for Size 728×90

What would you like to do next?