See below for code snippets in MediaActivity class.

Copy to Clipboard public class MediaActivity extends RequestPermissionActivity implements PrerollAdListener { private static final String TAG = "MediaActivity"; private RelativeLayout mAdLayout; @Override protected void onCreate(Bundle…

Event Listeners

You may optionally track ad lifecycle events like request failures or “click-through” by implementing com.vdopia.ads.mp. This interface may be implemented by your activity or any…