--
---
You received this message because you are subscribed to the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.
To post to this group, send email to google-admob-ads-sdk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-admob-ads-sdk/c7d4b198-20a9-4584-9e53-b3ee097452cb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Fran,Thanks for reaching out to us. You can cache the response from the very first Ad Request and show it all the time if you want to. You can even prefetch multiple ads with the same AdRequest using the loadAds() method. Please note that if you are prefetching the ads and trying to display it later, it's important that you should not keep old ads around too long without displaying them. Any ad objects that have been held for longer than an hour without being displayed should be discarded and replaced with new ads from a new request. If you've cached an ad for 30 minutes and still haven't shown it, we recommend loading a fresh one.Let us know if that helps.Regards,Deepika UragayalaMobile Ads SDK Team
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
So to be sure,
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsubscrib...@googlegroups.com.
To post to this group, send email to google-admob-ads-sdk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-admob-ads-sdk/c7d4b198-20a9-4584-9e53-b3ee097452cb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
---
You received this message because you are subscribed to the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.
To post to this group, send email to google-admob-ads-sdk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-admob-ads-sdk/d2333c0b-2300-4100-ad88-6e81cbaaa4ea%40googlegroups.com.
Hi Raunak,
Thank you for reaching out to us.
First off, kindly note that NativeContentAd has already been deprecated in favor of UnifiedNativeAd. I would advise using the latter instead going forward to prevent possible issues in the future; you may refer to this page to get started with UnifiedNativeAd objects.
Going back to your original concern: the way to reuse native ads inside a RecyclerView may look different from just registering and unregistering ad views from the list. You may refer to this guide as an example on how to implement native ads in a RecyclerView. Note that it already uses the UnifiedNativeAd object as mentioned above; you may want to get acquainted with this object first before trying it out in the RecyclerView.
Regards,
Ziv Yves Sanchez
Mobile Ads SDK Team
Hi Raunak,
I am on Ziv's team. You have come to the correct forum. Implementing the Mobile Ads SDK for AdMob is mostly the same as implementing the SDK for AdManager. For Native Ads I have seen advice that to be certain that the ad can be reused in another frame to call removeAllViews() on the old FrameLayout holding the UnifiedNativeAdView. It's possible that the ad is bound and waiting to be displayed in the first RecyclerView if it's the next in the list to show. A way to test for that is to turn off your logic to reuse only if not seen and see if you get the error when switching viewPagers after seeing an ad. There may be other anomalies that may cause this. If you can replicate the error can you kindly post an app here based on our sample Native app with steps to take to replicate this error?
Regards,
Aryeh Baker
Mobile Ads SDK Team