Interstitial Ads – Android 2.4

Interstitial ads provide full-screen experience, commonly incorporating rich media to offer a higher level of interactivity. Interstitial ads are typically shown during natural transitions in…

1. Import necessary classes

Copy to Clipboard import com.vdopia.ads.lw.LVDOAdRequest; import com.vdopia.ads.lw.LVDOConstants; import com.vdopia.ads.lw.LVDOInterstitialAd; import com.vdopia.ads.lw.LVDOInterstitialListener;…

3. Instantiate the LVDOInterstitialAd

In your Activity’s onCreate() method, using the activity context, apikey and listener, instantiate the LVDOInterstitialAd. To ensure a smooth experience, you should pre-fetch the ad…

4. Set Ad Request Parameters & Targeting Parameters

Copy to Clipboard LVDOAdRequest adRequest = new LVDOAdRequest(this); LocationData locationData = new LocationData(this); adRequest.setLocation(locationData.getDeviceLocation()); // It is recommended that you update the below parameter -…

Sample Code

Copy to Clipboard public class InterstitialActivity extends Activity implements LVDOInterstitialListener { private static final String TAG = "InterstitialActivity"; private String mApiKey; private LVDOInterstitialAd mInterstitialAd; @Override…

Event Listeners

You may optionally track ad lifecycle events like request failures or click-through by implementing LVDOInterstitialListener. This interface may be implemented by your activity or any…