i just learn native ad with simple code and try to test run appodeal native ad. but theres no test-ad showd.
Appodeal.setAutoCache(Appodeal.NATIVE, false);
Appodeal.initialize(this, "apikey", Appodeal.NATIVE);
Appodeal.cache(this, Appodeal.NATIVE);
Appodeal.setNativeCallbacks(new NativeCallbacks() {
@Override
public void onNativeLoaded() {
Toast.makeText(MainActivity.this, "onNativeLoaded", Toast.LENGTH_SHORT).show();
}
@Override
public void onNativeFailedToLoad() {
Toast.makeText(MainActivity.this, "onNativeFailedToLoad", Toast.LENGTH_SHORT).show();
}
@Override
public void onNativeShown(NativeAd nativeAd) {
Toast.makeText(MainActivity.this, "onNativeShown", Toast.LENGTH_SHORT).show();
}
@Override
public void onNativeClicked(NativeAd nativeAd) {
Toast.makeText(MainActivity.this, "onNativeClicked", Toast.LENGTH_SHORT).show();
}
});
Appodeal.getNativeAds(1);
com.appodeal.ads.native_ad.views.NativeAdViewContentStream nav_cs = this.findViewById(R.id.native_ad_view_content_stream);
nav_cs.setNativeAd(nativeAd);
what is wrong? whats my mistake?