Created
February 12, 2017 08:26
-
-
Save ayltai/66931aa07dc97b2a8ced9982341438b6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
public void onNativeLoad(final NativeAd nativeAd) { | |
nativeAd.setMoPubNativeEventListener(this); | |
nativeAd.renderAdView(view); | |
nativeAd.prepare(view); | |
} | |
@Override | |
public void onNativeFail(final NativeErrorCode errorCode) { | |
Log.w(this.getClass().getSimpleName(), errorCode.toString()); | |
// Handle different kinds of error | |
// E.g. hide the empty ad view, or log the error to your server | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment