//显示 插页广告 public void ShowInsert(Action <int> finishAction = null) { this.mFinishAction = finishAction; //注册事件 AppLovin.ShowInterstitialForZoneId(insert_zoneID); //by id 显示广告 LoadInsert(); //下载一个广告 }
public bool ShowAd() { if (m_InterstitialHandler == null) { return(false); } AppLovin.ShowInterstitialForZoneId(m_InterstitialHandler.GetAdConfig().unitID); return(true); }
protected override void InternalShowInterstitialAd(AdPlacement placement) { #if EM_APPLOVIN string id = placement == AdPlacement.Default ? mAdSettings.DefaultInterstitialAdId.Id : FindIdForPlacement(mAdSettings.CustomInterstitialAdIds, placement); if (placement.Equals(AdPlacement.Default)) // Default interstitial ad... { if (string.IsNullOrEmpty(id)) { AppLovin.ShowInterstitial(); } else { AppLovin.ShowInterstitialForZoneId(id); } currentShowingInterstitial = placement; } else // Custom interstitial ad... { if (!mCustomInterstitialAds.Contains(placement)) { return; } if (string.IsNullOrEmpty(id)) { AppLovin.ShowInterstitial(); } else { AppLovin.ShowInterstitialForZoneId(id); } currentShowingInterstitial = placement; } #endif }