We have added mediation code for Facebook with Admob in Android Studio.
But After published live app in play store, my app does not showing live ads, it's showing only facebook test ads.
NOTE : App reviewed/Approved successfully in Facebook developer console.
We are using below code for mediation.
build.gradle
implementation 'com.google.ads.mediation:facebook:6.5.1.0
Ad Class.java
adView = new AdView(context);
adView.setAdSize(AdSize.BANNER);
adView.setAdUnitId(context.getResources().getString(R.string.admob_adaptive_banner));
adView.setAdListener(new AdListener() {
@Override
public void onAdFailedToLoad(@NonNull LoadAdError loadAdError) {
}
});
adView.loadAd(new AdRequest.Builder().build());
// Add banner to view hierarchy.
llBanner.removeAllViews();
llBanner.addView(adView);
I have issues in all ads but here I have put only banner ads for showing purpose.
Anyone please help me.
Thanks in advance.