I have integrated Mopub Ads sdk in my application. I have created an account at Mopub and got an AdUnitId for my aplication.
I have followed all the steps mentioned in the mopub tutorial, though steps were very simple, i failed to display ads in my application. I always keep getting the following logs:
D/MoPub(2393): MoPub server returned invalid response.
I/MoPub(2393): Ad failed to load.
Here is my code for fetching Ad banner:
MoPubView mAdView = (MoPubView) findViewById(R.id.adview);
mAdView.setAdUnitId("xxxxxxxxxxxxxx");
mAdView.loadAd();
mAdView.setOnAdLoadedListener(new OnAdLoadedListener() {
public void OnAdLoaded(MoPubView mpv) {
Toast.makeText(getApplicationContext(), "Ad loaded!!!", Toast.LENGTH_SHORT).show();
}
});
Note: I havent added payment details on Mopub server yet. Can this be the probable reason. But i think payment details has nothing to do with the above mentioned exception.
Any help would be appreciated.