The following code shows you how to load an MREC by using your ad unit ID and desired position (MAX will size the MREC automatically):
var MREC_AD_UNIT_ID; if (window.cordova.platformId.toUpperCase() === 'IOS') { MREC_AD_UNIT_ID = 'your_iOS_MREC_ad_unit_ID'; } else { // Assume Android MREC_AD_UNIT_ID = 'your_Android_MREC_ad_unit_ID'; } public void initializeMRecAds() { // MRECs are sized to 300x250 on phones and tablets AppLovinMAX.createMRec(MREC_AD_UNIT_ID, AppLovinMAX.AdViewPosition.CENTERED); }