Hello,
I have tried embedding Amazon Ads but I don’t understand as why there isn’t any test banner appearing on the app. This is my code:
adView = new AdLayout(getApplicationContext(), AdLayout.AdSize.AD_SIZE_320x50);
adView.setLayoutParams(new android.widget.FrameLayout.LayoutParams(
android.widget.FrameLayout.LayoutParams.MATCH_PARENT,
android.widget.FrameLayout.LayoutParams.WRAP_CONTENT,
android.view.Gravity.BOTTOM
));
activity.getOverlayView().addView(adView);
}
});
Timer t = new Timer();
t.scheduleAtFixedRate(
new TimerTask()
{
public void run()
{
AdTargetingOptions adOptions = new AdTargetingOptions();
adView.loadAd(adOptions);
}
},
0, // run first occurrence immediatetly
60000); // run every 60 seconds
Can anyone help?
Thanks [import]uid: 186199 topic_id: 36931 reply_id: 336931[/import]