.class public final Lcom/google/ads/mediation/customevent/CustomEventAdapter; .super Ljava/lang/Object; .source "com.google.android.gms:play-services-ads-lite@@19.1.0" # interfaces .implements Lcom/google/ads/mediation/MediationBannerAdapter; .implements Lcom/google/ads/mediation/MediationInterstitialAdapter; # annotations .annotation build Lcom/google/android/gms/common/annotation/KeepName; .end annotation .annotation system Ldalvik/annotation/MemberClasses; value = { Lcom/google/ads/mediation/customevent/CustomEventAdapter$zzb;, Lcom/google/ads/mediation/customevent/CustomEventAdapter$zza; } .end annotation .annotation system Ldalvik/annotation/Signature; value = { "Ljava/lang/Object;", "Lcom/google/ads/mediation/MediationBannerAdapter<", "Lcom/google/android/gms/ads/mediation/customevent/CustomEventExtras;", "Lcom/google/ads/mediation/customevent/CustomEventServerParameters;", ">;", "Lcom/google/ads/mediation/MediationInterstitialAdapter<", "Lcom/google/android/gms/ads/mediation/customevent/CustomEventExtras;", "Lcom/google/ads/mediation/customevent/CustomEventServerParameters;", ">;" } .end annotation # instance fields .field private zzms:Landroid/view/View; .field private zzmt:Lcom/google/ads/mediation/customevent/CustomEventBanner; .annotation build Lcom/google/android/gms/common/util/VisibleForTesting; .end annotation .end field .field private zzmu:Lcom/google/ads/mediation/customevent/CustomEventInterstitial; .annotation build Lcom/google/android/gms/common/util/VisibleForTesting; .end annotation .end field # direct methods .method public constructor ()V .locals 0 .line 1 invoke-direct {p0}, Ljava/lang/Object;->()V return-void .end method .method private final zza(Landroid/view/View;)V .locals 0 .line 1 iput-object p1, p0, Lcom/google/ads/mediation/customevent/CustomEventAdapter;->zzms:Landroid/view/View; return-void .end method .method public static synthetic zza(Lcom/google/ads/mediation/customevent/CustomEventAdapter;Landroid/view/View;)V .locals 0 .line 2 invoke-direct {p0, p1}, Lcom/google/ads/mediation/customevent/CustomEventAdapter;->zza(Landroid/view/View;)V return-void .end method .method private static zzak(Ljava/lang/String;)Ljava/lang/Object; .locals 3 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/lang/String;", ")TT;" } .end annotation .line 1 :try_start_0 invoke-static {p0}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class; move-result-object v0 invoke-virtual {v0}, Ljava/lang/Class;->newInstance()Ljava/lang/Object; move-result-object p0 :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 return-object p0 :catchall_0 move-exception v0 .line 2 invoke-virtual {v0}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String; move-result-object v0 const/16 v1, 0x2e invoke-static {p0, v1}, Lcom/android/billingclient/api/d;->a(Ljava/lang/String;I)I move-result v1 invoke-static {v0, v1}, Lcom/android/billingclient/api/d;->a(Ljava/lang/String;I)I move-result v1 new-instance v2, Ljava/lang/StringBuilder; invoke-direct {v2, v1}, Ljava/lang/StringBuilder;->(I)V const-string v1, "Could not instantiate custom event adapter: " invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v2, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; const-string p0, ". " invoke-virtual {v2, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p0 .line 3 invoke-static {p0}, Lcom/google/android/gms/internal/ads/zzazw;->zzfc(Ljava/lang/String;)V const/4 p0, 0x0 return-object p0 .end method # virtual methods .method public final destroy()V .locals 1 .line 1 iget-object v0, p0, Lcom/google/ads/mediation/customevent/CustomEventAdapter;->zzmt:Lcom/google/ads/mediation/customevent/CustomEventBanner; if-eqz v0, :cond_0 .line 2 invoke-interface {v0}, Lcom/google/ads/mediation/customevent/CustomEvent;->destroy()V .line 3 :cond_0 iget-object v0, p0, Lcom/google/ads/mediation/customevent/CustomEventAdapter;->zzmu:Lcom/google/ads/mediation/customevent/CustomEventInterstitial; if-eqz v0, :cond_1 .line 4 invoke-interface {v0}, Lcom/google/ads/mediation/customevent/CustomEvent;->destroy()V :cond_1 return-void .end method .method public final getAdditionalParametersType()Ljava/lang/Class; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "()", "Ljava/lang/Class<", "Lcom/google/android/gms/ads/mediation/customevent/CustomEventExtras;", ">;" } .end annotation .line 1 const-class v0, Lcom/google/android/gms/ads/mediation/customevent/CustomEventExtras; return-object v0 .end method .method public final getBannerView()Landroid/view/View; .locals 1 .line 1 iget-object v0, p0, Lcom/google/ads/mediation/customevent/CustomEventAdapter;->zzms:Landroid/view/View; return-object v0 .end method .method public final getServerParametersType()Ljava/lang/Class; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "()", "Ljava/lang/Class<", "Lcom/google/ads/mediation/customevent/CustomEventServerParameters;", ">;" } .end annotation .line 1 const-class v0, Lcom/google/ads/mediation/customevent/CustomEventServerParameters; return-object v0 .end method .method public final bridge synthetic requestBannerAd(Lcom/google/ads/mediation/MediationBannerListener;Landroid/app/Activity;Lcom/google/ads/mediation/MediationServerParameters;Lcom/google/ads/AdSize;Lcom/google/ads/mediation/MediationAdRequest;Lcom/google/ads/mediation/NetworkExtras;)V .locals 0 .line 5 check-cast p3, Lcom/google/ads/mediation/customevent/CustomEventServerParameters; check-cast p6, Lcom/google/android/gms/ads/mediation/customevent/CustomEventExtras; invoke-virtual/range {p0 .. p6}, Lcom/google/ads/mediation/customevent/CustomEventAdapter;->requestBannerAd(Lcom/google/ads/mediation/MediationBannerListener;Landroid/app/Activity;Lcom/google/ads/mediation/customevent/CustomEventServerParameters;Lcom/google/ads/AdSize;Lcom/google/ads/mediation/MediationAdRequest;Lcom/google/android/gms/ads/mediation/customevent/CustomEventExtras;)V return-void .end method .method public final requestBannerAd(Lcom/google/ads/mediation/MediationBannerListener;Landroid/app/Activity;Lcom/google/ads/mediation/customevent/CustomEventServerParameters;Lcom/google/ads/AdSize;Lcom/google/ads/mediation/MediationAdRequest;Lcom/google/android/gms/ads/mediation/customevent/CustomEventExtras;)V .locals 8 .line 1 iget-object v0, p3, Lcom/google/ads/mediation/customevent/CustomEventServerParameters;->className:Ljava/lang/String; invoke-static {v0}, Lcom/google/ads/mediation/customevent/CustomEventAdapter;->zzak(Ljava/lang/String;)Ljava/lang/Object; move-result-object v0 check-cast v0, Lcom/google/ads/mediation/customevent/CustomEventBanner; iput-object v0, p0, Lcom/google/ads/mediation/customevent/CustomEventAdapter;->zzmt:Lcom/google/ads/mediation/customevent/CustomEventBanner; if-nez v0, :cond_0 .line 2 sget-object p2, Lcom/google/ads/AdRequest$ErrorCode;->INTERNAL_ERROR:Lcom/google/ads/AdRequest$ErrorCode; invoke-interface {p1, p0, p2}, Lcom/google/ads/mediation/MediationBannerListener;->onFailedToReceiveAd(Lcom/google/ads/mediation/MediationBannerAdapter;Lcom/google/ads/AdRequest$ErrorCode;)V return-void :cond_0 if-nez p6, :cond_1 const/4 p6, 0x0 goto :goto_0 .line 3 :cond_1 iget-object v0, p3, Lcom/google/ads/mediation/customevent/CustomEventServerParameters;->label:Ljava/lang/String; invoke-virtual {p6, v0}, Lcom/google/android/gms/ads/mediation/customevent/CustomEventExtras;->getExtra(Ljava/lang/String;)Ljava/lang/Object; move-result-object p6 :goto_0 move-object v7, p6 .line 4 iget-object v0, p0, Lcom/google/ads/mediation/customevent/CustomEventAdapter;->zzmt:Lcom/google/ads/mediation/customevent/CustomEventBanner; new-instance v1, Lcom/google/ads/mediation/customevent/CustomEventAdapter$zza; invoke-direct {v1, p0, p1}, Lcom/google/ads/mediation/customevent/CustomEventAdapter$zza;->(Lcom/google/ads/mediation/customevent/CustomEventAdapter;Lcom/google/ads/mediation/MediationBannerListener;)V iget-object v3, p3, Lcom/google/ads/mediation/customevent/CustomEventServerParameters;->label:Ljava/lang/String; iget-object v4, p3, Lcom/google/ads/mediation/customevent/CustomEventServerParameters;->parameter:Ljava/lang/String; move-object v2, p2 move-object v5, p4 move-object v6, p5 invoke-interface/range {v0 .. v7}, Lcom/google/ads/mediation/customevent/CustomEventBanner;->requestBannerAd(Lcom/google/ads/mediation/customevent/CustomEventBannerListener;Landroid/app/Activity;Ljava/lang/String;Ljava/lang/String;Lcom/google/ads/AdSize;Lcom/google/ads/mediation/MediationAdRequest;Ljava/lang/Object;)V return-void .end method .method public final bridge synthetic requestInterstitialAd(Lcom/google/ads/mediation/MediationInterstitialListener;Landroid/app/Activity;Lcom/google/ads/mediation/MediationServerParameters;Lcom/google/ads/mediation/MediationAdRequest;Lcom/google/ads/mediation/NetworkExtras;)V .locals 0 .line 8 check-cast p3, Lcom/google/ads/mediation/customevent/CustomEventServerParameters; check-cast p5, Lcom/google/android/gms/ads/mediation/customevent/CustomEventExtras; invoke-virtual/range {p0 .. p5}, Lcom/google/ads/mediation/customevent/CustomEventAdapter;->requestInterstitialAd(Lcom/google/ads/mediation/MediationInterstitialListener;Landroid/app/Activity;Lcom/google/ads/mediation/customevent/CustomEventServerParameters;Lcom/google/ads/mediation/MediationAdRequest;Lcom/google/android/gms/ads/mediation/customevent/CustomEventExtras;)V return-void .end method .method public final requestInterstitialAd(Lcom/google/ads/mediation/MediationInterstitialListener;Landroid/app/Activity;Lcom/google/ads/mediation/customevent/CustomEventServerParameters;Lcom/google/ads/mediation/MediationAdRequest;Lcom/google/android/gms/ads/mediation/customevent/CustomEventExtras;)V .locals 7 .line 1 iget-object v0, p3, Lcom/google/ads/mediation/customevent/CustomEventServerParameters;->className:Ljava/lang/String; invoke-static {v0}, Lcom/google/ads/mediation/customevent/CustomEventAdapter;->zzak(Ljava/lang/String;)Ljava/lang/Object; move-result-object v0 check-cast v0, Lcom/google/ads/mediation/customevent/CustomEventInterstitial; iput-object v0, p0, Lcom/google/ads/mediation/customevent/CustomEventAdapter;->zzmu:Lcom/google/ads/mediation/customevent/CustomEventInterstitial; if-nez v0, :cond_0 .line 2 sget-object p2, Lcom/google/ads/AdRequest$ErrorCode;->INTERNAL_ERROR:Lcom/google/ads/AdRequest$ErrorCode; invoke-interface {p1, p0, p2}, Lcom/google/ads/mediation/MediationInterstitialListener;->onFailedToReceiveAd(Lcom/google/ads/mediation/MediationInterstitialAdapter;Lcom/google/ads/AdRequest$ErrorCode;)V return-void :cond_0 if-nez p5, :cond_1 const/4 p5, 0x0 goto :goto_0 .line 3 :cond_1 iget-object v0, p3, Lcom/google/ads/mediation/customevent/CustomEventServerParameters;->label:Ljava/lang/String; invoke-virtual {p5, v0}, Lcom/google/android/gms/ads/mediation/customevent/CustomEventExtras;->getExtra(Ljava/lang/String;)Ljava/lang/Object; move-result-object p5 :goto_0 move-object v6, p5 .line 4 iget-object v0, p0, Lcom/google/ads/mediation/customevent/CustomEventAdapter;->zzmu:Lcom/google/ads/mediation/customevent/CustomEventInterstitial; .line 5 new-instance v1, Lcom/google/ads/mediation/customevent/CustomEventAdapter$zzb; invoke-direct {v1, p0, p0, p1}, Lcom/google/ads/mediation/customevent/CustomEventAdapter$zzb;->(Lcom/google/ads/mediation/customevent/CustomEventAdapter;Lcom/google/ads/mediation/customevent/CustomEventAdapter;Lcom/google/ads/mediation/MediationInterstitialListener;)V .line 6 iget-object v3, p3, Lcom/google/ads/mediation/customevent/CustomEventServerParameters;->label:Ljava/lang/String; iget-object v4, p3, Lcom/google/ads/mediation/customevent/CustomEventServerParameters;->parameter:Ljava/lang/String; move-object v2, p2 move-object v5, p4 .line 7 invoke-interface/range {v0 .. v6}, Lcom/google/ads/mediation/customevent/CustomEventInterstitial;->requestInterstitialAd(Lcom/google/ads/mediation/customevent/CustomEventInterstitialListener;Landroid/app/Activity;Ljava/lang/String;Ljava/lang/String;Lcom/google/ads/mediation/MediationAdRequest;Ljava/lang/Object;)V return-void .end method .method public final showInterstitial()V .locals 1 .line 1 iget-object v0, p0, Lcom/google/ads/mediation/customevent/CustomEventAdapter;->zzmu:Lcom/google/ads/mediation/customevent/CustomEventInterstitial; invoke-interface {v0}, Lcom/google/ads/mediation/customevent/CustomEventInterstitial;->showInterstitial()V return-void .end method