private void loadMoPubView(MoPubView moPubView, String adUnitId, String keywords) {
    if (moPubView == null) {
      logToast(getActivity(), "Unable to inflate MoPubView from xml.");
      return;
    }

    try {
      validateAdUnitId(adUnitId);
    } catch (IllegalArgumentException exception) {
      logToast(getActivity(), exception.getMessage());
      return;
    }

    moPubView.setBannerAdListener(this);
    moPubView.setAdUnitId(adUnitId);
    moPubView.setKeywords(keywords);
    moPubView.loadAd();
  }
 private void loadMoPubView(final String adUnitId, final String keywords) {
   mMoPubView.setAdUnitId(adUnitId);
   mMoPubView.setKeywords(keywords);
   mMoPubView.loadAd();
 }