Show Sidebar

Requesting In-Stream (pre-roll) Video Ads – Android SDK

Maaf, entri ini hanya tersedia dalam bahasa English. For the sake of viewer convenience, the content is shown below in the alternative language. You may click the link to switch the active language.

In-Stream Video Ads is a video ad format that can be used to display video ads anywhere within your app in a linear manner (pre-roll) or after intervals (mid-roll, post-roll) as supported by the formats in conjunction with your video content. This creates a native ad experience for the end user.

Important Note: Since VMAX SDK version 3.5.18, we have enhanced the program instructions for in-stream video ads. If you are using an older version of the VMAX SDK and want to use in-stream ads, it is recommended that you upgrade at the earliest.

Note: Ensure that your video player is implementing VMAXVideoPlayer interfaces so that the VMAX SDK will be able to give the required events.

Requesting In-Stream Video Ads

For 3.6.0 and above

To Cache an ad

To Show an ad

For 3.5.18 and 3.5.19
For VMAX SDK versions 3.5.17 and below

Handling the VMAX activity life cycle

Additional Customization

You can choose to hide the default ad overlay controls and also allow a user to pause the ad.
Note: The Skip button in overlay controls cannot be hidden.

To hide the overlay controls

To allow users to pause ads

What would you like to do next?