See below for code snippets in AdListActivity class.

public class AdListActivity extends RequestPermissionActivity { private void initializePrerollAd() { Handler handler = new Handler(Looper.getMainLooper()); handler.post(new Runnable() { @Override public void run() { String apiKey = “”; boolean isMainContentFullscreen = true; LVDOAdSize adSize = new LVDOAdSize(LVDOAd_WIDTH, LVDOAd_HEIGHT); preRollVideoAd = PreRollVideoAd.getInstance(AdListActivity.this); preRollVideoAd.setMediaController(new MediaController(AdListActivity.this)); MVDOAdRequest adRequest = new MVDOAdRequest(AdListActivity.this); LocationData locationData = new LocationData(AdListActivity.this); adRequest.setLocation(locationData.getDeviceLocation()); // It is recommended that you update the below parameter - accurate info is required adRequest.setAppStoreUrl(""); adRequest.setRequester(""); adRequest.setAppDomain(""); adRequest.setAppName(""); adRequest.setCategory(""); adRequest.setPublisherDomain(""); // Passing on the following parameter values can result in better targeting and higher yield // For parameters you cannot populate, please comment them out adRequest.setDmaCode("807"); adRequest.setEthnicity("Asian"); adRequest.setPostalCode("94538"); adRequest.setCurrPostal("94539"); adRequest.setDmaCode("807"); adRequest.setAge("27"); adRequest.setMaritalStatus("single"); adRequest.setGender("m"); adRequest.setBirthday("yyyy-mm-dd"); preRollVideoAd.loadAd(adRequest, apiKey, adSize, AdListActivity.this, isMainContentFullscreen); Log.v(TAG, "Activity : " + this); } } } }