All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.prebid.mobile.admob.AdMobMediationRewardedUtils Maven / Gradle / Ivy

The newest version!
package org.prebid.mobile.admob;

import android.os.Bundle;

import androidx.annotation.Nullable;

import org.prebid.mobile.rendering.bidding.data.bid.BidResponse;
import org.prebid.mobile.rendering.bidding.display.PrebidMediationDelegate;

import java.util.HashMap;

/**
 * Internal mediation delegate.
 */
public class AdMobMediationRewardedUtils implements PrebidMediationDelegate {

    private final Bundle extras;

    public AdMobMediationRewardedUtils(Bundle adMobExtrasBundle) {
        this.extras = adMobExtrasBundle;
    }

    @Override
    public void setResponseToLocalExtras(@Nullable BidResponse response) {
        if (response != null) {
            extras.putString(PrebidRewardedAdapter.EXTRA_RESPONSE_ID, response.getId());
        }
    }

    @Override
    public void handleKeywordsUpdate(@Nullable HashMap keywords) {

    }

    @Override
    public boolean canPerformRefresh() {
        return true;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy