Created
February 12, 2017 08:10
-
-
Save ayltai/3019d1b1d00ae66bccfe75f25917c47c to your computer and use it in GitHub Desktop.
MoPub SDK initialization
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
moPubNative = new MoPubNative(context, adUnitId, moPubNativeNetworkListener); | |
moPubNative.registerAdRenderer(new MoPubStaticNativeAdRenderer(new ViewBinder.Builder(R.layout.view_native_ad) | |
.titleId(R.id.ad_title) | |
.textId(R.id.ad_body) | |
.mainImageId(R.id.ad_image) | |
.callToActionId(R.id.ad_call_to_action) | |
.build())); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment