コード例 #1
0
 public final void requestInterstitialAd(
     MediationInterstitialListener mediationinterstitiallistener,
     Activity activity,
     CustomEventServerParameters customeventserverparameters,
     MediationAdRequest mediationadrequest,
     com.google.android.gms.ads.c.b.b b1) {
   zzba = (CustomEventInterstitial) zzj(customeventserverparameters.className);
   if (zzba == null) {
     mediationinterstitiallistener.onFailedToReceiveAd(
         this, com.google.ads.AdRequest.ErrorCode.INTERNAL_ERROR);
     return;
   }
   if (b1 == null) {
     b1 = null;
   } else {
     b1 = ((com.google.android.gms.ads.c.b.b) (b1.a(customeventserverparameters.label)));
   }
   zzba.requestInterstitialAd(
       zza(mediationinterstitiallistener),
       activity,
       customeventserverparameters.label,
       customeventserverparameters.parameter,
       mediationadrequest,
       b1);
 }
コード例 #2
0
 public final void destroy() {
   if (zzaZ != null) {
     zzaZ.destroy();
   }
   if (zzba != null) {
     zzba.destroy();
   }
 }
 void invalidate() {
   if (mCustomEventInterstitial != null) mCustomEventInterstitial.onInvalidate();
   mCustomEventInterstitial = null;
   mContext = null;
   mServerExtras = null;
   mLocalExtras = null;
   mCustomEventInterstitialAdapterListener = null;
   mInvalidated = true;
 }
コード例 #4
0
 public void onResume() {
   if (zzJG != null) {
     zzJG.onResume();
   }
   if (zzJH != null) {
     zzJH.onResume();
   }
   if (zzJI != null) {
     zzJI.onResume();
   }
 }
コード例 #5
0
 public void onPause() {
   if (zzJG != null) {
     zzJG.onPause();
   }
   if (zzJH != null) {
     zzJH.onPause();
   }
   if (zzJI != null) {
     zzJI.onPause();
   }
 }
コード例 #6
0
 public void onDestroy() {
   if (zzJG != null) {
     zzJG.onDestroy();
   }
   if (zzJH != null) {
     zzJH.onDestroy();
   }
   if (zzJI != null) {
     zzJI.onDestroy();
   }
 }
コード例 #7
0
 public void requestInterstitialAd(
     Context context,
     MediationInterstitialListener mediationinterstitiallistener,
     Bundle bundle,
     MediationAdRequest mediationadrequest,
     Bundle bundle1) {
   zzJH = (CustomEventInterstitial) zzj(bundle.getString("class_name"));
   if (zzJH == null) {
     mediationinterstitiallistener.onAdFailedToLoad(this, 0);
     return;
   }
   if (bundle1 == null) {
     bundle1 = null;
   } else {
     bundle1 = bundle1.getBundle(bundle.getString("class_name"));
   }
   zzJH.requestInterstitialAd(
       context,
       zza(mediationinterstitiallistener),
       bundle.getString("parameter"),
       mediationadrequest,
       bundle1);
 }
コード例 #8
0
 public void showInterstitial() {
   zzJH.showInterstitial();
 }
コード例 #9
0
 public final void showInterstitial() {
   zzba.showInterstitial();
 }
  void showInterstitial() {
    if (isInvalidated() || mCustomEventInterstitial == null) return;

    mCustomEventInterstitial.showInterstitial();
  }
  void loadInterstitial() {
    if (isInvalidated() || mCustomEventInterstitial == null) return;

    mHandler.postDelayed(mTimeout, TIMEOUT_DELAY);
    mCustomEventInterstitial.loadInterstitial(mContext, this, mLocalExtras, mServerExtras);
  }