clockbyte / admobadapter

It wraps your Adapter to display Admob native ads and banners in a ListView/RecyclerView data set. It based on the Yahoo fetchr project https://github.com/yahoo/fetchr
Apache License 2.0
237 stars 75 forks source link

RecyclerView Items not showing with Native Advanced Ads Code #100

Open Shajeel-Afzal opened 6 years ago

Shajeel-Afzal commented 6 years ago

Hi,

I am trying to show Native Advanced Ads with the RecyclerView, but when trying the following code, it is hiding the RecyclerView completely.

AdmobRecyclerAdapterWrapper adapterWrapper = new AdmobRecyclerAdapterWrapper(getActivity(), mTestDeviceIds);

adapterWrapper.setAdapter(mAdapter);

adapterWrapper.setFirstAdIndex(firstAdIndex);
adapterWrapper.setNoOfDataBetweenAds(adsFrequency);
adapterWrapper.setLimitOfAds(listAdsLimit);

adapterWrapper.setContentAdsLayoutContext(new 
      ContentAdLayoutContext(R.layout.native_advanced_content_ad_layout));
adapterWrapper.setInstallAdsLayoutContext(new 
      InstallAppAdLayoutContext(R.layout.native_advanced_isntall_app_ad_layout));

Can you please correct me what is wrong is being done?

Regards

kot331107 commented 6 years ago

I'll check

Shajeel-Afzal commented 6 years ago

Hi @kot331107! Can you please check this? Also, Have you added any example of Native Advanced Ads? There is very less documentation for that.