- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
37 lines
1.2 KiB
Java
37 lines
1.2 KiB
Java
package com.google.ads.mediation.admob;
|
|
|
|
import android.os.Bundle;
|
|
import android.text.TextUtils;
|
|
import androidx.annotation.Keep;
|
|
import androidx.annotation.NonNull;
|
|
import com.google.ads.mediation.AbstractAdViewAdapter;
|
|
|
|
@Keep
|
|
/* loaded from: classes2.dex */
|
|
public final class AdMobAdapter extends AbstractAdViewAdapter {
|
|
static final String AD_JSON_PARAMETER = "adJson";
|
|
static final String AD_PARAMETER = "_ad";
|
|
static final String HOUSE_ADS_PARAMETER = "mad_hac";
|
|
|
|
@NonNull
|
|
public static final String NEW_BUNDLE = "_newBundle";
|
|
|
|
@Override // com.google.ads.mediation.AbstractAdViewAdapter
|
|
@NonNull
|
|
public Bundle buildExtrasBundle(@NonNull Bundle bundle, @NonNull Bundle bundle2) {
|
|
if (bundle == null) {
|
|
bundle = new Bundle();
|
|
}
|
|
if (bundle.getBoolean(NEW_BUNDLE)) {
|
|
bundle = new Bundle(bundle);
|
|
}
|
|
bundle.putInt("gw", 1);
|
|
bundle.putString(HOUSE_ADS_PARAMETER, bundle2.getString(HOUSE_ADS_PARAMETER));
|
|
if (!TextUtils.isEmpty(bundle2.getString(AD_JSON_PARAMETER))) {
|
|
bundle.putString(AD_PARAMETER, bundle2.getString(AD_JSON_PARAMETER));
|
|
}
|
|
bundle.putBoolean("_noRefresh", true);
|
|
return bundle;
|
|
}
|
|
}
|