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…
Mediation Partners…
Integrating Interstitial Ad…
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;…
Copy to Clipboard
private LVDOInterstitialAd mInterstitialAd;
LVDOInterstitialAd provides a listener interface, LVDOInterstitialListener, which you’ll use to stay informed about ad lifecycle events. Make sure your…
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…
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 -…
Copy to Clipboard
mInterstitialAd.loadAd(adRequest);…
…
You can add logic to the other Interstitial lifecycle methods to handle what should happen when your user interacts with the ad.
e.g. resuming your…
…
Copy to Clipboard
public class InterstitialActivity extends Activity implements LVDOInterstitialListener
{
private static final String TAG = "InterstitialActivity";
private String mApiKey;
private LVDOInterstitialAd mInterstitialAd;
@Override…
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…