use of com.mopub.mobileads.AdLifecycleListener.InteractionListener in project mytarget-android by myTargetSDK.
the class MyTargetMopubCustomEventInterstitial method onNoAd.
@Override
public void onNoAd(@NonNull String reason, @NonNull InterstitialAd ad) {
MoPubLog.log(getAdNetworkId(), CUSTOM, ADAPTER_NAME, "myTarget banner ad failed " + "to load.");
MoPubErrorCode code = NETWORK_NO_FILL;
MoPubLog.log(getAdNetworkId(), AdLogEvent.LOAD_FAILED, ADAPTER_NAME, code.getIntCode(), code);
LoadListener loadListener = mLoadListener;
InteractionListener interactionListener = mInteractionListener;
if (interactionListener == null && loadListener != null) {
loadListener.onAdLoadFailed(code);
} else if (interactionListener != null) {
interactionListener.onAdFailed(code);
}
}
use of com.mopub.mobileads.AdLifecycleListener.InteractionListener in project mytarget-android by myTargetSDK.
the class MyTargetMopubCustomEventInterstitial method onDisplay.
@Override
public void onDisplay(@NonNull InterstitialAd ad) {
MoPubLog.log(getAdNetworkId(), SHOW_SUCCESS, ADAPTER_NAME);
InteractionListener interactionListener = mInteractionListener;
if (interactionListener != null) {
interactionListener.onAdShown();
interactionListener.onAdImpression();
}
}
use of com.mopub.mobileads.AdLifecycleListener.InteractionListener in project mytarget-android by myTargetSDK.
the class MyTargetMopubCustomEventRewardedVideo method onClick.
@Override
public void onClick(@NonNull RewardedAd ad) {
MoPubLog.log(getAdNetworkId(), CLICKED, ADAPTER_NAME);
InteractionListener interactionListener = mInteractionListener;
if (interactionListener != null) {
interactionListener.onAdClicked();
}
}
use of com.mopub.mobileads.AdLifecycleListener.InteractionListener in project mytarget-android by myTargetSDK.
the class MyTargetMopubCustomEventRewardedVideo method onNoAd.
@Override
public void onNoAd(@NonNull String reason, @NonNull RewardedAd ad) {
MoPubLog.log(getAdNetworkId(), CUSTOM, ADAPTER_NAME, "myTarget banner ad failed " + "to load.");
MoPubErrorCode code = NETWORK_NO_FILL;
MoPubLog.log(getAdNetworkId(), AdLogEvent.LOAD_FAILED, ADAPTER_NAME, code.getIntCode(), code);
InteractionListener interactionListener = mInteractionListener;
LoadListener loadListener = mLoadListener;
if (interactionListener == null && loadListener != null) {
loadListener.onAdLoadFailed(code);
} else if (interactionListener != null) {
interactionListener.onAdFailed(code);
}
}
use of com.mopub.mobileads.AdLifecycleListener.InteractionListener in project mytarget-android by myTargetSDK.
the class MyTargetMopubCustomEventBanner method onShow.
@Override
public void onShow(@NonNull final MyTargetView myTargetView) {
MoPubLog.log(getAdNetworkId(), CUSTOM, ADAPTER_NAME, "myTarget banner ad onShow");
InteractionListener interactionListener = mInteractionListener;
if (interactionListener != null) {
interactionListener.onAdImpression();
}
}
Aggregations