ThirdPartyAdapters/fyber/fyber/src/main/java/com/google/ads/mediation/fyber/FyberMediationAdapter.java
/**
   * Only rewarded ads are implemented using the new Adapter interface.
   */
Only rewarded ads are implemented using the new Adapter interface.
Only rewarded ads are implemented using the new Adapter interface .
public void loadRewardedAd(final MediationRewardedAdConfiguration configuration,
      final MediationAdLoadCallback<MediationRewardedAd, MediationRewardedAdCallback> callback) {
    String keyAppID = configuration.getServerParameters().getString(KEY_APP_ID);
    if (TextUtils.isEmpty(keyAppID)) {
      String logMessage = "Failed to initialize: SDK requires server parameters.";
      callback.onFailure(logMessage);
      return;
    }
    InneractiveAdManager.initialize(configuration.getContext(), keyAppID,
        new OnFyberMarketplaceInitializedListener() {
          @Override
          public void onFyberMarketplaceInitialized(FyberInitStatus fyberInitStatus) {
            if (fyberInitStatus != FyberInitStatus.SUCCESSFULLY) {
              String logMessage = createSDKError(fyberInitStatus, "Initialization failed.");
              Log.e(TAG, logMessage);
              callback.onFailure(logMessage);
              return;
            }
            mRewardedRenderer = new FyberRewardedVideoRenderer(configuration, callback);
            mRewardedRenderer.render();
          }
        });
  }
public void loadRewardedAd ( final MediationRewardedAdConfiguration configuration , final MediationAdLoadCallback < MediationRewardedAd , MediationRewardedAdCallback > callback ) { String keyAppID = configuration . getServerParameters ( ) . getString ( KEY_APP_ID ) ; if ( TextUtils . isEmpty ( keyAppID ) ) { String logMessage = "Failed to initialize: SDK requires server parameters." ; callback . onFailure ( logMessage ) ; return ; } InneractiveAdManager . initialize ( configuration . getContext ( ) , keyAppID , new OnFyberMarketplaceInitializedListener ( ) { @ Override public void onFyberMarketplaceInitialized ( FyberInitStatus fyberInitStatus ) { if ( fyberInitStatus != FyberInitStatus . SUCCESSFULLY ) { String logMessage = createSDKError ( fyberInitStatus , "Initialization failed." ) ; Log . e ( TAG , logMessage ) ; callback . onFailure ( logMessage ) ; return ; } mRewardedRenderer = new FyberRewardedVideoRenderer ( configuration , callback ) ; mRewardedRenderer . render ( ) ; } } ) ; }
Only rewarded ads are implemented using the new Adapter interface.
Only rewarded ads are implemented using the new Adapter interface .
// Sometimes loadRewardedAd is called before initialize is called.