I wanna know that to implement admob native express ad in recyclerview using FirebaseRecyclerAdapter, please give the answer in detail if you're able to, thanks in advance
Asked
Active
Viewed 1,239 times
0
-
I got nothing,I want help – Umesh Jul 03 '17 at 04:49
-
1you are supposed to show what you have done first. People are not expected to do the work for you – Bojan Petkovic Aug 22 '17 at 14:55
-
http://developine.com/integrate-firebase-advance-native-admob-ads-android-kotlin-tutorial/ – Developine Dec 20 '17 at 04:40
1 Answers
0
Try this
in your viewholder class:
public NativeExpressAdView nativeAdview;
public YourViewHolder(View view) {
super(view);
nativeAdview = (NativeExpressAdView) view.findViewById(R.id.nativeAdView);
}
public void loadNativeAd(AdRequest nativeRequest){
if(nativeAdview != null) {
nativeAdview.loadAd(nativeRequest);
nativeAdview.setAdListener(new AdListener() {
@Override
public void onAdLoaded() {
super.onAdLoaded();
nativeAdview.setVisibility(View.VISIBLE);
}
});
}
}
then load from adapter:
protected void populateViewHolder(YourViewHolder viewHolder, myModel model, int position) {
//Native Ads
viewHolder.loadNativeAd(nativeRequest);

Lack Boker
- 1
- 3